xsl-list
[Top] [All Lists]

Re: [xsl] text extraction

2006-10-12 08:00:12

<?xml version="1.0" encoding="iso-8859-1"?>
<doc>
<body>
<p>
<bold>this is a simple text in <italic>english</italic></bold>
<bold>this is a simple text in <italic>french</italic></bold>
</p>
</body>
</doc>
What I have using the following XSLT code is:
(
this is a simple text in english
this is a simple text in french
)


<xsl:stylesheet version='1.0' encoding="iso-8859-1" 
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > 
<xsl:template match="/">
<xsl:for-each select="//p//bold">
 <xsl:value-of select="self::bold"/>
<xsl:text>&#xa;</xsl:text>
</xsl:for-each>
</xsl:template> 
</xsl:stylesheet>


What I want now is how to have every word i a line:
this 
is
a
simple
...
english
this
is
a
....
french

Thank you in advans


Message du 12/10/06 à 16h41
De : "Florent Georges" <darkman_spam(_at_)yahoo(_dot_)fr>
A : xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Copie à : 
Objet : Re: [xsl] text extraction

mus47(_at_)voila(_dot_)fr wrote:

  Hi

<xsl:for-each select="//E1">
 <xsl:value-of select="self::title"/>

  This XPath expression will never select a node.

Now if I want to have every word in a new line it will be difficult

  Could you please provide in the same email a minimal working sample
of XSLT, a minimal input document, the result you get and the result
you expect?

  Regards,

--drkm




















      

      
              
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com

--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--