From: "David Chang" <[EMAIL PROTECTED]>

Hi, w3c allows embedding an xsl inside an xml file
(http://www.w3.org/TR/xslt#section-Embedding-Stylesheets).  is there a way
to get fop to process the single xml file and pull out the xsl:stylesheet
element to apply to the rest of the xml document?
Perhaps a solution would be to use the same file for both xml and xsl
parameters...

fop -xml doc.xml -xsl doc.xml outfile.pdf

The current FOP code doesnt extract the XSL file from the XML file, because FOP's main purpose is to process XSL-FO. The fact that most people use XSL to generate the XSL-FO has resulted in FOP adding support for processing an XML file and XSL file through Xalan before processing the XSL-FO. This was added for convience. What you suggest may benefit some folks, but you can implement it yourself very easily with a small java program.



With this i'm thinking the doc.xml(xsl side) can ignore the xsl:stylesheet
element inside the doc.xml(xml side) since xslt has control over this.
However when fop (or rather xalan inside fop) processes the doc.xml(xsl
side), will the extra content elements (non xsl:stylesheet root element and
non xsl namespace elements) screw things up? or does the processor ignore
them (hopefully)?
Thanks!



I'm sorry I dont understand what you are trying to say in this last paragraph.


Chris

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to