Re: [xsl] Any way to specify diagnostic message for missing stylesheet parameter?

Subject: Re: [xsl] Any way to specify diagnostic message for missing stylesheet parameter?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 16 Oct 2014 13:24:01 -0000
> You can define a default value of parameter in a way to report omission:
>
> <xsl:param name="somevar">
>  <xsl:sequence select="'default'"/>
>  <xsl:message select="somevar is not specified"/>
> </xsl:param>
> --
> VN
>

The spec offers no guarantee that the default value will be evaluated only if
it is needed.

Michael Kay
Saxonica

Current Thread