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

Conditional marked sections

  • From: agreene@b... (Andrew Greene)
  • To: xml-dev@i...
  • Date: Mon, 18 Aug 1997 09:48:45 -0400

marked sections
Please forgive what I hope will turn out to be a foolish question, but
upon rereading the XML spec, I was left unclear on the question of
whether marked sections could be used in the document instance for
anything except CDATA.

That is, in full SGML, you can say:

    <!DOCTYPE example [
      <!Element example - - ANY>
    ]>
    <example>
    This is a <![include[marked]]> section.
    </example>

and when you run it through nsgmls, you get:

    (EXAMPLE
    -This is a marked section.
    )EXAMPLE
    C

But the XML spec implies that conditional inclusion of marked sections
is only approved for the DTD, and not for the document instance itself;
and that the only legal use of marked sections in the document instance
is for CDATA. It is also implied that parameter entities are also only
valid within the DTD itself.

So, which is it? I'll admit that I'll be disappointed if conditional
marked sections are restricted to the DTD.

Thanks,
  Andrew Greene


xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (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.