[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Any way to specify diagnostic message for missing

Subject: Re: Any way to specify diagnostic message for missing stylesheet parameter?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Oct 2014 16:58:30 -0000
Re:  Any way to specify diagnostic message for missing
One could extend this requirement to all sorts of other situations, e.g. if
parameters are supplied but invalid, the source document is invalid, etc.
You're opening a whole new area. It would be wrong to tackle this one example
on its own.

Michael Kay
Saxonica
mike@xxxxxxxxxxxx
+44 (0) 118 946 5893




On 15 Oct 2014, at 17:19, David Sewell dsewell@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Given a stylesheet parameter <xsl:param name="somevar" required="yes"/>,
failing to supply a parameter value at run-time results in a boilerplate error
message such as "XTDE0050: No value supplied for required parameter somevar".
>
> It would be helpful to be able to supply a custom error message such as
"required: somevar=[true|false|unknown]" to save the user the time it takes to
look through the code to figure out what parameter is expected. There's no way
to do this in the XSLT spec through 3.0, correct? and no common extensions for
doing it?
>
> If not, would that be a useful feature for others, or are there reasons not
to implement something like that as an extension or enhancement?
>
> David
>
> --
> David Sewell, Editorial and Technical Manager
> ROTUNDA, The University of Virginia Press
> PO Box 400314, Charlottesville, VA 22904-4314 USA
> Email: dsewell@xxxxxxxxxxxx   Tel: +1 434 924 9973
> Web: http://rotunda.upress.virginia.edu/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.