[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: TRANSFORM WITH SOME XML

Subject: Re: TRANSFORM WITH SOME XML
From: Brook Ellingwood <brook@xxxxxxxxxxx>
Date: Tue, 19 Aug 2003 16:35:31 -0700
perl xsl transform
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.