Subject: Re: [xsl] Delimited string-value of elements / text nodes with XSLT 1.0? From: "B. S." <sbremal@xxxxxxxxxxx> Date: Mon, 20 Nov 2006 14:23:47 +0000 |
... <xsl:template match="text()"> <xsl:value-of select="." /> <xsl:text> </xsl:text> </xsl:template>
<xsl:template match="/"> <xsl:apply-templates select="html/body" /> </xsl:template> ...
Cheers, Balazs
From: Florent Georges <darkman_spam@xxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Delimited string-value of elements / text nodes with XSLT 1.0?
Date: Mon, 20 Nov 2006 09:56:22 +0100 (CET)
Dimitre Novatchev wrote:
Hi
> <xsl:template match="text()"> > <xsl:value-of select="concat(., ' ')"/> > </xsl:template>
Following is another solution, maybe better, and maybe not, depending on the exact description of the problem (but the overall idea remains the same):
<xsl:template match="p"> <xsl:value-of select="concat(' ', ., ' ')"/> </xsl:template>
Regards,
--drkm
___________________________________________________________________________
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions !
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses
http://fr.answers.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Delimited string-value of, Florent Georges | Thread | [xsl] [ANN] oXygen XML Editor 8.0, George Cristian Bina |
RE: [xsl] .Net compiledTransform, Rick Roen | Date | RE: [xsl] .Net compiledTransform, Michael Kay |
Month |