Hi All! I have the cocoon2.0.2 on Tomcat4.0.4 and I tried to generate png from following svg: mean.svg <?xml version="1.0" standalone="no"?> <svg width="600" height="480" xmlns:xlink="http://www.w3.org/1999/xlink">
<desc>Produced by GNUPLOT (svg.trm written by Amedeo Farello - [EMAIL PROTECTED])</desc> <defs> <circle id="gpDot" r="1"></circle> <path id="gpPt0" style="stroke-width:0.222" d="M-1,0 L0,-1 L1,0 L0 1 z"></path> <path id="gpPt1" style="stroke-width:0.222" d="M-1,0 h2 M0,-1 v2"></path> <path id="gpPt2" style="stroke-width:0.222" d="M-1,-1 h2 v2 h-2 z"></path> <path id="gpPt3" style="stroke-width:0.222" d="M0,1.33 L-1.33,-0.67 L1.33,-0.67 z"></path> <path id="gpPt4" style="stroke-width:0.222" d="M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1"></path> </defs> <g style="fill:none; stroke:black; stroke-width:1.00"> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,426 L575,426 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,426 L84,426 M575,426 L566,426 "></path> <g transform="translate(67,430)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 4.8</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,358 L575,358 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,358 L84,358 M575,358 L566,358 "></path> <g transform="translate(67,362)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 5</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,289 L575,289 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,289 L84,289 M575,289 L566,289 "></path> <g transform="translate(67,293)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 5.2</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,221 L575,221 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,221 L84,221 M575,221 L566,221 "></path> <g transform="translate(67,225)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 5.4</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,153 L575,153 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,153 L84,153 M575,153 L566,153 "></path> <g transform="translate(67,157)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 5.6</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,84 L575,84 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,84 L84,84 M575,84 L566,84 "></path> <g transform="translate(67,88)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 5.8</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M75,16 L575,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M75,16 L84,16 M575,16 L566,16 "></path> <g transform="translate(67,20)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:end"> <text> 6</text> </g> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M77,426 L77,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M77,426 L77,417 M77,16 L77,25 "></path> <g transform="translate(77,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>01/02</text> </g> <path d="M95,426 L95,422 M95,16 L95,20 M113,426 L113,422 M113,16 L113,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M132,426 L132,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M132,426 L132,417 M132,16 L132,25 "></path> <g transform="translate(132,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>02/02</text> </g> <path d="M151,426 L151,422 M151,16 L151,20 M169,426 L169,422 M169,16 L169,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M185,426 L185,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M185,426 L185,417 M185,16 L185,25 "></path> <g transform="translate(185,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>03/02</text> </g> <path d="M203,426 L203,422 M203,16 L203,20 M221,426 L221,422 M221,16 L221,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M240,426 L240,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M240,426 L240,417 M240,16 L240,25 "></path> <g transform="translate(240,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>04/02</text> </g> <path d="M258,426 L258,422 M258,16 L258,20 M277,426 L277,422 M277,16 L277,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M295,426 L295,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M295,426 L295,417 M295,16 L295,25 "></path> <g transform="translate(295,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>05/02</text> </g> <path d="M314,426 L314,422 M314,16 L314,20 M332,426 L332,422 M332,16 L332,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M352,426 L352,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M352,426 L352,417 M352,16 L352,25 "></path> <g transform="translate(352,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>06/02</text> </g> <path d="M370,426 L370,422 M370,16 L370,20 M388,426 L388,422 M388,16 L388,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M406,426 L406,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M406,426 L406,417 M406,16 L406,25 "></path> <g transform="translate(406,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>07/02</text> </g> <path d="M425,426 L425,422 M425,16 L425,20 M443,426 L443,422 M443,16 L443,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M464,426 L464,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M464,426 L464,417 M464,16 L464,25 "></path> <g transform="translate(464,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>08/02</text> </g> <path d="M482,426 L482,422 M482,16 L482,20 M500,426 L500,422 M500,16 L500,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M519,426 L519,25 L519,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M519,426 L519,417 M519,16 L519,25 "></path> <g transform="translate(519,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>09/02</text> </g> <path d="M538,426 L538,422 M538,16 L538,20 M556,426 L556,422 M556,16 L556,20 "></path> </g> <g style="fill:none; stroke:gray; stroke-width:1.00"> <path d="M575,426 L575,16 "></path> </g> <g style="fill:none; stroke:black; stroke-width:1.00"> <path d="M575,426 L575,417 M575,16 L575,25 "></path> <g transform="translate(575,448)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>10/02</text> </g> <path d="M75,426 L575,426 L575,16 L75,16 L75,426 "></path> <g transform="translate(22,221) rotate(-90)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>Mean Weighted</text> </g> <g transform="translate(325,475)" style="stroke:none; fill:black; font-family:Arial; font-size:12.00; text-anchor:middle"> <text>Months</text> </g> </g> <g style="fill:none; stroke:red; stroke-width:1.00"> <use xlink:href="#gpPt1" transform="translate(76,255) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(132,221) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(184,139) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(240,153) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(295,105) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(352,105) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(406,98) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(463,95) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(519,81) scale(9.00)"></use> <use xlink:href="#gpPt1" transform="translate(574,81) scale(9.00)"></use> </g> <g style="fill:none; stroke:green; stroke-width:1.00"> <path d="M76,255 L132,221 L184,139 L240,153 L295,105 L352,105 L406,98 L463,95 L519,81 L574,81 "></path> </g> </svg> in sitemap.xmap: <map:match pattern="*.svg"> <map:generate src="work/svg/{1}.svg"/> <map:serialize type="svg2png"/> </map:match> But get the error <8-((: The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that org.apache.cocoon.ProcessingException says: Failed to execute pipeline. More precisely: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: http://xml.apache.org:-1 The URI '' specified on the element <use> is invalid extra info full exception chain stacktrace Original exception : org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: http://xml.apache.org:-1 The URI '' specified on the element <use> is invalid at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272) at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724) ... I'm sure in my use of <use> element (I loocked at the specification svg v1.0 on http://www.w3.org/TR/SVG/struct.html#UseElement) Can anyone explain me where I'm wrong :) ? Thanx! -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>