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

Re: SGML declaration for XML

  • From: "Rick Jelliffe" <ricko@a...>
  • To: <xml-dev@i...>
  • Date: Thu, 7 May 1998 00:07:07 +1000

sgml declaration for xml
From: Stefan Mintert <mintert@i...>


>What is the correct SGML declaration for XML?

The correct one is:

<!SGML -- SGML Declaration for XML --     "ISO 8879:1986 (WWW)"


    This is the 1997 extensions of SGML for the WWW: character ranges
    in names, hexadecimal character references, and white-space handling.
    (Parsers in) SGML systems before made before 1998 will not support
    these extensions.

<!SGML -- SGML Declaration for XML --    "ISO 8879:1986 (ENR)"

    This is the 1996 extension to SGML: it allows character ranges only.
    (Parsers in) SGML systems made before 1997 will not support this
extension.
    XML can still use this: but you will want to use decimal numeric
character
    references only. You must have a DOCTYPE declaration.  The parser
    must support NET-enabled tag minimization, to cope with <x/> tags,
    otherwise just use <x> for EMPTY element types.
    "ISO 8879:1986 (ENR)" is transitional only.


Finally <!SGML  "ISO 8879:1986"

    This is traditional SGML. XML can still use this: but you will want to
use
    decimal numeric character references only, and restrict yourself to
    less than 60 name characters more than ASCII. You must have a
    DOCTYPE declaration.  The parser must support NET-enabled
    tag minimization to cope with <x/> tags, otherwise just use <x> for
    EMPTY element types.

>(2):


>  a Name may start (NAMESTRT) with a ':'


All uses of ":" are still experimental.  Starting  a name with ":" would
presumably
be done to implement some scoping. In general, XML has avoided anything
which makes parsing or understanding a name depend on context--it has a
terrible complicating effect. (Note however, that attribute and data values
are full of context-dependent connotations.)

My understanding is that the namespace proposal is currently not
intending to allow ":" to prefix names, but you should ask the WG people
for some confirmation: (Tim?)

Rick Jelliffe


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.