Discussion:
Omnimark Parse DTD
(too old to reply)
t***@gmail.com
2006-05-17 19:50:24 UTC
Permalink
I am trying to create a script that will parse an SGML DTD and list the
elements that are actually accessible. Due to previous modularization,
there are elements that are declared in the DTD, but aren't accessible
from the appropriate base element. I currently have it set up to list
all of the elements declared by searching for the <!ELEMENT pattern,
but this doesn't ignore the elements that have been removed via
commenting or those that are declared but you can't use. Any ideas?

Tom
Peter Flynn
2006-05-17 20:48:25 UTC
Permalink
Post by t***@gmail.com
I am trying to create a script that will parse an SGML DTD and list the
elements that are actually accessible. Due to previous modularization,
there are elements that are declared in the DTD, but aren't accessible
from the appropriate base element. I currently have it set up to list
all of the elements declared by searching for the <!ELEMENT pattern,
but this doesn't ignore the elements that have been removed via
commenting or those that are declared but you can't use. Any ideas?
I think Earl Hood's perlSGML tools have something that can help do this.
http://savannah.nongnu.org/projects/perlsgml/

///Peter

Loading...