[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How can I test if element is empty?
Hi So,how can I test if element is empty with xsl? example element <elem/> or <elem></elem> I have tried this <xsl:choose> <xsl:when test="string-length(elem)"> <xsl:value-of select="elem"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="NOelem"/> </xsl:otherwise> </xsl:choose> and this <xsl:when test="elem == ''"> but that don't work Thanks in advance Denis Kranjcec 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
|