You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2008/08/07 20:32:48 UTC

[Xmlgraphics-fop Wiki] Update of "HowTo/XmlCommonsResolver" by JeremiasMaerki

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.

The following page has been changed by JeremiasMaerki:
http://wiki.apache.org/xmlgraphics-fop/HowTo/XmlCommonsResolver

The comment on the change is:
This works fine by now.

------------------------------------------------------------------------------
  This page describes how to use the XML Commons Resolver with Apache FOP. It shows you how you can use abstract URIs to specify resources such as images and how you can translate these abstract URIs to actual URLs pointing to the real file. This is ideal to do a mapping for resources for which the final location at deployment time is not known. The catalog file is where you specify how the URIs are supposed to be mapped to the concrete URLs.
  
- '''Please note that this currently doesn't work, yet! And it will only work with the new FOP!'''
+ '''Note: This requires Apache FOP 0.93 or later!'''
  
  = Get XML Commons Resolver =
  
@@ -35, +35 @@

  
  You will recognize that the FO file is specified through a "URN", too, not just the image referenced in the FO file. This is simply to make it easier for you to set up the demo. The FO file itself will be loaded directly from the Web.
  
- = TODO =
- 
- At the moment, this example doesn't work, since the resolution mechanism requires StreamSource instance to be returned by the resolver, readily set up with an InputStream. The XML Commons Resolver doesn't do that. It actually returns a SAXSource on which the SystemID is set. The ImageFactory there has to be able to convert the SystemID into a URL and get the InputStream through that URL. Care needs to be taken that the InputStream is properly closed after usage.
- 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org