This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Multiple attributes present and non-present


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]