[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xml DOM/DTD graph visualization

  • From: Bart Schuller <schuller+xml-dev@l...>
  • To: xml-dev@l...
  • Date: Mon, 25 Jun 2001 20:04:05 +0200

dtd graphviz
On Mon, Jun 25, 2001 at 04:47:22PM +0200, james anderson wrote:
> I was curious about how an automatic layout package would fare with DTD
> and DOM graphs. A naive generator for GraphViz's "dot" format is a
> straight-forward graph walk. The "dot" file describes the connectivity
> only. GraphViz is left with the hard work. The results are adequate for

Which reminds me, I started on defining an XML representation of dot
files and wrote a PerlSAX handler that writes out real .dot files.
Very useful for generating graphs with XSLT.
I added lexical scoping for default attributes, but subgraphs need some
more thinking.

Contact me if anyone's interested, I may even rewrite it in Java to make
it useful for a larger number of people.

Example:

    <digraph id="graph0">
        <graph_attr center="1">
            <node id="node01" color="red"/>
            <node_attr shape="box">
                <node id="node02"/>
            </node_attr>
            <edge_attr dir="both">
                <edge from="node01" to="node03"/>
            </edge_attr>
            <edge from="node01" to="node02"/>
        </graph_attr>
    </digraph>

-- 
The idea is that the first face shown to people is one they can readily
accept - a more traditional logo. The lunacy element is only revealed
subsequently, via the LunaDude. [excerpted from the Lunatech Identity Manual]

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.