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

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -