This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
No Subject
- To: xsl-list at mulberrytech dot com
- From: mbrown at corp dot webb dot net (Mike Brown)
- Date: Thu, 9 Mar 2000 11:59:59 GMT
- References: <003401bf8ab0$26608480$a53b0681@ncsl.nist.gov>
- Reply-To: xsl-list at mulberrytech dot com
> Carmelo Montanez wrote:
> Is there any quick way to have the same xslt stylesshet
> read and process multiple xml files in sequence?
You can refer to multiple XML documents from within a stylesheet via the document() function, e.g.
<xsl:variable name="doc1_root" select="document('doc1.xml')"/>
<xsl:variable name="doc2_root" select="document('doc2.xml')"/>
<xsl:text>
some data from doc1: </xsl:text>
<xsl:value-of select="$doc1_root/path/to/some/textnodes"/>
<xsl:text>
some data from doc2: </xsl:text>
<xsl:value-of select="$doc2_root/path/to/some/textnodes"/>
At least, I think that's what you're asking.
- Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/ http://www.webb.net/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list