Thanks very much, i'll try this way since it seems to be the easiest to me.
----- Original Message ----- From: "Andreas L. Delmelle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 13, 2004 9:43 PM Subject: RE: Merging two xml files to one. > > -----Original Message----- > > From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] > > > Anyway, you can make a slight modification to your XSL > > code, so that it does not only apply-templates to > > the primary XML, but also to another source tree that > > is created with the document() function. > > > > Oh, before you painfully have to find out for yourself: while the URI used > with the document function can be passed in as an xsl:param, there is > currently no possibility of feeding this param in via the command line (No > problem if you use FOP embedded, see the XML+XSL2PDF example on the site. > http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ > ExampleXML2PDF.java?rev=HEAD) > > If you insist on doing it via the command line, there's still the option of > using something like this as primary XML: > <root> > <file href="xml11.xml" /> > <file href="xml12.xml" /> > ... > </root> > > - and in XSLT do > > <xsl:variable name="merged" select="document(/root/file/@href)" /> > ... > <xsl:apply-templates select="$merged/*"> > <xsl:sort select="..." /> > </xsl:apply-templates> > > > Greetz, > > Andreas > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]