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

ANNOUNCE: ASCII XML Tree Viewer

Subject: ANNOUNCE: ASCII XML Tree Viewer
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 13 Feb 2001 13:44:31 -0700 (MST)
ascii tree
------------------------------------------------------------------------

ASCII XML Tree Viewer

Description: ASCII XML Tree Viewer shows the node structure of an XML
document in the form of plain text 'ASCII art'. There are different ways
of representing what's in an XML document. This particular model is what
is used by XSLT and is prescribed by Section 5 of the XPath
recommendation. 

ASCII XML Tree Viewer was written by Jeni Tennison and Mike J. Brown.
(Thanks Jeni!) 

Requirements: The ASCII XML Tree Viewer is an XSL document that must be
applied to a source tree with an XSLT processor. I have tested it with
Michael Kay's SAXON. 

------------------------------------------------------------------------

The stylesheet and sample output (from the stylesheet applied to itself)
is at http://skew.org/xml/stylesheets/ascii-treeview/

Modifications from the code Jeni posted today:

 - no more dangling branches (added child::node() test)
 - element and attributes expressed with both name and expanded-name
    when namespace URI is not null
 - escaping occurs for attribute values
 - processing instruction expressed as target='' and instruction=''
 - backslashes and apostrophes are also escaped
 - top-level parameter affects whether namespace nodes are displayed

The next step will be to produce an HTML equivalent so that the
transformation will work well in a browser, with additional styling
via CSS.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.