xsl-list
[Top] [All Lists]

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

2006-03-30 07:21:41
"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
http://www.saxonica.com/



--~------------------------------------------------------------------
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>