Re: [xsl] Typing variables

Subject: Re: [xsl] Typing variables
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Tue, 18 Sep 2012 12:48:32 +0200
Use
   separator=''
and specify all the decorations as arguments to @select of xsl:value-of.

Then xs:string+ will be OK.

-W

On 18/09/2012, Ihe Onwuka <ihe.onwuka@xxxxxxxxxxxxxx> wrote:
> On a slightly different note does attempting to parameterise the
> separator like this qualify as a gotcha.
>
> The separator is meant to be ":" (3 characters not one) I ended up
> defining it in a variable.?
>
>     <xsl:template match="*">
>        <xsl:param name="delim" as="xs:string" select='":"'/>
>        <xsl:text/>"<xsl:value-of select="if (contains(local-name(),'__'))
> then
>
> substring-after(local-name(),'__') else
>                                                  local-name()
>                                                  ,."
>                                       separator="{$delim}"/>"<xsl:text/>
>
>     </xsl:template>

Current Thread