[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DTD formal syntax
- From: David Brownell <david-b@pacbell.net>
- To: Jim Mehl <mehl@ihot.com>, xml-dev <xml-dev@lists.xml.org>
- Date: Wed, 06 Jun 2001 12:03:28 -0700
> I want to write something that accepts a DTD, allows you to input
> data that conforms to the DTD, and outputs the data in valid XML.
> XMLSpy does this, but not quite the way I would like.
Now I'm very confused:
Accepts DTD:
<!DOCTYPE foo
PUBLIC "-//some//fpi" "some-uri.dtd"
[
<!-- internal subset is part of dtd too -->
<!ENTITY bar "override what's in external subset">
<!ATTLIST foo bar CDATA "my favorite default">
<!ELEMENT foo EMPTY>
<!-- etc -->
]>
Allows you to input data conforming to that DTD:
<foo />
Outputs the data in valid XML ... hey, "cat" is my
favorite tool for doing that.
What exactly are you after -- something that takes
something resembling a DTD and then turns it into
a DTD?
- Dave