[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: serialized form of XML using xslt 1.0
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|