Subject: Re: [xsl] how to split des tokens seperated by <br/> tag in the same location Xpath From: Antonio Fiol <fiol@xxxxxxxxxx> Date: Fri, 28 Jun 2002 16:35:24 +0200 |
<xsl:for-each select="/html/body/table/tr[2]/td[2]/table[2]/tr/td[2]/table[2]/tr/td/font[1]/font/text()"> <student><xsl:value-of select="." /> </xsl:for-each>
It the case of extension with the case we have solved with un string and separateurs as comma, '-',... But in case we have to work with a paragraph seperate by <br>. How to extract words.
Example: i work with a part of XHTML file:
<HTML> ..........................
<font face="Helvetica,Geneva,Arial,Times" size="-1">
- <font face="Helvetica" size="2">
Mary Jo Staley <br /> Patricia Oberndorf <br /> Carol A. Sledge </font>
</font>
When i use XSLT to extract words at /html/body/table/tr[2]/td[2]/table[2]/tr/td[2]/table[2]/tr/td/font[1]/font
it return always mary Jo Stanley Paricia Oberndorf
How to generate:
<student>Jo Stanley</student>
<student>Paricia Oberndorf</student>
<student>CarolA.Sledge</student>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] how to split des tokens seper, Tuan-Dung Cao | Thread | Re: [xsl] how to split des tokens s, Tuan-Dung Cao |
[xsl] Encoding text outputs with XS, Cenk Uysal | Date | Re: [xsl] Encoding text outputs wit, Joerg Heinicke |
Month |