Hi Olaf,

Olaf Raether <[email protected]> wrote on 10/21/2009 10:26:58 AM:

> when i load this with Firefox 3.5 everything looks like expected. 
> But Batik only displays the file in the first use tag. The use tags 
inside
> the first one are ignored. Can anyone help me out of this ?

   As Helder mentions the problem is the nested use elements.  If you
check the SVG standard it doesn't allow the use element to contain
other graphical elements (http://www.w3.org/TR/SVG/struct.html#UseElement
):

<!ENTITY % SVG.use.content
    "(( %SVG.Description.class; )*, ( %SVG.Animation.class;
        %SVG.use.extra.content; )*)"
>
<!ELEMENT %SVG.use.qname; %SVG.use.content; >


   So a use element can have desc/title/metadata and animation 
elements as children.  In fact you will get a validation error 
in Batik if you enable using a validating XML parser (and add
appropriate DTD, etc):

The content of element type "use" must match 
"(((desc,((title,metadata?)|(metadata,title?))?)|(title,((desc,metadata?)|(metadata,desc?))?)|(metadata,((desc,title?)|(title,desc?))?))?,(animate|set|animateMotion|animateColor|animateTransform)*)".

Reply via email to