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]

RE: xpath question


> What I need is the node to be included if and only if the 
> pp:attr is present *and* has a non-empty value.
> 
> Three cases:
> <ns:elem/> (don't want a match)
> <ns:elem ns:attr=''/> (don't want a match)
> <ns:elem ns:arrt='something'/> (DO want a match)

test="string(@ns:attr)"

Mike Kay


 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]