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

SHOWTREE stylesheet update

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

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.