xsl-list
[Top] [All Lists]

RE: finding nodes

2005-01-24 06:35:59
Hi,

On Mon, 24 Jan 2005 18:34:52 +0530, 
omprakash(_dot_)v(_at_)polaris(_dot_)co(_dot_)in
<omprakash(_dot_)v(_at_)polaris(_dot_)co(_dot_)in> wrote:

In my stylesheet I have this:

I have $value =' resident'


Certainly you don't have that, you should show exactly how 
you define value.

 <xsl:variable name="nset">
 <xsl:value-of select="//campus[(_at_)name = $value]"/>
 </xsl:variable>

<xsl:message> nodeset  <xsl:value-of select="$nset"/></xsl:message>

I would then like to iterate  over the nodeset returned.

You'll probably need a extension like exsl:node-set() to do that.

Oh, missed that. Right now $nset is bound to a Result Tree Fragment. You want 

 <xsl:variable name="nset" select="//campus[(_at_)name = $value]"/>

Cheers,

Jarno

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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