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

Re: Question on XML Schema 1.1 [vc:maxVersion]

  • From: Mukul Gandhi <gandhi.mukul@gmail.com>
  • To: Ramkumar Menon <ramkumar.menon@gmail.com>
  • Date: Tue, 11 Jan 2011 10:25:32 +0530

Re:  Question on XML Schema 1.1 [vc:maxVersion]
On Tue, Jan 11, 2011 at 3:59 AM, Ramkumar Menon
<ramkumar.menon@gmail.com> wrote:
>  a) Why did we chose to have maxVersion be exclusive of the value?
>      i.e.
>    <element name="Price" vc:minVersion="1.1" vc:maxVersion="2.4"/>
>    Its tricky for a person to read this as
>    "Price" element will be removed on pre-processing if we are using XSD
> version 2.4.

I agree with you that this could be confusing.

But here are few points I can think of why this could be so:

1) I find having vc:maxVersion to be exclusive of value to have more
semantic correctness, than allowing vc:maxVersion to be equal to the
value.
2) I believe making vc:maxVersion exclusive of the value would cause
the schema in question less likely to break in future.

> b) Are we assuming that version numbers for XML Schema MUST be decimals, now
> and later? Exposing terms such as minVersion and maxVersion indicate so.

The vc:maxVersion and vc:minVersion numbers are xs:decimal as
specified in the spec [1]. Although I feel, the value space of
xs:decimal is probably too large for a concept like vc:maxVersion and
vc:minVersion, but xs:decimal seems to be the most appropriate
built-in type for these attributes.

[1] http://www.w3.org/TR/xmlschema11-1/#cip
<quote>
    Where they appear, the attributes vc:minVersion and vc:maxVersion
are treated as if declared with type xs:decimal.
</quote>




-- 
Regards,
Mukul Gandhi


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