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

RE: multiple output targets (was use-when attribute?)

Subject: RE: multiple output targets (was use-when attribute?)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 22 Dec 2004 01:17:11 -0000
tunnel xalan parameters
> > You have specified tunnel="yes" in the xsl:with-param, but 
> not in the
> > xsl:param, so they don't match up.
> 
> Thanks; removing that not only solved the error problem, but also got 
> the correct templates applied!
> 
> The question is: why is this now working, but not before.  AFAIK, the 
> only difference was the addition of the as="xs:string" 
> attribute to the param element.

I'm not sure I followed the history closely enough to do a reliable
post-mortem. I think the "tunnel" bug was always there, but it only became
evident when you added as="xs:string" that no value was being supplied for
the parameter. This brought the following rule into play:

[ERR XT0610] If an optional parameter has no select attribute and has an
empty sequence constructor, and if there is an as attribute, then the
default value of the parameter is an empty sequence. If the empty sequence
is not a valid instance of the required type defined in the as attribute,
then the parameter is treated as a required parameter, which means that it
is a non-recoverable dynamic error if the caller supplies no value for the
parameter.

which revealed that no value had been supplied for the parameter: and in
trying to understand why, I spotted the discrepancy in the "tunnel" values.

Michael Kay
http://www.saxonica.com/

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.