Alternative to xsl:choose?2004-09-22 11:07:14The basic difference in these two conditions is that the first executes the
sc:link extension and outputs the result, the second simply outputs the
strong tag. It seems like there should be an easier/shorter/less redundant
way to code this - any suggestions?
<xsl:choose>
<xsl:when test="$id != @id">
<sc:link><sc:text field="headline" /></sc:link>
</xsl:when>
<xsl:otherwise>
<strong><sc:text field="headline" /></strong>
</xsl:otherwise>
</xsl:choose>
|
|
||||||||||||||||