Hi is there away on how to declare a link(ie:http://www.google.com) as a variable and then using the variable for an else if?Something like this?
<xsl:element name="a">
<xsl:attribute name="href">http://www.google.com</xsl:attribute>// first get the link
<xsl:choose>
<xsl:when test="http://www.google.com">
Do something 1
</xsl:when>
<xsl:otherwise>
Do something 2
</xsl:choose>
</xsl:element>
Is this possible?What should i be looking at?
Use this code as a working example — of course you need to learn at least the basics of XSLT:
when this transformation is applied on any XML document (not used), the wanted result is produced:
One can also use a global
<xsl:param>. This can be set externally by the invoker of the transformation.