xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

SHOWTREE stylesheet update


Subject: SHOWTREE stylesheet update
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 31 Oct 1999 14:24:29 -0500

Hello everyone! And Happy Hallowe'en to those who have fun at this time of year (I've got a wife and kids who love the fun so I can't miss its arrival each year).

I meant to post this a while ago since I've been asked about an updated version of SHOWTREE. This is an XSLT stylesheet that reports the source node tree interpretation of a source file as created by the XSLT engine running the stylesheet.

For a given XML file, say:

<?xml version="1.0"?>
<!--sample input-->
<greeting>
<first skip="f">Hello world!</first>
<second skip="t"/>
</greeting>

... the SHOWTREE stylesheet reports an enumeration of the nodes as follows:

1  Comment (): {sample input}
2  Element 'greeting' ():
2.1  Text (greeting): {
}
2.2  Element 'first' (greeting):
2.2.1  Attribute 'skip' (greeting,first): {f}
2.2.2  Text (greeting,first): {Hello world!}
2.3  Text (greeting): {
}
2.4  Element 'second' (greeting):
2.4.1  Attribute 'skip' (greeting,second): {t}
2.5  Text (greeting): {
}

The latest version is now available in the free Resource Library section of our web site. By popular demand, archaic versions supporting out-of-date working drafts of the recommendation are still made available.

Please let me know if you have any questions (and "no, the XML declaration isn't a processing instruction (even though it looks like one) so that is why it doesn't show up in the report").

.................... Ken

--
G. Ken Holman                    mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.             http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999   (Fax:-0995)
Web site: XSL/XML/DSSSL/SGML services, training, libraries, products.
Practical Transformation Using XSLT and XPath      ISBN 1-894049-02-0
Next instructor-led training:  1999-11-08, 1999-11-09, 1999-12-05/06,
-                1999-12-07, 2000-02-27/28, 2000-05-11/12, 2000-05-15


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




Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor