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

Unknown system function escape-uri()

Subject: Unknown system function escape-uri()
From: Tim Lebo <timleboxslt@xxxxxxxxx>
Date: Fri, 13 Nov 2009 07:55:32 -0500
 Unknown system function escape-uri()
xsl-list,

I am attempting to retrieve a document from a URL with the following
script and saxonhe9-2-0-3j.jar
I have done this before with URLs that do not contain characters such
as {*+ etc.

I am getting the error:

Error at xsl:variable on line 14 column 108 of page2.xsl:
  XPST0017: XPath syntax error at char 68 on line 14 in {...+named url
file*.xml',false...}:
    Unknown system function escape-uri()


I am surprised, because I use xpath functions very frequently, and I
am staring at the listing on page 773 of Michael Kay's XSLT 2.0 3rd
ed.
Could anyone suggest a remedy?

Regards,
Tim Lebo


<xsl:transform version="2.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               exclude-result-prefixes="">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>

<xsl:template match="/">
   <xsl:variable name="url" select="escape-uri('http://files.com/my
poorly+named url file*.xml',false())"/>
   <xsl:variable name="webfile" select="doc($url)"/>
   <xsl:apply-templates select="$webfile/*"/>


   <!-- just to check that I can call default xpath functions -->
   <xsl:variable name="check-fn" select="distinct-values((4, 4, 5))"/>
   <xsl:for-each select="$check-fn">
      <xsl:value-of select="."/>
   </xsl:for-each>
</xsl:template>

</xsl:transform>

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.