RE: [XSLT2.0] IBM-XSLT-111: Implications of using "as" attribute

I agree that the phrase "validated and/or converted" is fuzzy.

I propose to replace the sentence:

In this situation, the computed value of the parameter will be validated
and/or converted twice, first according to the rules of the as attribute
on the xsl:with-param element, and then according to the rules of the as
attribute on the xsl:param  element.

by

In this situation, the supplied value of the parameter will first be
processed according to the rules of the as attribute on the
xsl:with-param element, and the resulting value will then be further
processed according to the rules of the as attribute on the xsl:param
element. 

For example, suppose the supplied value is a node with type annotation
xdt:untypedAtomic, and the xsl:with-param element specifies
as="xs:integer", while the xsl:param element specifies as="xs:double".
Then the node will first be atomized and the resulting untyped atomic
value will be cast to xs:integer. If this succeeds, the xs:integer will
then be promoted to an xs:double.

I would be grateful if you could confirm that this clarifies the
specification adequately.

Regards

Michael Kay
(as XSL WG editor)


> 
> [With apologies that these comments are coming in after the 
> end of the 
> Last Call comment period.]
> 
> Section 10.1.1
> 
> The first note in this section states, in part, "In this 
> situation, the 
> computed value of the parameter will be validated and/or 
> converted twice."
> 
> Was it really the intent that the consequence of using the as 
> attribute 
> would be anything other than to invoke the function 
> conversion rules? What 
> is implied by the terms "validated and/or converted", which 
> don't seem to 
> be well-defined?  Converted might refer to the function 
> conversion rules, 
> but what of validated?
> 
> Thanks,
> 
> Henry
> [Speaking on behalf of reviewers from IBM.]
> ------------------------------------------------------------------
> Henry Zongaro      Xalan development
> IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
> mailto:zongaro@ca.ibm.com
> 

Received on Friday, 20 February 2004 18:34:55 UTC