W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > February 1997

XML FAQ: some questions

From: Peter Flynn <pflynn@curia.ucc.ie>
Date: 18 Feb 1997 15:04:09 +0000 (GMT)
To: w3c-sgml-wg@w3.org
Cc: pflynn@curia.ucc.ie
Message-id: <199702181504.PAA02236@curia.ucc.ie>
A couple of unanswered questions that I'd like to pre-empt:

BTW is there a more recent spec that 961114? I trawled the logs
but I couldn't see a reference.

1. What *may*, and what *must* precede the root element in a 
   well-formed XML document? The spec isn't very clear
   on which PIs are compulsory and which are optional.

2. How may entities be used in XML? ie whether general 
   entities can be included and to what depth.

3. The restriction in WF documents on what elements may occur
   within what others is not clear (3.2): 

      As a consequence of this, for each non-root element C, 
      there is one other element P such that C is in the content of P, 
      but is not in the content of any other element 
      that is in the content of P. 
      Then P is referred to as the parent of C, and C as the child of P. 

   Here's a non-root element C which we call PARA in some DTD or other.
   There is _an_other element (not _one_ other) P which we call SECT.
   PARA is in the content of SECT. So far so good.
   But SECT has in its content also an element called NOTE.
   NOTE has PARA in its content model.
   In other words:

             +----- stuff   +--- HEAD
             |              |
             +----- stuff   +--- PARA 
    docroot -|              |            +--- HEAD
             +----- SECT ---+--- NOTE ---+
             |              |            +--- PARA
             |              +--- stuff

    Is this permitted? 3.2 seems to say not: C can only be in the content
    of P and may not reoccur anywhere on the same branch of the tree. This
    is going to be an impossible restriction. Or have I misread it?

Received on Tuesday, 18 February 1997 10:08:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:25:07 UTC