Subject: Re: [xsl] TRANSFORM WITH SOME XML From: Brook Ellingwood <brook@xxxxxxxxxxx> Date: Tue, 19 Aug 2003 16:35:31 -0700 |
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: [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] MSXML3 transformNodeToObj, Joe Fawcett | Thread | [xsl] Column Heads and Column Data , Dipesh Khakhkhar |
RE: [xsl] Bread-crumbs nav from nes, Simerman, Joshua Mic | Date | [xsl] Column Heads and Column Data , Dipesh Khakhkhar |
Month |