Re: [xsl] serialized form of XML using xslt 1.0

Subject: Re: [xsl] serialized form of XML using xslt 1.0
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 7 Dec 2012 15:20:27 +0000
On 7 December 2012 14:59, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> On 7 December 2012 12:50, Michael Kay <mike@xxxxxxxxxxxx> 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

Current Thread