xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] finding nodes


Subject: RE: [xsl] finding nodes
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Mon, 24 Jan 2005 15:35:59 +0200

Hi,

> On Mon, 24 Jan 2005 18:34:52 +0530, omprakash.v@xxxxxxxxxxxxx
> <omprakash.v@xxxxxxxxxxxxx> 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[@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[@name = $value]"/>

Cheers,

Jarno


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor