RE: [xsl] error with saxon

Subject: RE: [xsl] error with saxon
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 10 Jun 2004 15:28:57 +0100
As I said in a reply to your previous message, you do not need to use a
namespace prefix to call functions in the standard function library.
However, if you do use one, you must get the namespace declaration right.
The correct URI is:

http://www.w3.org/2003/11/xpath-functions

The error message is a little obscure, because Saxon's "last resort" for
loading functions with an unknown URI is to try to use the URI to local a
Java class containing extension functions.

Michael Kay 

> -----Original Message-----
> From: sarra hamdi [mailto:hacker249@xxxxxxxxx] 
> Sent: 10 June 2004 13:49
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] error with saxon
> 
> hello,
> I have an xml file that I would transform it to svg format 
> with xslt. I use the saxon processor, and xmlspy, but when i 
> try to built it I get the follow error that I don't know how 
> correct it, have you an idea?:
> C:\saxon>saxon c:\Cambridge.xml c:\Untitled1.xsl
> Error at xsl:value-of on line 5 of file:/c:/Untitled1.xsl:
> The URI http://www.w3.org/2003/11/xpath-function does not 
> identify an external  Java class
> Transformation failed: Run-time errors were reported
> 
> 
> -----------------------------------------------------
> The file untitled1.xsl:
> -----------------------------------------------------
> ?xml version="1.0"?>
> <xsl:stylesheet version="2.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> xmlns:xlink="http://www.w3.org/TR/xlink"; 
> xmlns:gml="http://www.opengis.net/gml"; 
> xmlns:fn="http://www.w3.org/2003/11/xpath-function"; 
> xmlns:saxon="http://icl.com/saxon"; 
> xmlns:pre1="http://www.opengis.net/examples";>
> <xsl:output method="xml" 
> doctype-system="http://www.w3.org/TR/2000/03/WD-SVG-20000303/D
> TD/svg-20000303-stylable.dtd" doctype-public="-//W3C//DTD SVG 
> 20000303 Stylable//EN"/>
> 	<xsl:variable name="viewBoxValue">
> 		<xsl:value-of 
> select="fn:tokenize(*/gml:boundedBy/gml:Box/gml:coord ,' \s* ')"/>
> 	</xsl:variable>
> 	<xsl:template match="/">
> 		<xsl:element name="svg">
> 			<xsl:attribute 
> name="viewBox"><xsl:value-of select="$viewBoxValue"/></xsl:attribute>
> 			<!--apply template to each GML geometry 
> property-->
> 			<xsl:apply-templates 
> select="//pre1:cityMember/gml:centerLineOf"/>
> 		</xsl:element>
> 	</xsl:template>
> 	<xsl:template match="pre1:cityMember/gml:centerLineOf">
> 		<xsl:element name="path">
> 			<xsl:attribute 
> name="style">stroke-width:fill:none;stroke:rgb(69,34,118);</xs
> l:attribute>
> 			<xsl:attribute name="d"><xsl:value-of 
> select="fn:tokenize(./gml:coord, ' \s *')"/>
> 			</xsl:attribute>
> 		</xsl:element>
> 	</xsl:template>
> </xsl:stylesheet>
> 
> 
> ____________________________________________________________
> Find what you are looking for with the Lycos Yellow Pages
> http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
> om/default.asp?SRC=lycos10
> 
> --+------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
> 



Current Thread