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

Re: xml prolog - what am I missing?


xml prolog
Chris Bentley wrote:
> Hi, I'm  confused can some put me right;
> 
> I keep seeing references alluding to the fact that a document type 
> declaration IS NOT part of an XML prolog.
> e.g., http://tantek.com/XHTML/Test/minimal.html amongst others.

This document is calling the XML declaration the XML prolog. This is
misleading. An XML declaration is an optional part of the prolog. A
prolog may contain an XML declaration (must be first line), plus
an optional document type declaration, optional comments, optional
space, and an optional PIs, according to the prolog production
(http://www.w3.org/TR/REC-xml/#NT-prolog).
 
> My confusion comes from my reading of the XML 1.0 spec
> "prolog  ::=   XMLDecl? Misc* (doctypedecl Misc*)?"
> http://www.w3.org/TR/2004/REC-xml-20040204/#sec-prolog-dtd
> 
> ..doesn't this mean that a document type declaration IS part of an XML 
> prolog?

Your interpretation is correct.

Mike

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.