[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: <xsl:for-each> not working...

Subject: RE: <xsl:for-each> not working...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 15 Jul 2003 23:01:47 +0100
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.