[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] exclude-result-prefixes issue

Subject: Re: [xsl] exclude-result-prefixes issue
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Wed, 6 Nov 2013 16:47:46 -0000 (GMT)

On Wed, November 6, 2013 4:32 pm, Andrew Welch wrote:
> <root>
>    <bbb:foo xmlns:bbb="ns"/>
> </root>
> Note that bbb namespace has moved from the root element to where it's
> used, rather than staying on the root element - it suggests that
> exclude-result-prefixes works at the namespace uri level, rather than
> the prefix, is that right?

>From http://www.w3.org/TR/xslt20/#lre-namespaces:

   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.

so, yes.


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming
       Chair, Print and Page Layout Community Group @ W3C

Current Thread