W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > July 2009

Re: AssocSS issue 15

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Wed, 29 Jul 2009 14:13:12 +0100
To: "Grosso, Paul" <pgrosso@ptc.com>
Cc: <public-xml-core-wg@w3.org>
Message-ID: <f5bzlany6mv.fsf@hildegard.inf.ed.ac.uk>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Grosso, Paul writes:

> Henry, what are your latest thoughts on this given the exchange below?

I think we can simplify this assuming we're taking my earlier
suggestion [1] about how we position the spec. wrt the XML processor as
defined by the XML spec.

What I had in mind (but failed to write in [1], sorry) was that we
use the conformance prose I suggested, and then replace the existing
paragraphs

  The xml-stylesheet processing instruction is parsed in the same way
  as a start-tag, with the exception that entities other than
  predefined entities must not be referenced.

  The following grammar is given using the same notation as the
  grammar in the XML Recommendation[XML10]. Symbols in the grammar
  that are not defined here are defined in the XML Recommendation.


with the following:

  [XML] does not specify the form in which the PIs are "passed through
  to the application" by the XML processor.  The grammar given below
  assumes that the entire string delimited by '<?' and '?>' is "passed
  through": implementations are free to adapt it as necessary given
  the form in which their XML processor does this.

  It is an *error* if a processing instruction with target
  'xml-stylesheet' fails to satisfy an appropriately adapted version
  of the following grammar (which is intended to reconstruct the
  parsing of attributes in a start tag, except that entities other
  than predefined entities must not be referenced).

  The following grammar is given using the same notation as the
  grammar in [XML]. Symbols in the grammar that are not defined here
  are defined in [XML].

and then we have the following two productions

  [1] StyleSheetPI ::= '<?xml-stylesheet' S PIBody '?>'

  [1a] PIBody      ::= PseudoAtt (S PseudoAtt)* S?

  plus productions [2] -- [4] unchanged.

That fact that this doesn't accept an empty PI, or one with only
whitespace, doesn't bother me -- such PIs are indeed _not_ Stylesheet
PIs.  The weasel words in my first paragraph above should provide
implementors with the flexibility they need.

ht

[1] http://lists.w3.org/Archives/Public/public-xml-core-wg/2009Jul/0017.html
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFKcErpkjnJixAXWBoRAjh1AJ4pZFTFKysNUdpezIuQOyWVmXZUAgCeNiTV
szYniQ+UsfkiDjuhCIPjPu8=
=ieqj
-----END PGP SIGNATURE-----
Received on Wednesday, 29 July 2009 13:13:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:40 UTC