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

Re: XML design of ((a and b) or c)

  • From: Rick Marshall <rjm@z...>
  • To: Alexander Johannesen <alexander.johannesen@g...>
  • Date: Wed, 13 Dec 2006 14:40:16 +1100

Re:  XML design of ((a and b) or c)
Technically "and" and "or" are commutative so it doesn't matter in a 
maths sense either.

However compiler and script optimisation means that order of evaluation 
does matter. So in computing circles the these operators are no longer 
commutative.

blame stephen bourne (i think he started this).

The famous sh script: programA && programB etc where programB is only 
run if programA returns true.

;)

Rick

Alexander Johannesen wrote:
> Hi,
>
> On 12/13/06, David Carlisle <davidc@n...> wrote:
>> > But I guest is a doomed approach because I dont think XML is
>> > order-stable, so will make horrible things with a operation where
>> > order matter :(
>>
>> If XML didn't preserve order by default you wouldn't want to use it for
>> marking up documents, books, ... they don't usually react too well to
>> having paragraphs reshuffled.
>
> Yup. You've got your elements in order in XML; it's the attributes
> that have no order guarantee, although I haven't stumbled across any
> XML parser that don't do LtoR parsing of them.
>
>
> Alex


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.