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

RE: Simple XSLT processor

Subject: RE: Simple XSLT processor
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Mon, 9 Jun 2003 14:01:19 -0400
simple xslt parser
[Fatih TURKMEN]

> How an XSLT processor, assuming processor is operating
> on a DOM tree for stylesheets (that is the style sheet
> instructions are on a DOM tree) operates?
> 
> Just searches these stylesheet instructions on the DOM
> tree(style sheet tree)

Sort of.  The processor creates a tree representing the stylesheet, but
it may not literally be a W3C DOM.  It may be a simplified,
lighter-weight tree instead.

The processor considers the root node of the source xml document.  It
looks to see if it has any templates that apply.  If it does, it applies
the highest priority or best matching one.  If not, it applies the
default template, which gets all the text content.  Usually, that first
template will invoke other templates on other elements.  Processing
continues until there are no more instructions or templates to invoke.

Note that the order of execution is not specified, although of course
the results have to be assembled in the right order at the end.

> and according to the
> instructions it modifies the result tree ?

It creates the result tree as it goes, but does not modify parts once
they are built.

> Lastly, is there a simple XSLT processor that is
> useful for understanding the process?
> 

Not sure what you want to know.  Is it coding techniques?  Xalan and
Saxon, among others, have the source available.

Cheers,

Tom P

 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.