xsl-list
[Top] [All Lists]

Re: Pipe Question

2005-06-10 08:22:21
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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--