[xsl] ANNOUNCE: ASCII XML Tree Viewer

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

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

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