I'm trying to add a little more logic to the following template named "drawcell" specifically to the param "linkfield" (top section of code). If a particular field DOCUMENT_URL contains "pubtest" in the url, I'd like the value to be <xsl:value-of select="MT[@N='DOCUMENT_URL']/@V"/> rather than "U", otherwise the value continues to be "U". I'm just not sure how to accomplish that as I'm quite new to XSLT.
Here's the piece of my code, I'm attempting to edit:
<xsl:template name="drawcell_alt">
<xsl
aram name="meta"/>
<xsl
aram name="linkfield"/>
<td valign="top">
<xsl:if test="$linkfield=$meta">
<xsl:text disable-output-escaping="yes">
<a href="</xsl:text><xsl:value-of select="U"/> <xsl:text disable-output-escaping="yes">"></xsl:text>
</xsl:if>
Lots of other code goes here. I'm not including as it's not pertinent.
<xsl:if test="$linkfield=$meta">
<xsl:text disable-output-escaping="yes"></a></xsl:text>
</xsl:if>
</td>
Here's the piece of my code, I'm attempting to edit:
<xsl:template name="drawcell_alt">
<xsl
<xsl
<td valign="top">
<xsl:if test="$linkfield=$meta">
<xsl:text disable-output-escaping="yes">
<a href="</xsl:text><xsl:value-of select="U"/> <xsl:text disable-output-escaping="yes">"></xsl:text>
</xsl:if>
Lots of other code goes here. I'm not including as it's not pertinent.
<xsl:if test="$linkfield=$meta">
<xsl:text disable-output-escaping="yes"></a></xsl:text>
</xsl:if>
</td>