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

Detecting presence of attributes

Subject: Detecting presence of attributes
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Mon, 5 Feb 2001 22:21:48 +2400
 Detecting presence of attributes
I'm having a problem with detection of the presence of attributes.
If I say
<xsl:if test="@foo=''"> then I would expect the condition to be true if 
(a) the attribute foo was specified but the value was the null string 
"", or
(b) the attribute foo was not specified at all.

xt does not appear to honor either. Is this a bug in xt, or have 
I missed 
some additional piece of syntax. What I want is the equivalent to 
Omnimark's condition `when attribute foo is specified'.

A second problem arises with the position() function. In xt this appears
only to work within an <xsl:for-each> loop, not in a node group
instantiated by a match or select. Is this a bug or just my misreading?

///Peter








 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.