- From: Norman Walsh <ndw@nwalsh.com>
- Date: Thu, 07 Aug 2008 09:53:49 -0400
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <m2iqudexsi.fsf@nwalsh.com>
/ "Innovimax SARL" <innovimax@gmail.com> was heard to say:
|> <p:pipeline exclude-inline-prefixes="#all">
|> ....
|> <p:group xmlns:d="my-new-namespace">
|> ....
|> <p:inline>
|> <root name="d:foo"/>
|> </p:inline>
|> ....
|> </p:group>
|> ....
|> </p:pipeline>
|>
|> Namespace fixup won't "see" the use of d:foo in an attribute *value*
|> as significant. So you'll get
|>
|> <root name="d:foo"/>
|>
|> and if you needed the binding for d:, you're hosed.
|
| Correct me if I'm wrong, but the way you write it just now
|
| [[
| The value #all indicates that all namespaces that are in scope for the
| element on which exclude-inline-prefixes occurs are designated as
| excluded namespaces.
| ]]
|
| means that d: **is** in scope of p:inline since "#all" applied to p:pipeline
|
| Is my interpretation correct ?
Yes, I botched it.
<p:pipeline exclude-inline-prefixes="#all">
....
<p:group xmlns:d="my-new-namespace">
....
<p:inline>
<root name="d:foo"/>
</p:inline>
....
</p:group>
....
</p:pipeline>
Would produce:
<root xmlns:d="my-new-namespace" name="d:foo"/>
because the only excluded namespaces are "all" of them that are in
scope on p:pipeline, in other words only "p:".
This example (which could be written in a dozen different ways by
moving namespace declarations and exclude-inline-prefix values around)
<p:pipeline exclude-inline-prefixes="#all">
....
<p:group xmlns:d="my-new-namespace">
....
<p:inline exclude-inline-prefixes="d">
<root name="d:foo"/>
</p:inline>
....
</p:group>
....
</p:pipeline>
would produce <root name="d:foo"/>.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | If all mankind were to disappear, the
http://nwalsh.com/ | world would regenerate back to the rich
| state of equilibrium that existed ten
| thousand years ago. If insects were to
| vanish, the environment would collapse
| into chaos.--Edward O. Wilson
Received on Thursday, 7 August 2008 13:54:32 UTC