xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] normalize-space() problem with Xalan


Subject: [xsl] normalize-space() problem with Xalan
From: "Endre Magyari" <endre@xxxxxxxxx>
Date: Sun, 1 Dec 2002 01:11:24 +0200

Dear list,

    I'm using XMLSPY with both it's internal XSLT processor and XALAN as
external XSLT processor.

    this piece of code:

<xsl:for-each select='Class'>
    <xsl:variable name='base' select='@_id'/>
    <xsl:for-each select='@subTypes'>
            <xsl:call-template name='tokenize'>
                <xsl:with-param name='str'
select="normalize-space(@subTypes)"/>
                <xsl:with-param name='base' select='$base'/>
            </xsl:call-template>
    </xsl:for-each>
</xsl:for-each>

    works with XMLSPY internal XSLT processor, and doesn't work with XALAN.
    The problem is with normalize-space(). While XMLSPY's proc. does the
right thing,
the str passed to the named template will contain the subTypes attribute of
the Class element whenever such an attribute exists.
    When running  it with Xalan, the named template tokenize gets an empty
string.

Any Idea?
Thanks,
Endre


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor