xsl-list
[Top] [All Lists]

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

2014-10-16 08:24:06


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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>