|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: test if null
> How would i test if a node is null? There's no such thing as "null" in the data model, you'll have to explain more precisely what condition you want to test. The usual way in XML to represent absent data is with an absent element: you seem to be testing for an element that is present but has empty content. > like i have this empty node <EMPTYNODE /> > <xsl:when test="EMPTYNODE[.!= '']"> > > is not working. You are testing whether the context item has a child named EMPTYNODE whose content is something other than the zero-length string. If this "isn't working" then you'll have to describe the context in which you are using it. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








