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

RE: XPath 2.0 fn:tokenize

Subject: RE: XPath 2.0 fn:tokenize
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 22 Nov 2004 23:02:34 -0000
fn tokenize
When using XSLT, you can forget the fn: prefix for XPath system functions,
it's not needed. At the moment the actual namespace changes with each draft
of the specs and with each Saxon release, so you can make life far easier
for yourself by just letting it default.

Michael Kay

> -----Original Message-----
> From: Naomi Gronson [mailto:naomi_gronson@xxxxxxxxx] 
> Sent: 22 November 2004 20:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XPath 2.0 fn:tokenize
> 
> I'm trying to use the XPath fn:tokenize function. 
> I've made some progress, but I've encountered an error
> that has me stumped:
> 
> The Namespace:
> 
> <xsl:stylesheet   
>      version="2.0"
>      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fn="http://www.w3.org/2004/10/xpath-functions" >
> 
> The xsl test:
> 
> <xsl:value-of select="fn:tokenize('abracadabra',
> '(ab)|(a)')"/>
> 
> The Error:
> 
> Error at xsl:value-of on line 348 of
> file:/C:/CMX/filter.xsl:
>   XPath syntax error at char 38 on line 348 in
> {...ize('abracadabra', '(ab)|(a..
> .}:
>     Cannot find a matching 2-argument function named
> {http://www.w3.org/2004/10/
> xpath-functions}tokenize()
> Failed to compile stylesheet. 1 error detected.
> 
> I'm using saxon 8.1.1.  I have a feeling that it has
> something to do with the namespace, but I have no idea
> what.  If anyone has any guesses, I'd love to hear
> them.  Thanks a lot.
> 
> Naomi
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Meet the all-new My Yahoo! - Try it today! 
> http://my.yahoo.com 

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.