|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: <xsl:for-each> not working...
> Sir, your recommended piece of code doesn't do much different from what my > code was doing. well it added a test so that it would only output the <a name="out" anchor for one of the ancestors that had the string "Outputs" in its name attribute, which was what I thought you asked for. Your test file as posted later though only had one element with such an attribute so the extra test would do nothing in that case, so probably I didn't understand the question. By the way do you really mean contains(@name,'Outputs') here (and similarly your other tests) your test file had the attribute equal to this string, if a test of @name='Outputs' is acceptable you could probably simplify greatly as with = you can do existential quantification as in ancestor::*/@name='Outputs' which tests if any ancestor has that attribute, a form that you can't do so easily with contains(). David 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
|

Cart








