[jdom-interest] JDOM Multiple file output from XSLT.

Laurent Bihanic laurent.bihanic at atosorigin.com
Wed Aug 6 10:46:58 PDT 2003


Mark.Winney at metavante.com wrote:
>       What I also want is the XSL to generate multiple output files also
>       by doing the following:
> 
>    1. <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>       version="1.1">
>    2.         <xsl:output method="xml" indent="yes"
>       omit-xml-declaration="yes"/>
>    3.         <xsl:strip-space elements="*"/>
>    4.         <!-- ROOT LEVEL OF THE FILE HIERARCHY -->
>    5.         <xsl:template match="APP_FILE">
>    6.                 <xsl:element name="My-XML">
>    7.                          <xsl:document href="my_try.html"
>       method="html">
>    8.                                 <html><body></body></html>
>    9.                         </xsl:document>
>   10.                 </xsl:element>
>   11.         </xsl:template>
>   12. </xsl:transform>
> 
>       What happens is that the XML document my_try.html is not generated
>       and the html ends up in the xml document specified by the java
>       XMLOutputter.
>       Is it possible to have the xsl also create multiple output files?

I suspect this is a bug in the XSLT processor.
The XSLT 1.1 draft states : "The href attribute specifies where the subsidiary 
document should be stored."
Thus, subsidiary documents should not be concatenated to the main result tree.

Laurent




More information about the jdom-interest mailing list