This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Empty elements
My concern was caused by the differences in the results between two
processors. My initial reaction was that Saxon was right. Looking more
closely at the result there were differences between Oracle and Saxon for
nodes with id1, id02 and id04. ie.
Node Saxon Oracle
id0 empty empty
id1 not empty empty
id2 empty not empty
id3 empty empty
id4 not empty empty
The question is : which is right ? I still go with Saxon.
Regards
Nick Browne
David Carlisle wrote:
> > <node id="id05"> <x> </x></node>
> > <node id="id06"> <x></x></node>
>
> > Both of these show up as not empty using string().
> > Again this feels about right.
>
> If you consider that they should be empty using string() then probably
> it means that you should have declared
> <xsl:strip-space elements="node x"/>
>
> David
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list