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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format