Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: is this stylesheet valid? [Thread Next] Re: is this stylesheet valid?To: NULL Date: 6/5/2007 2:16:00 PM Andy Fish <ajfish@b...> wrote in <Vqb9i.31422$Ro3.15173@t...>: > "David Carlisle" <david-news@d...> wrote > in message news:46608917.2000608@d...... >> Andy Fish wrote: >>> so $param1 has no value (empty string? empty node set? >>> I'm not sure) >> >> rather than have it default to an empty string, and then >> having to test for that to avoid using the variable in >> path expressions, it's usually simpler just to make it >> default to an empty node set, add <xsl:param >> name="param1" select="/.."/> > > unfortunately there were quite a lot of templates with > this optional parameter, although only one of them > actually used the parameter. [...] > so as well as some way of telling whether a variable > contains a node set, string or RTF, I would also like to > have an option on <xsl:call-template> and <xsl:apply > template> that said: > > if this parameter was passed in to me, pass the parameter > into the next template,. otherwise don't pass in the > parameter into the next template Read XSLT2 spec, 10.1.2 and rejoice. (Although I must say I don't see how precisely that would help you, since from the description of your predicament it would seem you'd have to specify the tunneling everywhere anyway.) -- Pavel Lepin | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
