xsl-list
[Top] [All Lists]

[xsl] select first word

2007-12-17 17:01:20
starting with 
<input> 
        <le>Saint, sainteté</le> 
        <le>Témoignage, témoigner, témoin</le> 
        <le>Tablettes de l'alliance</le> 
        <le>Satan</le> 
</input> 

I want 

<output> 
        <le>Saint</le> 
        <le>Temoignage</le> 
        <le>Tablettes</le> 
        <le>Satan</le> 
</output> 

I have 
        <xsl:value-of select=
"translate(.,'áâãäåèéêëìíîïòóôõöùúûüÈÉÊËÁÀ','aaaaaeeeeiiiioooooEEEEAA')"/> 
        
to translate the accents to the unaccented words 

and 

        <xsl:value-of select="substring-before(.,' ')"/>         
        <xsl:value-of select="substring-before(.,',')"/>         

will select just the first word. 

So how do I put this together? 

Jim Albright
704 843-0582
JAARS, Speeding Bible Translation
Wycliffe, Partners in Bible Translation



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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