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

Schemas: Different Strokes From Different Folks

  • From: Patrick Durusau <patrick@durusau.net>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 18 Jan 2017 10:09:08 -0500

Schemas: Different Strokes From Different Folks
Greetings!

Rick Jelliffe's recent article on xml.com,
https://www.xml.com/articles/2017/01/15/schemas-different-strokes-different-folks/
sets the background for my question:

Rick raises the issue of "closed under union" and says:

*****

According to James Clark "for any two RELAX NG schemas, there is a RELAX
NG schema for its union". Dr Murata's early research concerned set
operations on grammars, in fact. RELAX NG allows ambiguity during the
course of validation really well, until finally deciding whether the
document is valid, and so can support dialects well. Elegant and powerful.

...

But in Schematron, there is partial support for being closed under
union: if you use the phase mechanism you can certainly combine two
different schemas, but the language does not take care of the
disambiguation: you have to tell Schematron which phase should be
active: which patterns are in common whatever dialect is in and which
patterns only belong to a single dialect. In Schematron, the important
thing is to explicitly represent that you have these different variants,
not ignore them or necessarily handle them automatically.

*****

There isn't a comment facility at so I'm posting here.

Perhaps my problem is with the use of "closed under union."

As I understand "closed under union," the result of an operation on a
set member must remain a member of the set."

I don't think it has anything to do with "...the language does not take
care of disambiguation: you have to tell Schematron..." Yes?

Hmmm, rather than saying two "different schemas," what if we said "two
different Schematron specified schemas?" Is a combination of those two
Schematron specified schemas a schema defined by Schematron?

If so, then are Schematron schemas "closed under union?"

Or was Rick's question about encountering two arbitrary XML schemas,
specified by some unknown means and then to be merged using Schematron?

The "partial support for being closed under union" was what originally
attracted by attention.

Glad to see XML.com is back up!

Hope everyone is having a great week!

Patrick



-- 
Patrick Durusau
patrick@durusau.net
Technical Advisory Board, OASIS (TAB)
Editor, OpenDocument Format TC (OASIS), Project Editor ISO/IEC 26300
Co-Editor, ISO/IEC 13250-1, 13250-5 (Topic Maps)

Another Word For It (blog): http://tm.durusau.net
Homepage: http://www.durusau.net
Twitter: patrickDurusau 


Attachment: signature.asc
Description: OpenPGP digital signature



[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.