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

Re: Matching or testing dynamically created attributes

Subject: Re: Matching or testing dynamically created attributes
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 21 Jun 2001 13:29:17 -0400
solmaverick
Match any attribute name by @*.  Neglecting the fact that the other
attribute would belong to another element, you would test for

@NAME=@*

or maybe

element1[@NAME=../*/@*]

(Of course, you would have to work out the right path to the other candidate
elements).

Tom P

[solmaverick]

> Hello to all. I have a problem that I have been working on for days and am
> quite stumped. It is difficult to explain, so I'll include a short and
long
> version of my question.
>
> Short version: While in a for-each loop, how can I match the current
node's
> attribute (say @NAME) against an attribute in another node somewhere else
> without knowing that attribute's name? Essentially, "if the @NAME
attribute
> of this node is the same as an attribute in the node over there, do
> something..." or, this NAME is "row1". if there is an attribute in the
node
> over there named "row1" what is its value?
>



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.