Subject: Re: [xsl] Pipe Question From: Jon Gorman <jonathan.gorman@xxxxxxxxx> Date: Fri, 10 Jun 2005 10:22:21 -0500 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Pipe Question, Karl Stubsjoen | Thread | Re: [xsl] Pipe Question, Karl Stubsjoen |
Re: [xsl] Pipe Question, Karl Stubsjoen | Date | Re: [xsl] Processing Efficiently, Karl Stubsjoen |
Month |