Anny one who nows what' going on ?
 
By rendering an SVG I got following exception !
 
[EmbeddedTomcatSX] org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The attribute 'd' of the element <path> is required
[EmbeddedTomcatSX]      at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:230)
[EmbeddedTomcatSX]      at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:92)
[EmbeddedTomcatSX]      at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)
[EmbeddedTomcatSX]      at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1186)
[EmbeddedTomcatSX]      at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
[EmbeddedTomcatSX]      at java.lang.Thread.run(Thread.java:484)
[EmbeddedTomcatSX] java.lang.RuntimeException: org.apache.batik.transcoder.TranscoderException: null 
 
 
this is my xsl stylesheet :
 
<?xml version="1.0" encoding="iso-8859-1"?>
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
<xsl:template match="balken">
<svg  width="250.5" height="249.283" viewBox="0 0 250.5 249.283" overflow="visible" enable-background="new 0 0 250.5 249.283"  xml:space="preserve">
 
  <g id="grün02">
   <text transform="matrix(1 0 0 1 12.5 90)" enable-background="new    "><tspan x="0" y="0" fill="#666666" font-family="'Verdana-Bold'" font-size="11">Kennzahl</tspan></text>
   <path fill="#E6E6E6" d="M12.5,92h224v12h-224V92z"/>
 
 I supose it has to do with this tag (the Error is gone when I delete it) 
   <xsl:element name = "path" >
    <xsl:attribute name = "fill" >#A2D27C</xsl:attribute>
    <xsl:attribute name = "d" >M195.547,103.994h-69.939V92.036h69.939V103.994z</xsl:attribute>
   </xsl:element>
    
This one works !
 <path fill="none" stroke="#3D7113" d="M195.547,92.036v11.958"/>
   
This one does not work as well !

   <path >
    <xsl:attribute name = "fill" >#A2D27C</xsl:attribute>
    <xsl:attribute name = "d" >M195.547,103.994h-69.939V92.036h69.939V103.994z</xsl:attribute>
   </path>
    
 
 <text transform="matrix(1 0 0 1 198.4775 102.2271)" enable-background="new    "><tspan x="0" y="0" font-family="'Verdana'" font-size="11">123%</tspan></text>
  </g>
 
  <g id="trenner">
   <path fill="#FFFFFF" stroke="#000000" d="M125.102,62v162"/>
   <text transform="matrix(1 0 0 1 114.915 53.7266)" enable-background="new    "><tspan x="0" y="0" font-family="'Verdana'" font-size="11">Ziel</tspan></text>
  </g>
 </g>
</svg>
</xsl:template>
</xsl:stylesheet> 
 

Reply via email to