xsl-list
[Top] [All Lists]

[xsl] xsl2 saxon8B stripping off unwanted separation characters

2006-07-06 06:22:30
I have a problem normalizing strings in xslt2 with saxon 8B. Here is an example

XML <a href="http://www.ac-versailles.fr/etabliss/michelet-vanves"; target="_blank"> Lycée
              Michelet</a>
XSL
        <xsl:element name="lycée">
            <xsl:attribute name="nom">
                <xsl:value-of separator=" " select="a"/>
            </xsl:attribute>
        </xsl:element>
        <xsl:value-of select="lycée"/>

RESULT
            <lycée nom=" Lycée&#xA;              Michelet">

----------------------------------------------------------------------

If a add a normalize-space function within the select,

<xsl:value-of separator=" " select="normalize-space (a)"/>

XALAN y Saxon 6.5.5 output what I want

                <lycée nom="Lycée Michelet">

On the contrary, Saxon8B outputs a static error :

A sequence of more than one item is not allowed as the first argument of normalize-unicode()
        URL: http://www.w3.org/TR/xpath20/#ERRXPTY0004

What's happening and how is it posible to normalize strings with saxon 8B ?

Thanks

Jacques Fauquex
--~------------------------------------------------------------------
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>