xsl-list
[Top] [All Lists]

Re: [xsl] Typing variables

2012-09-18 05:19:57
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>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>