This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ANNOUNCE: ASCII XML Tree Viewer


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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]