This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: parse malformed XML element
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: parse malformed XML element
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Thu, 24 Aug 2000 22:27:06 +0100
- Reply-To: xsl-list at mulberrytech dot com
Or maybe you want
<xsl:template match="p/text()">
<xsl:value-of select="." />
</xsl:template>
<xsl:template match="br">
<xsl:text>
</xsl:text>
</xsl:template>
or maybe not
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Bertrand
>Sent: 24 August 2000 16:30
>To: 'Xsl-List
>Subject: parse malformed XML element
>
>
>I have the following XML:
>
><p> text1 <br/>
> text2 <br/>
> text3 <br/>
> .
> .
> .
><p/>
>
>I want get only the text1 or text2 or text3 or ...
>
>
>if i use <xsl:value-of select="p" /> i get text1+text2+text3+...
>if i use <xsl:value-of select="p/text()" /> i get only text1.
>
>How can i do ?
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list