cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <>
Subject SVG templates are broken XML
Date Thu, 08 Nov 2001 08:26:17 GMT
Hopefully this issue will go away when we get rid of
the side-bar image buttons. However, it may indicate
some other issue, so i will raise it again.

See background info at issue 4) below. Basically, the
svg template files at documentation/svg/*.xml are all
broken according to the svg10.dtd, mainly because they
have an extra <label> element inside the <text> element.

This has drastic effect when you try to declare the
SVG DTD and then do "build docs". Here is the resultant
error message ...
FATAL_E 10050   [        ] (): Error in TraxTransformer: 
javax.xml.transform.TransformerException: The current
document is unable to create an element of the requested
type (namespace:, name: label).

The full cocoon.log is attached.

> Date: Sat, 3 Nov 2001 01:03:09 +1100
> Subject: XML validation during build docs
> From: David Crossley <>
> OK, i have XML validation working now during build docs.
> It revealed some validation errors - nothing too drastic.
> I have mended all the broken xdocs.
> These are the steps that i took to get it going. Basically
> every XML instance document must declare its ruleset.
> Step 4 is a worry and we need to resolve it. The rest can
> be committed when ready.
> 1) in cocoon.xconf set the parser parameter "validate"
> 2) add initial internal DTD to both *.roles config files
> 3) add an initial external DTD for book.xml documents
> and add a Declaration to each */book.xml
> ... is there a proper DTD somewhere?
> 4) declare the DTD for each SVG template in
> documentation/svg/*.xml
> I got the final release svg10.dtd from W3C. However,
> i encountered some serious issues. Our SVG files are
> broken according to the SVG DTD ...
> a) We have an extra "label" element inside the "text"
> element, which is not allowed by the DTD.
> b) There is no attribute "xmlns:xlink" for the svg element,
> yet our files have that.
> As a workaround to get the rest of the validation run
> happening, i have written a minimal svg DTD based on
> those simple XML files to reflect their current structure.
> --David

View raw message