Next in thread → Next in month →

RE: [docbook-apps] Using draft images with fop, and catalogs.

From
Mauritz Jeanson <>
Date
2009-02-05T14:50:25+00:00
ID
C1BD65AEEB1D4B9F8BDDD35A79C23A55@D7MZ171J
Thread
RE: [docbook-apps] Using draft images with fop, and catalogs.
|  -----Original Message-----
|  From: Kerry, Richard 
|   
|  I can see how to add the Resolver and Catalog Manager paths 
|  to the local class-path in fop.bat (LOCALCLASSPATH).
|  But its not clear to me how to pass in the resolver options 
|  (-x, -y, -r) - JAVOPTS or FOP_CMD_LINE_ARGS ?  
|  If these are specific to Saxon then there's surely no way 
|  Fop could make any use of them ?  Although I'd expect they 
|  might be generic Java facilities but my knowledge of Java is 
|  very minimal and I don't know how to pass in all the 
|  required parameters.


The -x, -y, and -r options are specific to Saxon. They are not recognized by
FOP (actually, FOP has -x and -r options, but they are for other purposes). 

AFAIK, enabling the resolver requires Java coding:
http://wiki.apache.org/xmlgraphics-fop/HowTo/XmlCommonsResolver

I have fiddled a bit with the example code, but I have not been able to make
it work. The example uses URN identifiers (such as
"urn:apache:people:jeremias:xml-resolver-demo:xml-resolver-demo.fo"). When
running the program, I keep getting "java.net.MalformedURLException: unknown
protocol: urn" errors.

Mauritz
Next in thread → Next in month →