[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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>
</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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|