Subject: Re: [xsl] Matching or testing dynamically created attributes From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Thu, 21 Jun 2001 13:29:17 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Matching or testing dynam, David Carlisle | Thread | [xsl] Summing a Calculation, Mark Swardstrom |
Re: [xsl] Re: Any Doc to XML conver, Wendell Piez | Date | Re: [xsl] Alternating Colors For Ta, Thomas B. Passin |
Month |