Bug 49046

Summary: SVGGraphics2D: Allow toggling the output of DOCTYPE declaration
Product: Batik - Now in Jira Reporter: Helder Magalhães <helder.magalhaes>
Component: SVGGraphics2DAssignee: Batik Developer's Mailing list <batik-dev>
Status: NEW ---    
Severity: enhancement    
Priority: P4    
Version: 1.8   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://www.w3.org/TR/SVG11/intro.html#NamespaceAndDTDIdentifiers

Description Helder Magalhães 2010-04-05 13:59:11 UTC
In the current draft for SVG 1.1 Second Edition, DOCTYPE declaration usage is *not* being recommended [bug's URL].

It seems that suppressing it isn't trivial [1] but there are known workarounds (a couple in the provided link).

The idea would be adding a mechanism to control the output of the DOCTYPE declaration. Also, maybe change the default to "do not emit the DOCTYPE" as well.

[1] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200908.mbox/%3COF29725232.1FB07677-ON85257623.003BF0EA-85257623.003C7CDB@knotes.kodak.com%3E
Comment 1 Helder Magalhães 2012-08-13 18:39:15 UTC
(In reply to comment #0)
> In the current draft for SVG 1.1 Second Edition, DOCTYPE declaration usage
> is *not* being recommended [bug's URL].

The draft has became a recommendation for a while already - updating bug's URL in accordance.