[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Accessing context from xsl:function body


Subject: Re: [xsl] Accessing context from xsl:function body
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Thu, 8 Nov 2007 14:43:17 +0530

I found some information at,
http://en.wikipedia.org/wiki/Referential_transparency.

I agree to your observation ...

Thanks Colin.

On Nov 8, 2007 2:23 PM, Mukul Gandhi <gandhi.mukul@xxxxxxxxx> wrote:
> 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
>



-- 
Regards,
Mukul Gandhi


Current Thread
Keywords