[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Question About Translate Function


Subject: Re: [xsl] Question About Translate Function
From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx>
Date: Sun, 27 Nov 2005 15:47:46 -0800

Ops, thanks for the correction. The
&lt;myXmlElementName&gt;myXmlElementText&lt;/myXmlElementName&gt;
is a text-node ...
Manfred

On 27/11/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > If I put your example into a xml document, say
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <doc>
> > &lt;myXmlElementName&gt;myXmlElementText&lt;/myXmlElementName&gt;
> > </doc>
> >
> > then its perfectly valid and the  &lt and &gt get
> > resolved by the parser. For the xls stylesheet its
> > identical to:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <doc>
> > <myXmlElementName>myXmlElementText</myXmlElementName>
> > </doc>
>
> No, it's not identical. The first document contains one element node, the
> second contains two.
>
> Michael Kay
> http://www.saxonica.com/


Current Thread
Keywords
xml