RE: [xsl] Re: xsl:namespace

Subject: RE: [xsl] Re: xsl:namespace
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 22 Feb 2009 09:19:54 -0000
> Am I right in saying that when URI or prefix are not 
> computed, xsl:namespace is never necessary for creating 
> namespaces for element or attribute names? 

No. You need xsl:namespace if either of the following is true:

(a) the URI or prefix of the namespace to be generated is computed
dynamically

(b) the name of the containing element is computed dynamically

(Except that you don't strictly need it, there are workarounds available;
but they aren't nice.)

Michael Kay
http://www.saxonica.com/

Current Thread