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

error with saxon

Subject: error with saxon
From: "sarra hamdi" <hacker249@xxxxxxxxx>
Date: Thu, 10 Jun 2004 09:49:12 -0400
tr xmlns
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/DTD/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);</xsl: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.com/default.asp?SRC=lycos10

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.