[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: Michael.Kay@xxxxxxx
Date: Wed, 17 Feb 1999 09:49:57 -0000
saxsl
> -----Original Message-----
> From: Ray Cromwell [mailto:ray@xxxxxxxxxxxxx]
> 
> 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);
> 
Take a look at the new SAXON 4.0 on
http://home.iclweb.com/icl2/mhkay/saxon.html (Thanks, Ed Nixon, for the
plug). It's designed to meet this kind of requirement, though currently it
only supports a rather small subset of the XSL pattern syntax.

The idea in SAXON is (a) from XSL you can invoke a Java element handler for
a particular element type (or of course for any match pattern), and (b) from
that element handler you can call applyTemplates(selectPattern) to process
the selected child nodes using their registered XSL templates or Java
element handlers. In other words, you can do all the routine processing in
XSL and escape to Java to process any elements that need special treatment:
or of course you can do it all in XSL or all in Java.

Mike Kay


 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.