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

Re: Micro XSD for Micro XML?

  • From: Stephen Green <stephengreenubl@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Fri, 17 Dec 2010 20:39:39 +0000

Re:  Micro XSD for Micro XML?
I agree that people might want a non-XML syntax for
merely defining their Micro-markup but if there is going
to be any validation in the Micro-parser I'd reckon they
wouldn't want to go to the trouble of implementing two
syntaxes (they will just have implemented MicroXML)
- unless the schema syntax is incredibly simple or
exists already (like JSON perhaps :-)

I did some more rough work on a reduced 'XSD-like'
language (defined using its own schema language)
which could probably be mapped to XSD, to compact
relaxN, etc

<schema name="MicroSchema-draft" version="draft2">
	<element name="schema">
		<group>
			<element ref="element" maxOccurs="unbounded" />
			<element ref="group" maxOccurs="unbounded" >
		</group>
		<attribute name="name" type="string" />
		<attribute name="version" type="string" />
	</element>
	<element name="element">
		<group maxOccurs="unbounded">
			<element ref="element" />
			<element ref="group" />
		</group>
		<attribute name="ref" type="string" />
		<attribute name="name" type="string" />
		<attribute name="type" type="string">
			<!-- enumeration = string | integer | decimal | date | sequence -->
		</attribute>
	</element>
	<element name="attribute">
		<attribute name="ref" type="string" />
		<attribute name="name" type="string" />
		<attribute name="type" type="string">
			<!-- enumeration = string | integer | decimal | date | sequence -->
		</attribute>
	</element>
</schema>




----
Stephen D Green



On 17 December 2010 18:42, Costello, Roger L. <costello@mitre.org> wrote:
> Hi Folks,
>
> A validation language for Micro XML ... is XML syntax necessary for the validation language?
>
> To avoid bias, perhaps rather than "Micro XSD" the language should be referred to simply as a validation language for Micro XML, e.g., Micro VL.
>
> When is XML syntax needed and useful? When is a more compact syntax better?
>
> Presumably everyone on this list agrees that it is good to format data as XML when the data is to be queried and transformed.
>
> How often are validation documents (such as XML Schema documents) queried and transformed? No doubt it is done, but is that the 80% case or is it the exception to the rule?
>
> If it is the exception to the rule then that calls to question the need for an XML syntax for Micro VL.
>
> Many people enjoy Relax NG Compact. It has a non-XML syntax. Its history shows that it works fine as a validation language.
>
> Consideration of a compact, non-XML syntax for a Micro XML validation language seems prudent.
>
> /Roger
>
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>


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