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

Re: Accessing context from xsl:function body

Subject: Re: Accessing context from xsl:function body
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Thu, 8 Nov 2007 14:23:57 +0530
Re:  Accessing context from xsl:function body
Hi Colin,
  What exactly do you mean by 'referential transparency'?

I guess, the named template in XSLT 2.0 is able to access the context,
for backward compatibility reason. Is it true..?

On Nov 8, 2007 2:06 PM, Colin Adams <colinpauladams@xxxxxxxxxxxxxx> wrote:
> If a function could access the context, then it could also change it.
> hen referential transparency would be lost.
>
> If you need particular pieces of information from the context (such as
> the position, or item), then you could pass them to the function as
> paramters.


-- 
Regards,
Mukul Gandhi

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.