Re: for-each XPath sequence item, new V2 requirement ?

Romain Deltour <rdeltour@gmail.com> writes:
> In other words, what I'm thinking is allowing any XDM sequence as
> the iteration source of p:for-each (assuming vNext targets XPath
> 2.0):
>  - if an item is a document node, pass it as-is to its sub pipeline
>  - if an item is an element, pass it wrapped in a document
>  - in any other cases, pass its string value as a `c:result` document
>
> Thoughts ?

I think we will be allowing any XDM value, we'll have work out what it
means in cases like this. Your proposal seems reasonable at first glance.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Monday, 26 August 2013 16:20:56 UTC