You don't have to (and you can't), use it as explained in the specified article (sequence is important) and add a new parameter to your macro to pass it on to your xslt. Declare a new parameter in your xslt using <xsl:parameter> and output it using <xsl:value-of>
Howto get first available string
Is there a extension in the API that would give me first available string?
I would like to make simpler call for
<xsl:choose>
<xsl:when test="data[@alias='menuTitle'] != ''">
<xsl:value-of select="data[@alias='menuTitle']">
</xsl:when>
<xsl:when test="data[@alias='title'] != ''">
<xsl:value-of select="data[@alias='title']">
</xsl:when>
<xsl:otherwise>
something else
</xsl:otherwise>
</xsl:choose>
You could use parameter chaining:
http://www.netaddicts.be/articles/macro-parameter-chaining.aspx
Sorry, I was not emphasizing in my question that I would like to do this in XSLT file. Any way to call this parameter chaining in XSLT?
You don't have to (and you can't), use it as explained in the specified article (sequence is important) and add a new parameter to your macro to pass it on to your xslt. Declare a new parameter in your xslt using <xsl:parameter> and output it using <xsl:value-of>
Cheers,
/Dirk
is working on a reply...