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

Re: Looking for a shorter mapping expression

Subject: Re: Looking for a shorter mapping expression
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 05 Dec 2004 10:46:40 +0000
Re:  Looking for a shorter mapping expression
>>>>> "Dimtre" == Dimtre Novatchev <dnovatchev@xxxxxxxxx> writes:

    Dimtre> Because, according to the XPath 2.0 spec: "only the last
    Dimtre> step in a path is allowed to return a sequence of atomic
    Dimtre> values."

    Dimtre> http://www.w3.org/TR/xpath20/#id-path-expressions

    Dimtre> Even the last E2 in a path expression should evaluate
    Dimtre> either to a sequence of nodes or a sequence of atomic
    Dimtre> values, but not a mixture of the two... I find this
    Dimtre> unreasonably restrictive and wonder why it was decided so.

Checking the archives, this was introduced in the most recent XPath
draft. previously only nodes were permitted.

The extension to atomic values was made at the request of the XQuery
people, but I can't find in the subsequent discussion why heterogeneous
sequences were ruled out.

It's a pain for static type checking, as it doesn't fit neatly into
the type hierarchy.
-- 
Colin Paul Adams
Preston Lancashire

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.