This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: parse malformed XML element



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]