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

Re: XML spec and XSD

  • From: Jirka Kosek <jirka@kosek.cz>
  • To: Mukul Gandhi <gandhi.mukul@gmail.com>
  • Date: Sun, 08 Nov 2009 23:09:18 +0100

Re:  XML spec and XSD
Mukul Gandhi wrote:

> My point was, that XSD and DTD (and also XML) are "W3C" specs. RelaxNG
> is an OASIS specification. I haven't seen W3C specs, recommendating
> users to use OASIS specs, *and* mentioning these statements in W3C
> specs themselves. Or do we have any instances of W3C specs, where W3C
> recommends users to use certain OASIS specs. This more so doesn't
> happen if W3C and OASIS develop competing languages. But I don't see
> XSD and RelaxNG as competing to each other.

If you will look at newer document formats specified by W3C they use
RELAX NG as a primaty schema language -- simply because in RELAX NG it
is easier to express necessary constraints then in W3C XML Schema (and
sometimes RELAX NG is the only grammar based schema language in which
constraints can be specied). Examples are MathML 3, SVG 1.2, XHTML 2.0
was also using RELAX NG.

If you look at validator.nu and Relaxed -- the two validators who have
much better error coverage then validator.w3.org for web pages, you will
find that they are based on RELAX NG schemas + (Schematron or special
check written in procedural code).

> Looking at the XML spec, the XML spec seems to convey that DTD is an
> inseparable part of XML definition. But if DTD is inseparable from
> XML, why cannot XML spec say that XSD can be used for validation as
> well (since XSD is a better XML validation technology, and is also
> developed by W3C)?

Standard are books of code not textbooks.

> I even think, that a future XML spec other than referring to XSD as an
> alternative XML validation technology with DTDs, should also provide
> means to embed XML Schema's inline the XML documents, as we do with
> DTDs.

There is already spec which provides this capability -- XML Namespaces.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

OpenPGP digital signature



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