|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: TRANSFORM WITH SOME XML
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@xxxxxxxxxxxxxxxxxxxxxx (XSL-List Digest)
> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Date: Tue, 19 Aug 2003 11:34:29 -0400 (EDT)
> To: xsl-list-digest@xxxxxxxxxxxxxxxxxxxxxx
> Subject: XSL-List Digest V4 #1568
>
> Date: Tue, 19 Aug 2003 12:39:11 +0200
> From: "Yolanda Garrido" <ygarrido@xxxxxxxxxxxxx>
> Subject: 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
|
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








