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

RE: JAXP Saxon Extensions and Java Objects

Subject: RE: JAXP Saxon Extensions and Java Objects
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 30 May 2002 15:53:45 +0100
jaxp saxon

> >There are various ways you can do this. Certainly, you can use the
> >[Saxon] setUserData() and getUserData() methods on the Controller
object to 
> >pass data into extensions. ...
> >
> Yes, it looks like this will work nicely. We did a test just 
> setting the 
> objects as jaxp parameters as usual and the picking them up from the 
> Controller object. However, it took be a few minutes to 
> realize that the 
> parameters stored in the controller are wrapped in Saxon classes of 
> thier own. But once I caught on it was smooth sailing. One 
> question, why 
> are there "UserData" and "Parameters" in Saxon? What is "UserData" 
> usually used for?

It was invented a long time ago as a place for non-XSLT Saxon
applications to store working data. Saxon is rarely used that way any
more, but the facility has survived, and is used by Saxon itself for
storing certain data, especially data kept by "memo" functions such as
<xsl:number> to avoid recomputing results repeatedly.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.