This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Multiple attributes present and non-present
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 6 Mar 2002 18:40:52 -0000
- Subject: RE: [xsl] Multiple attributes present and non-present
- Reply-to: xsl-list at lists dot mulberrytech dot com
I thought that:
>
> <xsl:if test="@ENCODINGANALOG/text()"/>
>
> would do this.
>
It will always return nothing, because attribute nodes do not have children.
test="@X" will succeed if attribute X exists
test="string(@X)" will succeed if X exists and its value is not the empty
string
test="@X=''" will succeed if X exists and its value is the empty string
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list