Re: [xsl] Program to evaluate a set of DTD files

Subject: Re: [xsl] Program to evaluate a set of DTD files
From: Chris Maloney <voldrani@xxxxxxxxx>
Date: Thu, 7 Jun 2012 18:21:47 -0400
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)

Current Thread