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: Eric van der Vlist <vdv at dyomedea dot com>
- Date: Thu, 24 Aug 2000 18:06:11 +0200
- References: <NEBBIEMMIKNJDFOHOIPPOECGCBAA.bertrand.guiral@voxsurf.com>
- Reply-To: xsl-list at mulberrytech dot com
Bertrand wrote:
>
> I have the following XML:
>
> <p> text1 <br/>
> text2 <br/>
> text3 <br/>
> .
> .
> .
> <p/>
I assume you meant </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 ?
What about p/text()[1], p/text()[2], p/text()[3] ?
Eric
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list