Re: rendering embedded svg

2003-11-18 Thread G . Wade Johnson
Since I only added local mods to the file, I did explicit error checking. That also allowed me to verify data types, etc. which are not handled by DTDs. G. Wade On 18 Nov 2003 10:20:52 -0700 "Weiming Zhang" <[EMAIL PROTECTED]> wrote: > I used it too. it did work. But I could not validate it. Did

Re: rendering embedded svg

2003-11-18 Thread Weiming Zhang
I used it too. it did work. But I could not validate it. Did you validate your files or you implemented other ways to check for error? I really appreciate your help. Weiming On Tue, 2003-11-18 at 09:48, G. Wade Johnson wrote: > Remember, DTDs are not namespace-aware. > > I did not extend the SV

Re: rendering embedded svg

2003-11-18 Thread G . Wade Johnson
Remember, DTDs are not namespace-aware. I did not extend the SVG DTD at all. I added elements (and attributes that were part of a separate namespace. For example, http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:gwj="http://www.anomaly.org/mock_namespace";>

Re: rendering embedded svg

2003-11-18 Thread Weiming Zhang
Hi, Wade, When you added new elements or attributes with different name space to the file, did you use internal DTD to extend SVG DTD? The SVG specification states it can be done with internal DTD. But I might have to extend it quite a lot and I do not want to give a big internal repetitive DTD to

Re: rendering embedded svg

2003-11-03 Thread Weiming Zhang
Thank you so much. This is really helpful. wz On Sat, 2003-11-01 at 05:44, Thomas DeWeese wrote: > Weiming Zhang wrote: > > >>>I want to use > >>>some custom XML tags to add some extra information to the document. For > >>>example, I may specify for certain group of graphic shapes, there are > >

Re: rendering embedded svg

2003-11-01 Thread Thomas DeWeese
Weiming Zhang wrote: I want to use some custom XML tags to add some extra information to the document. For example, I may specify for certain group of graphic shapes, there are certain callbacks. Those callbacks will be specified as either elements or attributes. Thomas DeWeese wrote: This ma

Re: rendering embedded svg

2003-10-31 Thread [EMAIL PROTECTED]
The way I did this on a similar project was to put the new elements and attributes in a different namespace. Batik does not try to render those elements, but it does make them available through the DOM. G. Wade Weiming Zhang wrote: Hi, Thank you very much. Is it possible to rendering such svg co

Re: rendering embedded svg

2003-10-31 Thread Weiming Zhang
Hi, Thank you very much. > > Is it possible to rendering such svg content with Batik? > > Yes, and no. There are some issues with the above example, > like Batik requires an SVGDocument with a 'getRoot' method that > returns the 'root' SVG element. So you might be able to write a > 'hacked

Re: rendering embedded svg

2003-10-30 Thread Thomas DeWeese
Weiming Zhang wrote: The svg specification shows a simple SVG content embedded inline as a fragment within a parent XML document: http://example.org"; xmlns:svg="http://www.w3.org/2000/svg";> Is it possible to rendering such svg content with Batik? Yes,

rendering embedded svg

2003-10-30 Thread Weiming Zhang
Hi, The svg specification shows a simple SVG content embedded inline as a fragment within a parent XML document: http://example.org"; xmlns:svg="http://www.w3.org/2000/svg";> Is it possible to rendering such svg content with Batik? I want to use some custom