W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2008

Re: Exclude prefixes on p:inline

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 24 Apr 2008 14:49:00 +0100
To: Norman Walsh <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org
Message-ID: <f5bmynjnz1v.fsf@hildegard.inf.ed.ac.uk>

Hash: SHA1

Norman Walsh writes:

> On 7 Feb, you took an action to propose something for excluding result
> prefixes from p:inline.
>   http://www.w3.org/XML/XProc/2008/02/07-minutes.html
> Did you ever make such a proposal?

Not yet, but here comes one:

  * Add a new optional attribute to p:inline, spelled

  * Replace the paragraph after the tableau and the Note in section
    5.12 [1] with prose along the following lines (borrowing heavily
    from XSLT2.0 [2])

    The content of the p:inline element is copied and wrapped in a
    document node to create the input.  The base URI of the created
    document is the base URI of the p:inline element.

    The in-scope namespaces of the copy differ from the in-scope
    namespace of the content of the p:inline element, in that bindings
    for all its *excluded namespaces*, as defined below, are removed:

    * the XProc namespace itself (http://www.w3.org/ns/xproc) is

    * any XProc step namespaces (http://www.w3.org/ns/xproc/1.0, etc.)
      are excluded

    * A namespace URI designated by using an exclude-result-prefixes
      attribute on the enclosing p:inline is excluded

      The value of the attribute is either #all, or a
      whitespace-separated list of tokens, each of which is either a
      namespace prefix or #default. The namespace bound to each of the
      prefixes is designated as an excluded namespace.

      [ERR ???] It is a static error if a namespace prefix is used
      within the exclude-result-prefixes attribute and there is no
      namespace binding in scope for that prefix.

      The default namespace of the p:inline may be designated as an
      excluded namespace by including #default in the list of
      namespace prefixes.

      [ERR ???] It is a static error if the value #default is used
      within the exclude-result-prefixes attribute and the p:inline
      has no default namespace.

      The value #all indicates that all namespaces that are in scope
      for the p:inline are designated as excluded namespaces.


[1] http://www.w3.org/XML/XProc/docs/langspec.html#p.inline
[2] http://www.w3.org/TR/xslt20/#lre-namespaces
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, 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]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Thursday, 24 April 2008 13:49:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:45 UTC