element use in svg

2002-11-14 Thread Yury Mikhienko
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;

descProduced 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
text01/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
text02/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
text03/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; 

element use in svg

2002-11-14 Thread Yury Mikhienko
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;
descExample 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]