Re: [xsl] block and templates.

Subject: Re: [xsl] block and templates.
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Thu, 21 Sep 2006 21:22:03 +0200 (CEST)
Luke Jones wrote:

> Input looks something like this.

> <para>
> 	<line number="3">
> 		<t>This is the first sentence in a paragraph.</t>
> 	</line>
> 	<line number="4">
> 		This is the second line in a paragraph.
> 	</line>
> </para>

  You didn't say what to do with the second line (have the whitespaces
at the beginning of the text node to be kept?).  Maybe your can adapt
this:

    <xsl:value-of select="@number"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="normalise-spaces(.)"/>

  Not tested.

  Regards,

--drkm


















	

	
		
___________________________________________________________________________ 
Dicouvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Riponses pour partager vos connaissances, vos opinions et vos expiriences. 
http://fr.answers.yahoo.com 

Current Thread