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

RE: Assigning multiple xml's file names into variable

Subject: RE: Assigning multiple xml's file names into variable name using for-each possible?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 18 Jul 2006 14:59:14 +0100
variable name xml
> So, what I was trying to do is to make a seperate xml file 
> listing all the xml file to be processed. e.g: xmlFileList.xml 
> 	<ContentGroup name="Arts">
> 		<ContentFile>S207.xml</ContentFile>
> 		<ContentFile>S103_2.xml</ContentFile>
> 		<ContentFile>DD03.xml</ContentFile>
> 		.... etc etc
> 	</ContentGroup>
> And in the xsl file, trying to loop thro to get each file 
> name and process it like:
> <xsl:template match="/"> <!-- of xmlFileList.xml -->
> 	<xsl:for-each select="//ContentFile">
> 		<xsl:variable name="fileName" select="node()"/>
> 		<xsl:variable name="currentFile" 
> select="document('{$fileName}')"/>

You just want


Curly braces are only used when an XPath expression is embedded in attribute
text, never to embed one XPath expression inside another.

Michael Kay

Current Thread


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.
First Name
Last Name
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.