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

XPath 2.0 Functions - numeric constructors

Subject: XPath 2.0 Functions - numeric constructors
From: Miloslav Nic <nicmila@xxxxxxxxxxxx>
Date: Tue, 8 Jan 2002 13:47:08 +0100 (CET)
constructor de nic

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


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.