Re: [xslt] Potentially avoidable call of xsltParseStylesheetExcludePrefix()



On Fri, Mar 24, 2006 at 01:27:20PM +0100, Kasimier Buchcik wrote:
> Hi,
> 
> In xslt.c, xsltPrecomputeStylesheet(), a call to
> xsltParseStylesheetExcludePrefix() is performed for every
> element-node of the stylesheet-doc. Since the attribute
> "exclude-result-prefixes" is only allowed on xsl:stylesheet and
> xsl:transform, I wonder if the call is necessary.

  Yes, see section 7.1.1:

"A namespace URI is designated as an excluded namespace by using an
 exclude-result-prefixes attribute on an xsl:stylesheet element or an
 xsl:exclude-result-prefixes attribute on a literal result element."

 all literal result element on a a stylesheet may also host this attribute...

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]