|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxxxx </mail>
<support> http://www.zvon.org </support>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








