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

Re: [xsl] Picking up the 2nd part text after child element


Subject: Re: [xsl] Picking up the 2nd part text after child element
From: Carles Canellas <ccanellasc@xxxxxxxx>
Date: Thu, 27 Mar 2003 11:21:33 +0100 (CET)

Why don't try a template aproach like this, that works
not only for the second part, works for all the
possible multiple parts, and it's most adaptable to
new needs (a posible <b> tag, for example)?

<xsl:template match="p">
One para --
<xsl:apply-templates/>
</xsl:template>

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

<xsl:template match="text()">
p: <xsl:value-of select="."/>
</xsl:template>

 

=====
Carles Canellas.
VicerTec S.L.

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread