This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Matching or testing dynamically created attributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]