Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: is this stylesheet valid?

From: Pavel Lepin <p.lepin@-------.--->
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent