xsl-list
[Top] [All Lists]

normalize-space() problem with Xalan

2002-11-30 16:11:24
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



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