xsl-list
[Top] [All Lists]

Re: [xsl] exclude-result-prefixes issue

2013-11-06 10:48:14
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.

Regards,


Tony Graham                                   tgraham(_at_)mentea(_dot_)net
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>