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 single <xsl:apply-templates /> David ________________________________________________________________________ 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: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] arbitrary depth element t, Sebastian Tennant | Thread | Re: [xsl] arbitrary depth element t, Wendell Piez |
Re: [xsl] arbitrary depth element t, Sebastian Tennant | Date | Re: [xsl] Re: Language-specific out, George Cristian Bina |
Month |