RE: [xsl] XSL 1.1 -> Asking for an attribut namespace

Subject: RE: [xsl] XSL 1.1 -> Asking for an attribut namespace
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 30 Mar 2006 14:53:59 +0100
> "name() should return the lexical QName of the attribute, that is
> 'fo:text-align'"
> I checked this with the Oxygen Debugger. The returned string ist just
> "text-align" 

You shouldn't be relying on the namespace prefix returned by name(), because
users can choose any prefix that they like. However, the XSLT processor is
not allowed simply to drop the prefix. XPath 2.0 says that the original
prefix is maintained; XPath 1.0 gives you a weaker guarantee that you will
get, if not the original prefix, then some other prefix that is bound to the
same URI in your source document.

If you want to pursue this further you need to supply a small source
document and stylesheet that demonstrate the problem, and indicate which
XSLT processor/version you are using.

Michael Kay

Current Thread