xsl-list
[Top] [All Lists]

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

2003-03-27 03:21:33
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



<Prev in Thread] Current Thread [Next in Thread>