Hi All! I have the cocoon2.0.2 on Tomcat4.0.4 and I tried to generate png from following svg (another sample :))):
test.svg: <?xml version="1.0" standalone="no"?> <svg width="10cm" height="3cm" viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <desc>Example Use01 - Simple case of 'use' on a 'rect'</desc> <defs> <rect id="MyRect" width="60" height="10"/> </defs> <rect x=".1" y=".1" width="99.8" height="29.8" fill="none" stroke="blue" stroke-width=".2" /> <use x="20" y="10" xlink:href="#MyRect" /> </svg> this is test from http://www.w3.org/TR/SVG/struct.html#UseElement tests 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]>