This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XPath 2.0 Functions - numeric constructors




Hello,

I am getting a bit perplexed by numeric constructors in: 

http://www.w3.org/TR/xquery-operators/


1)

[Issue 149: Either the constructor functions should allow dynamic
   expressions or the syntax should be changed so that they do not appear 
to   be functions. ]

What is meant by dynamic expressions? Does it mean that the argument must 
be "12" but something like (xf:short(xf:concat("1","2")) will not be 
permitted ? 

2)

notation looks a bit perplexing:
xf:short(string $srcval) => integer
xf:byte(string $srcval) => integer
...
...

should not it be rather:
xf:short(string $srcval) => short
xf:byte(string $srcval) => byte
...
...
?

3)
Standard says:

If the argument string passed to a constructor results in an error
(for example, if it conatains a letter other than "E" or "e" or a string 
other than the special values named above), the constructor returns the 
error value as defined in [XQuery 1.0 and XPath 2.0 Data Model].


But 
http://www.w3.org/TR/query-datamodel/#error

is very vague. What will be the return value
or will it be a fatal error?



-- 
******************************************
<firstName> Miloslav </firstName>
<surname>   Nic      </surname>

<mail>    nicmila@systinet.com    </mail>
<support> http://www.zvon.org  </support>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]