Re: [xsl] In Xalan parser

Subject: Re: [xsl] In Xalan parser
From: Jarkko.Moilanen@xxxxxx
Date: Mon, 10 Nov 2003 10:14:33 +0200
Lainaus ARULRAJ <p_arulraj@xxxxxxxxx>:

<!-- In xalan parser, if I want to give two xml input file.
<!-- Is it possible
<!-- java org.apache.xalan.xslt.Process -in one.xml -in
<!-- two.xml 

Use 

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
               version="1.0">
 <xsl:output method="xml" indent="yes"/>

 <xsl:variable name="otherFile" select="document('merge.xml')"/>

 <xsl:template match="/">
 <xsl:value-of select="$otherFile/what/ever/in/that/file"/>

 </xsl:template>
</xsl:stylesheet>


Or pass the secondary file name as stylesheet parameter.



***************************************************
* Jarkko Moilanen                                 *
* Project Manager, ITCM (www.itcm.org)            *
* Profound XML technology Expert                  *
* University of Tampere                           *
* Hypermedia Laboratory                           *
***************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread