xslt 2.0 - XSLT2.0 | Saxon HE | passing separator as param -
having function below:
<xsl:function name="fn:get-hierachy"> <xsl:param name="hierarchy" required="yes" as="node()"/> <xsl:param name="separator0" required="no" as="xs:string"/> <xsl:value-of select="$hierarchy/*" separator="$separator0"/> </xsl:function>
i'm getting 'separator0' delimiter output eg.
<xsl:value-of select="fn:get-hierarchy($place, ' > ')"/>
result in:
earth$separator0africa$separator0egypt
i'm passing custom delimiter second function argument = ' > '
it's being ignored , variable name used instead.
desired output: earth > africa > egypt
is possible pass separator argument value parameter?
for separator
attribute, need use attribute value template <xsl:value-of select="$hierarchy/*" separator="{$separator0}"/>
.
Comments
Post a Comment