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

RE: What is the name of a document's "type"?

  • To: xml-dev@l...
  • Subject: RE: What is the name of a document's "type"?
  • From: "DuCharme, Bob (LNG)" <bob.ducharme@l...>
  • Date: Fri, 25 Jan 2002 21:04:45 -0500

what is xml document
Out of curiosity, I just searched the XML Recommendation for the term
"document type" and found that it's always followed by the words
"declaration" or "definition," so a simple answer to your question,
considering that a document type definition comes within a document type
declaration, would be that if a document type wasn't declared, then you
don't have a document type. Sort of like the way n has no value in a C
"hello world" program if no variable n was declared. 

But I understand if you want a more helpful answer than that, and what Tim
Bray said at http://lists.xml.org/archives/xml-dev/200201/msg01403.html will
take you far. If you know the name of the root element, and you know the
namespace that it's from, then you know a hell of a lot about the potential
processing that you can do with that document. As you pointed out, knowing
the name of the root element ("It's a chapter") doesn't always tell you all
you need to know and knowing the namespace alone ("list the docbook
documents") doesn't either, but the root element and its namespace together
(a chapter from the docbook DTD) tells you a great deal about what you can
do with it.

Bob DuCharme        www.snee.com/bob             <bob@
snee.com>  see http://www.snee.com/bob/xsltquickly for
info on book "XSLT Quickly" from Manning Publications.

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.