[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: text extraction

Subject: Re: text extraction
From: mus47@xxxxxxxx
Date: Thu, 12 Oct 2006 16:59:51 +0200 (CEST)
c text extraction
<?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 C  16h41
> De : "Florent Georges" <darkman_spam@xxxxxxxx>
> A : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Copie C  :
> Objet : Re:  text extraction
>
> mus47@xxxxxxxx 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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___________________________________________________________________________
> DC)couvrez une nouvelle faC'on d'obtenir des rC)ponses C  toutes vos
questions !
> Demandez C  ceux qui savent sur Yahoo! Questions/RC)ponses
> http://fr.answers.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.