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

Re: Increasing sequence ?

Subject: Re: Increasing sequence ?
From: "Leo Studer leo.studer@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Mar 2015 19:01:33 -0000
Re:  Increasing sequence ?
Thank you Michael

it came up in an xs:assertion and worked well with 10000 elements.

Leo

> On 25.03.2015, at 20:10, Michael Kay mike@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> That's what I use. It should be O(n).
>
> These sort of expressions come up quite often when writing XSD 1.1
assertions.
>
> Something to bear in mind is that Saxon gives special treatment to
assertions that use the "every ... satisfies..." format - the diagnostics will
tell you not only that the assertion failed, but which item in the sequence
caused it to fail.
>
> Michael Kay
> Saxonica
> mike@xxxxxxxxxxxx
> +44 (0) 118 946 5893
>
>
>
>
> On 25 Mar 2015, at 17:20, Leo Studer leo.studer@xxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>> A similar problem as before, is the integer sequence increasing?
>>
>> this is my solution:
>>
>> every $v in 1 to (count($sequence)-1) satisfies ($sequence[$v] lt
$sequence[$v+1])
>>
>> Do you have a better one?
>>
>> Cheers
>> Leo

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.