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

Re: XML spec and XSD

  • From: Mukul Gandhi <gandhi.mukul@gmail.com>
  • To: David Carlisle <davidc@nag.co.uk>
  • Date: Mon, 9 Nov 2009 09:03:59 +0530

Re:  XML spec and XSD
Thanks, David for the insights.

looking at the following section of XML 1.0 fifth edition
specification, http://www.w3.org/TR/2008/REC-xml-20081126/#proc-types

"Validating and Non-Validating Processors"
The spec seems to suggest that XML documents are valid only if a DTD
is associated with the XML document.
But I think, that's not entirely true given that XSD is also another
XML validation language from W3C XML activity.

I don't mind validating XML documents with other technologies like
RelaxNG or Schematron, if there is a need for me to do so. But I
think, existence of technologies like RelaxNG or Schematron cannot be
an excuse for XML spec, not to mention XSD within it as a validating
technology.

On Sun, Nov 8, 2009 at 9:01 PM, David Carlisle <davidc@nag.co.uk> wrote:
> essentially for the same reason that XSD should not be referenced from
> the xml spec. XSD (like Relax NG, XSLT etc) all work on the infoset
> produced by parsing an XML document, thus they require an XML parser to
> provide them input, to expand entities etc.
>
> DTD processing on the other hand does not work by taking an infoset as
> input but is instead a modified parser that reports validation outcomes.
>
> XSD can not define entities as it is too late in the chain. If the
> document uses entity references that are not defined to the parser then
> the document is in error (or not well formed if there is no external DTD
> reference at all).



-- 
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-2011 All Rights Reserved.