How to test for null string in node xslt -
original source of xml
<subdivisiontype> <id>null</id> <name>null</name> <parent i:nil="true"/> </subdivisiontype> string 'null' generated e4x. have check if subdivisiontype/id contains value 'null' skip subdivisiontype tag.
here how do
<xsl:if test="subdivisiontype/id[text()!=null]" > ... </xsl:if> i can't understand how xlst(saxon) treats string 'null'.
i don't know saxon specifically, far i'm aware, isn't "null string"... it's string value "null".
i try changing...
text()!=null to...
text()!='null' so reads...
<xsl:if test="subdivisiontype/id[text()!='null']">
Comments
Post a Comment