|
Subject: Re: [xsl] pre-processing of child elements From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 7 Jul 2005 15:45:37 +0100 |
<xsl:template match="child-element">
<xsl:if test="parent::element">
<xsl:text></i></xsl:text>
</xsl:if>
That just writes some character in to the current element content it
does not do anything with an i element node.
If I understand you couurect;y you want to wrap all text node children
of element with i and not wrap eleemnt children so:
<xsl:template match="element">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="element/text()">
<i><xsl:apply-templates/></i>
</xsl:template>
is probably all you need.
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 -> |
|---|---|---|
| [xsl] pre-processing of child eleme, Torsten Schassan | Thread | Re: [xsl] pre-processing of child e, Torsten Schassan |
| [xsl] pre-processing of child eleme, Torsten Schassan | Date | [xsl] Re: Saxon versus Xalan implem, Andrzej Taramina |
| Month |