Dear Wiki user,

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

The "HowTo/XmlCommonsResolver" page has been changed by JackBates.
http://wiki.apache.org/xmlgraphics-fop/HowTo/XmlCommonsResolver?action=diff&rev1=7&rev2=8

--------------------------------------------------

  
  The main website is at: http://xml.apache.org/commons/components/resolver/
  
- XML Commons Resolver is 
[http://thread.gmane.org/gmane.text.xml.fop.user/29585 included in Java 6], so 
if you're running Java 6 or later, it's already installed. In Java 6 the 
catalog resolver class name is, 
com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver
+ XML Commons Resolver is 
[http://thread.gmane.org/gmane.text.xml.fop.user/29585 included in OpenJDK 6], 
so if you're running OpenJDK 6 or later, it's already installed. In OpenJDK 6 
the catalog resolver class name is, 
com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver
+ 
+ XML Commons Resolver may be included in Java 6 installations other than the 
one from Sun - this should be checked.
  
  = The Example =
  
@@ -33, +35 @@

  
   * Run the ExampleFO2PDF!WithResolver class.
  
+ = Notes =
+ 
+ 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.
+ 
  = Command line option =
  
  Simon Pepping [http://thread.gmane.org/gmane.text.xml.fop.user/29585 added a 
-catalog option] in [http://svn.apache.org/viewvc?view=revision&revision=825875 
revision 825875]. With this option you can render XML with the FOP command and 
use the catalog resolver:
  
  {{{  $ ./fop -catalog -xml icaatom.html -xsl icaatom.xsl icaatom.pdf}}}
  
+ The -catalog option specifically only works for the conversion from XML to 
output. (In such a case FOP sets up the transformation from XML to FO useing 
XSLT, and in that setup the -catalog option adds a catalog resolver.) Even with 
the -catalog option the catalog resolver is not used for image retrieval. 
(Maybe it should, but it has not been thought of.)
- = Notes =
- 
- 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.
  
  Since the W3C started 
[http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic blocking 
abusive request patterns] for DTDs, it may be necessary to use local copies of 
these DTDs instead. A good way to do this is with the catalog resolver. Errors 
like the following may happen when you try using a DTD from the W3C's servers:
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to