Re: [xsl] Pipe Question

Subject: Re: [xsl] Pipe Question
From: Karl Stubsjoen <kstubs@xxxxxxxxx>
Date: Fri, 10 Jun 2005 08:45:54 -0700
> Ummm, actually, I believe David Carlisle answered that question a
> couple of days ago.  select='/..'.

Thanks Jonathan for pointing that out, and sorry that I missed that.
Thanks David!

On 6/10/05, Jon Gorman <jonathan.gorman@xxxxxxxxx> wrote:
> Hi Karl,
>
> > If no value/list supplied for the param use the select.  The select does
> > not initialize/filter the param in any way.  Correct?
>
> Correct it does not filter, although it could be argued it initializes
> in the case that a parameter is not passed in.  It sounds like you get
> the basic idea.
>
>
> >  However, nobody still has answered the question:
> >
> > How do you write the select for a parameter to default to empty, not
> > the original source?
>
> Ummm, actually, I believe David Carlisle answered that question a
> couple of days ago.  select='/..'.
>
> It's also mentioned in the XSLT 1.0 spec under 11.2 Values of
> Variables and Parameters: "One convenient way to specify the empty
> node-set as the default value of a parameter is:
>
> <xsl:param name="x" select="/.."/>"
>
> I don't do much with XSLT 2.0 so I'm not sure how the empty-sequence works.
>
> Jonathan T. Gorman.

Current Thread