xsl-list
[Top] [All Lists]

error with saxon

2004-06-10 06:49:12
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


<Prev in Thread] Current Thread [Next in Thread>