[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xalan-j-users
Subject:    Re: Struggling to iterate over tokenized string
From:       "Mukul Gandhi" <gandhi.mukul () gmail ! com>
Date:       2007-04-09 17:26:08
Message-ID: 7870f82e0704091014m6389f445ha483697eb8c431cc () mail ! gmail ! com
[Download RAW message or body]

It's wrong to write, xsl:transform version="2.0" when using Xalan's
latest version. As Xalan currently doesn't support XSLT 2.0.
xsl:transform version="1.0" would work as well.

On 4/9/07, Dave Brosius <dbrosius@mebigfatguy.com> wrote:
> Thanks, all, for the input. For the curious, this seems to work as desired
>
> <xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                             xmlns:xalan="http://xml.apache.org/xalan"
>                                                exclude-result-prefixes="xalan">
>
>        <xsl:output method="xml" omit-xml-declaration="yes"/>
>        <xsl:param name="input"/>
>
>        <xsl:template match="/">
>                <xsl:element name="test">
>                        <xsl:for-each select="xalan:tokenize($input, ',')">
>                                <xsl:element name="{string(.)}"/>
>                        </xsl:for-each>
>                </xsl:element>
>        </xsl:template>
> </xsl:transform>


-- 
Regards,
Mukul Gandhi
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic