two different templates for same match attr?
Hi Folks!
Is there a way of having two templates matching the same child?
I want to use a xsl:when on my xsl:apply-templates tag.
For example:
<xsl:choose>
<xsl:when test="[test expression here]">
<xsl:apply-templates select="Time_AM"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="Time_AM"/>
</xsl:otherwise>
</xsl:choose>
Now, the two templates (Time_AM and Time_PM) are pointing to the same node "Time" where I have attributes that will be use to select from for the test...
Thanks,
Gabi.
|