xsl-list
[Top] [All Lists]

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

2012-06-07 17:22:03
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(_at_)eccnet(_dot_)com> 
wrote:
Rob:

I use a utility written in Perl by Earl Hood to do this type of analysis
on DTDs.  Since the utility pre-XML it supports both SGML and XML DTD's.
The utility is called 'dtd2html'.  It is really nice utility because it
shows you the content model as well as the parents and children of the
element.  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:
-   title contains  (#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.5796 | Skype: rob.echlin.wr
WR Jive - https://communities.windriver.com/people/rechlin


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone:  410-787-9200  FAX: 9830
Electronic Commerce Connection, Inc. |
harvey(_at_)eccnet(_dot_)com                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--