xsl-list
[Top] [All Lists]

Alternative to xsl:choose?

2004-09-22 11:07:14
The 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>



<Prev in Thread] Current Thread [Next in Thread>