Whitespace rules (v2)
Paul Grosso
paul at arbortext.com
Mon Aug 11 16:54:14 BST 1997
At 22:48 1997 08 10 +0000, Neil Bradley wrote:
>----------
>RULE 2. All whitespace preceding the start-tag and following the end-tag
>of a 'block enclosing' element is discarded.
>---
>Note: a non-validating applications must refer to a style sheet or
>configuration file to identify 'block enclosing' elements (perhaps by
>applying this rule to elements not specified as in-line elements).
>As a validating application cannot easily determine this rule from the
>content model (the first mixed content element in the hierarchy is
>block enclosing, as well as all outer layers), it may choose the same approach.
>
>Note:
>
> <chapter>[SP]<note>[SP][TAB]<p>This is a[SP]<em>para</em>...
>
>becomes:
>
> <chapter><note><p>This is a[SP]<em>para</em>
>
>and:
>
> <p>Para 1.</p>[CR]
> <p>Para 2.</p>
>
>becomes:
>
> <p>Para 1.</p><p>Para 2.</p>
What if a block enclosing element is contained within a block enclosing
element? You appear to be trying to use different terms to describe
what is effectively the issue of element content versus mixed content.
How is requiring a style sheet or configuration file to indicate which
elements are "block enclosing" different from having a DTD or partial
set of declarations to indicate which elements have element content?
paul
xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list