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

[xsl] Re : [xsl] xsl:namespace


Subject: [xsl] Re : [xsl] xsl:namespace
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Fri, 20 Feb 2009 15:04:37 +0000 (GMT)

Jesper Tverskov wrote:

> 2) When we create the price element the literal way we don't
> need xsl:namespace. We can put the needed namespace
> declarations into the literal element directly. We can even
> put them in the xsl:stylesheet element and they will end up in
> output as we want it.

  They won't if there is a matching @exclude-result-prefixes or
@xsl:exclude-result-prefixes in scope.

  Besides, i don't really see the point to use @xsi:type as an
example.  It just add an additional namespace to the example,
and I think it disturbs focusing on the point.  I would rather
use something like:

    <elem>
       <xsl:namespace name="ns" select="'http://...'"/>
       <xsl:text>ns:ncname</xsl:text>
    </elem>

  Regards,

--
Florent Georges
http://www.fgeorges.org/


Current Thread