[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: Olivier Rossel <olivier.rossel@gmail.com>
  • Date: Fri, 17 Dec 2010 15:17:43 +0000

Re:  Micro XSD for Micro XML?
> Element referencing is not in this example.
> In my opinion, this is a CRUCIAL feature.
>

I left out element/@ref because I've heard so many complaints that it makes
a schema harder to read. You have to use a graphical editor which can
resolve the
references and check for any broken ones, etc. Reading a larger schema with
references means switching back and forth between definitions such that you fail
to get a picture of the overall structure. Without the refs it is easy
to picture the
XML itself. (see examplotron and CAM, for example where the structure can be
'seen' from the schema). Plus, if it is hard for a human to read it
might also be
logically harder to write a parser and / or GUI editor.

----
Stephen D Green



On 17 December 2010 14:59, Olivier Rossel <olivier.rossel@gmail.com> wrote:
> On Fri, Dec 17, 2010 at 3:21 PM, John Madden <john.madden@duke.edu> wrote:
>>
>> On Dec 17, 2010, at 9:13 AM, Stephen Green wrote:
>>
>>> Ignoring complexTypes and not attempting to be valid XSD, how about
>>> just the following?
>>>
>>> <element name="schema">
>>> <element name="element">
>>> <attribute name="name" type="string"/>
>>> <attribute name="type" type="string">
>>> <!-- enumerations = string integer decimal date -->
>>> </attribute>
>>> </element>
>>> <element name="attribute">
>>> <attribute name="name" type="string"/>
>>> <attribute name="type" type="string">
>>> <!-- enumerations = string integer decimal date -->
>>> </attribute>
>>> </element>
>>> </element>
>>>
>>> I think it is valid MicoXML, isn't it, and in the spirit of MicroXML
>>> - easy to parse
>>> - easy even to execute in MicroXML parsers if need be
>>>
>>> Or adding a little more and it could be valid XSD too (but that
>>> might be going too far in the direction of XSD).
>>>
>>
>> Looks a lot like Relax NG without namespaces.
>
> Element referencing is not in this example.
> In my opinion, this is a CRUCIAL feature.
>


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