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:otherwise>
<xsl:value-of select="info"/>
</xsl:otherwise>
</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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 03-12-20