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

Re: Trouble getting a node froma a document()

Subject: Re: Trouble getting a node froma a document()
From: Phil Endecott <spam_from_xslt_list@xxxxxxxxxxxx>
Date: Thu, 29 Jul 2004 20:55:54 +0100
javascript getting a node
> /Estrutura/Tabelas/Tabela[Nome=$MasterTable]/Indices/Indice/Campos/
> Campo[Nome=@Nome]/Visivel"

Here, @Nome is looking for a Nome attribute of the Campo element. For example, it would match this:

<Campo Nome="xxx">

You want to use the Nome attribute of the *current* element. To do this, use the current() function, like this:


So it seems the problem is with @Nome? I also tryed to put that in a variable and use it, but the effect is the same.

It should also work with a variable. Sometimes I use variables to make this sort of expression easier to understand. For example you could write:

<xsl:variable name="wanted-nome" select="@Nome"/>


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.