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

XML Schema Part 2 should provide BNF for all primitive types.

  • From: Kohsuke KAWAGUCHI <k-kawa@b...>
  • To: Steve.Rosenberry@E...
  • Date: Mon, 26 Mar 2001 12:18:30 -0800

bnf xml schema

> but none of these documents actually has the RE that defines a string as
> a valid float value that I was hoping to copy (at least not that I could
> find).

You couldn't find them because there is none. And I think the spec
should provide more precise definition of what are valid lexical
representation of primitive types. BNF is certainly a good way to do
this.

Good news is, XML Schema is still a PR. That means there is still a
chance to have them add BNF. So please post your comment to
www-xml-schema-comments@w... about adding
BNF to the spec. I've already posted one, but the same comment from a
different person should counts.


Currently, the spec describes lexical representation without using any
formal language. For example, you can find the following statement in
the description of "number" type.

> An optional leading sign is allowed. If the sign is omitted, "+" is
> assumed. Leading and trailing zeroes are optional. 

OK. I think "0.0" is a valid "number". Since leading zeroes are optional,
it seems to me that the current spec allows ".0" as a valid "number".

There is more, by removing optional trailing zeroes, "." becomes a valid
"number". Really?  But why not?

These are happening everywhere in the spec, and much worse in date/time
related types.


So please let WG knows your thought.

regards,
----------------------
K.Kawaguchi
E-Mail: k-kawa@b...


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.