[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Program to evaluate a set of DTD files
Here is another tool, called DtdAnalyzer: https://github.com/Klortho/DtdAnalyzer We've been using this internally, and recently put on GitHub to try to put it in a form that might be more generally useful. It's written in Java, and converts a DTD into an XML (elements-and-attributes) representation. There are a few other scripts that build on top of this XML representation, for example, to generate documentation and to do diffs. Those tools haven't been moved into this GitHub project yet, but should be soon. Cheers! Chris Maloney On Thu, Jun 7, 2012 at 3:07 PM, Betty Harvey <harvey@xxxxxxxxxx> wrote: > Rob: > > I use a utility written in Perl by Earl Hood to do this type of analysis > on DTDs. B Since the utility pre-XML it supports both SGML and XML DTD's. > The utility is called 'dtd2html'. B It is really nice utility because it > shows you the content model as well as the parents and children of the > element. B Pretty handy! > > I think you should be able to find it by doing a Google search but if not, > let me know. > > Betty > >> Hi >> Given a set of DTD files, with entities and parameter entities in two or >> more files, including entities redefined in more than one place >> (overridden), is there a way to ask a parser to describe the net effect >> for each element? >> For instance, can XSLT ask the parser for the allowed elements or >> attributes in a given element, and the actual element rule, example: >> - B title contains B (#PCDATA | b | i )* >> >> The purpose of this is to test that the result of using a given DTD is >> still unchanged after I change the entities, by for instance, replacing >> some text with a parameter entity. >> >> Thanks, >> Rob >> >> -- >> Rob Echlin, Documentation Systems Architect, Wind River >> +1.613.270.5796B | Skype: rob.echlin.wr >> WR Jive - https://communities.windriver.com/people/rechlin >> >> > > > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ > Betty Harvey B B B B B B B B B B B B | Phone: B 410-787-9200 B FAX: 9830 > Electronic Commerce Connection, Inc. | > harvey@xxxxxxxxxx B B B B B B B B B B | Washington,DC XML Users Grp > URL: B http://www.eccnet.com B B B B B | http://www.eccnet.com/xmlug > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/ > Member of XML Guild (www.xmlguild.org)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|