Re: [xsl] arbitrary depth element type conversion

Subject: Re: [xsl] arbitrary depth element type conversion
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 3 Feb 2006 12:20:40 GMT
> How can I avoid this?

by not asking for it explictly:-)

      <xsl:value-of select="." />

gives the string value of the current node which is all text of this
element and all it's descendents (which isn't what you want)
then this
      <xsl:apply-templates select="child::*" />
applies templates to elements (only) skipping over all text.

You want text and elements to be processed in their natural sequence,
which is the default behaviour, so just replace both those lines by the
      <xsl:apply-templates />


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread