[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: tokenize function

Subject: RE: tokenize function
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 10 Jun 2004 12:29:00 +0100
xslt tokenize function
> 
> hello,
> I want know how can I use the tokenize function of xslt 
> 2.0,and what namespace must I declare.

You don't need to declare any namespace to use functions in the core library
from XSLT. In XSLT, the namespace containing these functions is selected
automatically when you use an unprefixed function name. (There may be other
environments in future that use XPath with a different default function
library - hence the namespace).

> I use xmlspy to validate my xsl file, but I have always an 
> error with the follow line. can you help me to correct it.
> <xsl:value-of select= 
> "fn:tokenize(*/gml:boundedBy/gml:Box/gml:coord, " \ s * " )" />
> Thank you advanced.

As others pointed out, XMLSpy doesn't itself have an XSLT 2.0 processor. It
does allow you to invoke Saxon 7.x as an external processor, but XMLSpy
isn't then (as far as I know) doing any validation.

Also note that if you enclose the select attribute in double quotes, then
any string literals within the XPath expression must be in single quotes.

Michael Kay



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.