Subject: Re: [xsl] Variable in XPath... From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 8 Nov 2001 17:39:40 GMT |
> The $node_id contains the exact node name. I suspect you have the wrong model of what's happening. It's a bit hard to tell as you didn't show th eformat of either of your input files, but I guess config_doc.xml looks like <config> <nodename>xxx</nodename> </config> if so then $node_id contains a single element node (nodename) so <xsl:for-each select="$node_id"> will select that node (in config_doc.xml, not any nodes in the original document) I think perhaps you want to select a node in the original document with name given by the config file, but that's <xsl:for-each select="//*[name()=$node_id]"> David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Variable in XPath..., Alessio Mazzieri | Thread | Re: [xsl] Variable in XPath..., Alessio Mazzieri |
RE: [xsl] (possible) strange behavi, Michael Kay | Date | Re: [xsl] Outputting just plain tex, Mike Haarman |
Month |