Boost logo

Boost :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2007-07-13 11:09:39


Jake Voytko wrote:
> http://www.w3.org/TR/REC-xml/#sec-prolog-dtd
> Am I misinterpreting this section? It looks like it allows comments in the
> header
>
You must be misinterpreting it. There is no such thing as a header.

The prolog consists of the xml declaration and the document type
declaration, both optional.
<?xml ... ?>
<!DOCTYPE ...>

After the xml decl and after the dtdecl, the grammar allows misc, which
can include comments. But it doesn't allow comments inside the xml decl,
nor in the dtdecl, except in the internal subset.

Sebastian Redl


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk