Hello.
I've got a question about xsl:choose
I've got an element <person> with the sequence of
<first_name><last_name><date_bith> and <info>
and the info is not obligatory(minOccurs="0")
When i'm translating my XML document i've got blank cell(in table) when there is no <info> element
I've written sth like this:
<xsl:when test="info=''">
[non info]
</xsl:when>
<xsl
therwise>
<xsl:value-of select="info"/>
</xsl
therwise>
</xsl:choose>
It displays the value of <info> when it is in document and where it's not it still displays blank space.
I konow that i'm testing only if info is empty("") not if info exists.
How can I check if the info is present and display it content and if doesn'y exist display [non info] msg?
thanx in advance
greetings R
I've got a question about xsl:choose
I've got an element <person> with the sequence of
<first_name><last_name><date_bith> and <info>
and the info is not obligatory(minOccurs="0")
When i'm translating my XML document i've got blank cell(in table) when there is no <info> element
I've written sth like this:
<xsl:when test="info=''">
[non info]
</xsl:when>
<xsl
<xsl:value-of select="info"/>
</xsl
</xsl:choose>
It displays the value of <info> when it is in document and where it's not it still displays blank space.
I konow that i'm testing only if info is empty("") not if info exists.
How can I check if the info is present and display it content and if doesn'y exist display [non info] msg?
thanx in advance
greetings R