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

Re: [exsl] Naming exsl:return/exsl:result (Was: Re: Fu

Subject: Re: [exsl] Naming exsl:return/exsl:result (Was: Re: Functional programming in XSLT)
From: "Lassi A. Tuura" <lat@xxxxxx>
Date: Tue, 20 Mar 2001 14:43:34 +0100
lassi tuura
I wrote:
> When the RTF concept is removed, would it not be possible to say that
> xsl:value-of just returns the original node set instead of a copy?

And that was of course me being forgetful.  I was thinking of
xsl:copy-of, whose name seems inappropriate for overloading (I do make
that mistake often).  IMHO an unfortunate choice of wordings in the
first place :-(

Given this I would vote for an addition of a generic primitive that
operates with the original node list (= by reference) rather than
copying it as xsl:copy-of does -- and then deprecate xsl:copy-of.  I
suppose one could just change the xsl:copy-of semantics, but then the
name IMO is confusing, as the result might or might not involve copying
depending on the context.

At any rate such a new primitive should be available in all contexts;
returning values from functions would be a natural extension.  Other
uses could include a xsl:variable whose value is a node list with
references to the original nodes (not copies).  This is for situations
when the variable computation is complex enough that it cannot be
written as a simple `select' attribute and has to written as a
template.  Currently we have no other choices but to make a RTF and then
use node-set(), but then the nodes are no longer the same they were in
the original document(s).

Cheers,
//lat
-- 
No the Real Programmer wants a "you asked for it, you got it" text
editor -- complicated, cryptic, powerful, unforgiving, dangerous.
TECO, to be precise.  --Ed Post, "Real Programmers Don't Use Pascal"

 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.