xsl-list
[Top] [All Lists]

Re: [xsl] "'tokenize' is not a valid XSLT or XPath function."

2006-06-26 13:11:22
Went with the FXSL String-split-to-words method. Looks like:

-----------

<xsl:variable name="placementDate">  <!-- "4/15/1982" -->
        <xsl:call-template name="str-split-to-words">
                <xsl:with-param name="pStr" 
select="msxsl:node-set($vr//placementDate)" />
                <xsl:with-param name="pDelimiters" select="'/'" />
        </xsl:call-template>
</xsl:variable>
------
and then later
-----

<input type="text" class="MM" id="referralMM">
        <xsl:attribute name="value">
                <xsl:value-of select="msxsl:node-set($referralDate)/*[1]" />  <!-- 
"4" -->
        </xsl:attribute>
</input>

----


Thanks for all your suggestions.

-Steve
On 6/23/06, bryan rasmussen <rasmussen(_dot_)bryan(_at_)gmail(_dot_)com> wrote:
MSXML does not support exsl tokenize natively, nor does it support the
XSLT 2.0 version. However you can do one of the following:

1. Use FXSL String split to words http://fxsl.sourceforge.net/
http://www.oxygenxml.com/archives/xsl-list/200504/msg00942.html

2. Use an exslt implementation for msxml that supports tokenize
http://www.exslt.org/str/functions/tokenize/index.html

there seems to be one in javascript there by Chris Bayes which I would
expect to be MSXML specific.

3. write your own using javascript, either associated with your own
namespace or using the exslt namespace.
http://www.stylusstudio.com/xsllist/200101/post01420.html

4. Change parser. Saxon's performance has recently outstripped MSXML I
believe so there might not be as much reason to use the latter any
longer.

Cheers,
Bryan Rasmussen

On 6/23/06, Kamal Bhatt <kbhatt(_at_)tt(_dot_)com(_dot_)au> wrote:
>
> Don't know if MSXSL supports exslt, but exslt supports tokenize, try to
> use that:
>
>
> http://www.exslt.org/str/functions/tokenize/index.html
>
> --
> Kamal Bhatt
>
>
> --
> Disclaimer: This email is confidential and may contain privileged information 
for the sole use of the person or business to which it is addressed. If you are 
not the intended recipient, please notify the sender by return e-mail or phone as 
you must not view, disseminate, distribute or copy this email without our consent. 
We do not accept any liability in connection with any computer virus, data 
corruption, incompleteness, or unauthorised amendment of this email. It is the 
sole responsibility of the receiver to scan for viruses before opening.
>
> --~------------------------------------------------------------------
> 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>
> --~--
>
>

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



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