xsl-list
[Top] [All Lists]

Re: Using a parameter to denote an element by name.

2003-04-23 22:46:17
Thanks Américo.

Cheers

Simon

----- Original Message -----
From: "Américo Albuquerque" <aalbuquerque(_at_)viseu(_dot_)ipiaget(_dot_)pt>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, April 23, 2003 4:57 PM
Subject: RE: [xsl] Using a parameter to denote an element by name.


Hi

<xsl:for-each select="/ROWSET/ROW/*[name()=$sig]"/>

 or

<xsl:for-each select="/ROWSET/ROW/*[local-name()=$sig]"/>

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Simon Kelly
Sent: Wednesday, April 23, 2003 3:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Using a parameter to denote an element by name.


Hia all,

I'm trying to select the children of a set of nodes that have
the same name. I have tried the following to do it, but I am
getting back illegal token errors.

<xsl:for-each select=\"/ROWSET/ROW/$sig\">
<xsl:for-each select=\"/ROWSET/ROW/{$sig}\">
<xsl:for-each select=\"/ROWSET/ROW/child::[name() = $sig]\">

(...)




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>