Hi Yolanda,
I get the digest version of the list, so this may already have been
answered, but in case it has not, this is how to use one XSL file to process
data from multiple XML files: use the document() function.
For example:
File.xml contains the root level element <elem>. In your XSL, you can
retrieve the value of the <elem> element like this:
<xsl:value-of select="document('file1.xml')/elem">
You can specify relative directory paths to the file, but don't confuse
physical paths on the machine with virtual directory paths. I did that
recently and wasted several hours not understanding why the document()
function wouldn't work.
-- Brook
From: owner-xsl-list-digest(_at_)lists(_dot_)mulberrytech(_dot_)com (XSL-List
Digest)
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Tue, 19 Aug 2003 11:34:29 -0400 (EDT)
To: xsl-list-digest(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: XSL-List Digest V4 #1568
Date: Tue, 19 Aug 2003 12:39:11 +0200
From: "Yolanda Garrido" <ygarrido(_at_)educaline(_dot_)com>
Subject: [xsl] TRANSFORM WITH SOME XML
Hi, I4d like to know how to use some xml files with just one xsl.... I4ve
read that this is possible,
but I can4t find out the way to solve it... I am using ASP with Perl to
transform the xml/xsl to xhtml...
how can I use transformnode to transform some xml to one xhtml file??
anybody can help me??
I4m sorry if this question is kind of obvious but really, I4ve been
searching and I didn4t find any example...
Thanks in advance for your help.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list