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

XSL-T to map a D(A)G

Subject: XSL-T to map a D(A)G
From: Goetz Bock <bock@xxxxxxxxxxx>
Date: Tue, 2 Oct 2001 11:15:07 +0200
 XSL-T to map a D(A)G
Hi all,

I've an XML file that describes a DG and am looking for an xsl-t to map
this into a SVG/PNG image.

The XML consists of a couple of nodes with links inbetween. The links
are direckted, and one node is the start.

something like:

<graph start="1">
  <node id="1">
    <link to="2" />
    <link to="3" />
  </node>
  <node id="2">
    <link to="4" />
  </node>
  <node id="3" />
  <node id="4" />
</graph>

this should be mapped into:

                  .---.
                  | 1 |
                  `---'
                    |
              .-----^-----.
              |           |
            .---.       .---.
            | 2 |       | 3 |
            `---'       `---'
              |
            .---.
            | 4 |
            `---'

I know that such a mapping is not easy and  due to the scructur of the
XML it is possible to created the strangest graphs :-(
But I'd be happy just do map a DAG, ignorring all the backward
references.

I don't need this immediatly, because this functionality will only be
the suggar for my current project.
Anyway, has anyone ever written a D(A)G mapper in XSL-T? 
Or should I just forget XSL-T for this and use a "real" programming
language.

Thanks,
    Goetz.

Attachment: pgp00005.pgp
Description: PGP signature

Current Thread

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
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.