Please excuse my horrid Lotus Notes MUA....
Most of what I did for the XMLDoctype class is a rip off of what is in the other
html.Doctype class. I didn't change the one there because I didn't want to break
what was already working. I did use the html.Doctype class as a starting point
and I don't feel that this particular one is finished. It would be nice to be
able to create a whole dtd inside the class and not just have to refer to an
external entity. I saw this very much as a first cut and would like to see it
improved by myself and others (ahh...the joys of open source). I'll have a look
at seeing if I can change the other html.Doctype class.
I suppose all of the HTML docytpes could be done as inner classes and the top
level one could be the more general (I'm just thinking out loud now).
This is my first contribution to an open source project so you'll have to
forgive my initial cluelessness.
As far as the tabs go...I'll see what I can get emacs to do.
I'm off to hack the other one now.
cheers,
bld
ps What about things like a <[CDATA ... ]> element and other xml elements?
jon * <[EMAIL PROTECTED]> on 04/04/2000 18:27:03
Please respond to "ECS" <[EMAIL PROTECTED]>
To: ECS <[EMAIL PROTECTED]>
cc: (bcc: Bruce Durling/IT/UK/Europe/Equifax)
Subject: Re: XML Doctype class
on 4/4/00 3:31 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> I haven't been able to find something that does this in either ECS 1.2 or 1.3.
> I'm using ecs heavily for creating xml documents and needed a way to create a
> <!DOCTYPE blah PUBLIC "--/blah/foo/en" "http://foo.net/blah.dtd">. It only
> does
> what I need it to do for now but that's more that I could do with
> org.apache.ecs.html.Doctype which is what this code is based on.
>
> Does this class actually fill a gap?
>
> cheers,
> bld
Instead of doing your own element, why not modify the existing Doctype
element to do what you want/need? Then, send those changes back to us. Also,
don't use tab's in your code, use 4 spaces for a tab.
thanks,
-jon
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]