>>>>> "JS" == Jane Singer <[EMAIL PROTECTED]> writes:

JS> I'm again asking this question: are the documents created by
JS> org.apache.batik.dom.svg.SVGDocumentFactory valid W3C SVG
JS> documents?  I've downloaded a program by JASC software called
JS> WebDraw. It did a beautiful job of parsing my svg documents and
JS> reporting errors. Most of them were easily fixed, but it is
JS> reporting some attributes of the a <use> element defined.  Some of
JS> these are:

JS> xlink:show xlink:actuate xlink:type

    According to the SVG DTD these are allowed on the use Element
(actually any element that has an xlink:href - as they are the rest of
the attributes from the 'xlink' specification).  The SVG specification
doesn't generally discuss them as we only use a subset of xlink and so
these attributes are generally not very interesting.

JS> These attributes were not added by me, they were automatically
JS> created when I created the element: SVGdoc.createElementNS(svgNS,
JS> "use");

JS> What is going on here? Can I prevent these attributes from being
JS> created?

    Well you can certainly remove them once they are created.  Of
course the document is perfectly valid with them I'm not entirely sure
why they are added by default - the xlink:href attribute is of course
required for the use element and I think the rest are coming along
for 'the ride'.  Perhaps someone else can explain why they are needed
(allowing the user to set them should be supported of course).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to