On 7 December 2012 14:59, Andrew Welch
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
On 7 December 2012 12:50, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
You output xmlns="" if the following condition is true:
$this/../namespace::*[name()=''] and not($this/namespace::*[name()=''])
That works for Saxon, but not for Xalan... I will post back when I
find out why, but in the mean time if anyone knows...
<foo>
<bar/>
<bar xmlns=''/>
</foo>
with
<xsl:template match="bar">
<xsl:value-of select="boolean(namespace::*[name() = '']"/>
Saxon 6.5.5 returns true true
Xalan returns true false
--
Andrew Welch
http://andrewjwelch.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>
--~--