|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [no subject]
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart


![[no subject]](/images/get_stylus.gif)





