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

Re: CSS and XSL

Subject: Re: CSS and XSL
From: Ray Cromwell <ray@xxxxxxxxxxxxx>
Date: Tue, 16 Feb 1999 18:37:38 -0500 (EST)
saxsl
The obvious API for me is one that allows me to take advantage of
the query portion of XSL.

For example, a call like this

NodeSet ns = SAXSL.queryNodes(currentNode, "./book[@title = 'foo']");

or ala JDBC

XSLQuery q = SAXSL.createQuery("./book[@title = '?']");
q.setString(1, "foo");

NodeSet ns = SAXSL.queryNodes(currentNode, q);

I recently had an application where I needed to match nodes
in the input tree, however, I didn't need any transformation 
at all. I just catch data, and do event processing.

Now, I could use XSL to write out a result tree, and then use SAX
to process the result tree, but that's clearly overkill.

Or, I could use SAX directly, but using SAX is like using Lex. 
If I want to match strings according to a context free grammar,
I have to hand code all the stack and query logic.

I'd much rather have something like SQL: Here's my query, give me
a result set, or perform this callback.


Another useful API is a debugging API. At XML98, I presented a hacked
up version of DocProc's XSL processor with a Java front end. The idea
was that one could set "break points" on XML elements in the input
tree or rules in the stylesheet.  Then, you could process the style
sheet, single step the engine, and watch visually exactly how the
matcher is progressing through the input tree.  I thought it would be
very useful especially for large style sheets with lots of modes,
or rules with differing specificity matching the same nodes.

-Ray





 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.