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

Failing string() test fail

Subject: Failing string() test fail
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Thu, 25 Jun 2009 23:02:39 -0700
 Failing string() test fail
What would cause a string() test to fail?  I've tested on a simple
xml, like this, with the following test:

Assume we are matching on B

<xsl:if test="string(C/@test)">Yes</xsl:if> You get one Yes.

<A>
    <B>
        <C/>
        <C/>
        <C/>
    </B>
    <B>
        <C/>
        <C test="yes"/>
        <C/>
    </B>
</A>


Of course I have a much more complicated XML, but the premise is the
same.  So isn't the above test valid?  If the test was 3 deep and the
context is A, so: B/C/@test, isn't that also valid?

Karl..

Karl..

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.