[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] 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
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]