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

Re: RE : Comparison of Xml documents


lexical order
Bob Wyman wrote:
 >[most of the useful and helpful info snipped]

Thanks. Very informative.

 > SET and SEQUENCE in ASN.1 are statements about the permited
 > lexical order of elements. In such cases that I've seen
 > significance given to order, it has been done in
 > specifications that accompany or incorporate the ASN.1
 > definitions. However, the rules for Canonical and
 > Distinguished encoding both require that the elements of SETs
 > are, in fact, ordered according to their tag numbers. Thus,
 > any semantic significance of order would be discarded if SETs
 > were encoded with CER or DER.

So SET can only be used with CER and DER when order is semantically 
insignificant. A case of performance trumping use cases, perhaps? (I'm 
thinking of John Cowan's astute observation that when lexical order is 
required order is usually not semantically significant, and when it is 
not required, order is usually significant.)

 >    I'm not aware of any schema languages that allow the
 > specification semantic signifance to order independent of
 > lexical significance. Can you provide an example of one that
 > does? I am curious to see how this concept is used and
 > expressed.

Right. Now we've come full circle. I began by saying that no schema 
language I'm aware of allows you to specify semantic significance 
(independent of lexical), even though it would be good documentation and 
useful for comparing XML documents.

Thanks again for taking the time to inform me and perhaps others on the 
ins and outs of ASN.1 SET and SEQUENCE.

Bob Foster


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.