On Friday, October 25, 2002, 7:28:21 PM, David wrote: DM> Hi,
DM> I thought, based on the batik docs, that I could control the URI used DM> to reference the SVG dtd like this: DM> DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation(); DM> String svgNS = "file:///c:/gra/svg10.dtd"; That sets the namespace URI, not the URI of the DTD. DM> Document document = domImpl.createDocument(svgNS, "svg", null); DM> SVGGraphics2D svgGenerator = new SVGGraphics2D(document); DM> svgGenerator.stream(new PrintWriter(System.out), true); DM> But it doesn't work; the tag is still generated: DM> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' DM> 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'> (that is not a tag, strictly, but yes the changes you made above did not have any effect on the URI of the system identifier for the DTD. DM> Am I just completely confused about what the svgNS argument is DM> supposed to do? Yes ;-) The namespace of SVG is http://www.w3.org/2000/svg The DTD is wherever you say it is. A common URI for SVG 1.0 is http://www.w3.org/TR/SVG/DTD/svg10.dtd DM> Is there any way to refer to a local dtd file in the DM> generated xml instead of the one at w3.org? Probably, but I will let folks who know more about the internals respond to that part. -- Chris mailto:chris@;w3.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
