RE: Conditional output for empty node value
> I have a basic problem I am using a xalan parser and not able to put a > condition for empty node in my xsl. You can test whether the current node has children by writing test="node()" You can test whether its string-value is non-empty by writing test="string(.)" Which test you use depends on how you want to handle comments, etc, appearing within the element. Mike Kay 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