RE: XT value-of variables

Subject: RE: XT value-of variables
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 23 Jul 1999 11:07:17 +0100
> > XT produces the following output:
> > 
> >   contents
> > 
> > where I expect to see:
> > 
> >   <tag>contents</tag>
> > 
> > Is this a bug?  
> MK: SAXON produces <tag>contents</tag>, which in my view is the correct
> behaviour. (But James wrote the spec!).

I've re-read the spec. xt is right, of course. xsl:value-of should convert
the result tree fragment to a string, and this conversion should be done in
the same way as converting a node-set containing a single node, ie. it
produces the concatenation of the text nodes within the result fragment and
discards the markup.

Mike Kay

 XSL-List info and archive:

Current Thread