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

Adding to doc in extensions

Subject: Adding to doc in extensions
From: "Hunsberger, Peter" <Peter.Hunsberger@xxxxxxxxxx>
Date: Thu, 11 Oct 2001 09:01:15 -0500
adding nodes xsl java extension
I posted this last night but for some reason it never showed up, excuse me
if it ends up here twice.

Our environment is LotusXSL (Xalan 2) on Websphere 3.5.4 on NT. I'm just
getting back into this after a year or so break so excuse me if I get some
of the terminology confused...

I've got a XSLt which I'm using to output HTML.  For one of the XML source
fragments I have to call a Java extension function and return a variable
number of document fragments that have the same structure as the source
fragment but differing values for the various nodes.  Conceptually, I want
to clone the (complete) input  nodeset "n" times and for each new clone,
traverse the fragment and set some new values for various nodes based on the
name of the node.  The structure of the fragment passed to the extension is
not known prior to calling the extension, although the names of the nodes
are. The values substituted into the document fragment are derived from
other Java classes over which I have no control (eg. for node "X" call
method "Y" of class "Z").

The question is, what is the basic mechanism for returning arbitrary
nodesets from an extension back to the XSLt?   However, NodeImpl.cloneNode
does not appear to be implemented (is this a function of the parser?).
ElementImpl has "friendly" constructors which suggests it's not a good idea
to explore that direction and no other implementations of Node appear to
have the necessary function needed.  Finally, there seems to be no higher
level constructs for manipulating the DOM directly?

Any suggestions where I find good documentation on writing extensions in the
first place?  Sample code that shows how to return a dynamically created
nodeset/nodelist would be greatly appreciated....

Peter Hunsberger







 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.