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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -