|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Checking for empty values
> >To test if the element exists and is non-empty: > > > ><xsl:template match="book"> > ><xsl:if test="string(author)"> > > Does this form of the test work for elements that only contain other > elements (i.e. no text nodes)? No. To test that the element exists and has text and/or element content: <xsl:if test="author/* or author/text()"> Mike XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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








