I want to display a field in one column or the next column depending upon the existence of an element
The XML is:
The xsl is:
The condtion is such that the XSL should use the fragment:
only when <TextTag><Name> XPER011</Name></TextTag> does not exist in XML. If it does exist, then, Name = XPER013 is handled by XSL from somewhere else in the XSL(not in above code)
The XML is:
Code:
<TextTag><Name>XPER011</Name></TextTag> <TextTag><Name>XPER013</Name></TextTag>
Code:
<xsl:if test="Name='XPER011' or Name='XPER013'">
<xsl:if test="Name='XPER011'">
<span id="textbgblue"><b>Evening Phone</b></span>
</xsl:if>
<xsl:if test="Name='XPER013'">
<span id="textbgblue"><b>Business Name</b></span>
</xsl:if>
</xsl:if>
Code:
<xsl:if test="Name='XPER013'">
<span id="textbgblue"><b>Business Name</b></span>
</xsl:if>