This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Matching or testing dynamically created attributes
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Matching or testing dynamically created attributes
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- Date: Thu, 21 Jun 2001 13:29:17 -0400
- References: <009401c0fa73$d0819470$afdc0a0a@therapyexpert.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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