Subject: Re: [xsl] Dynamic dispatch of functions/templates (was matching text() ) From: Michael Kay <mike@xxxxxxxxxxxx> Date: Thu, 23 Dec 2010 16:45:58 +0000 |
Still thinking how to changeIt sounds as if there's a back-story to this one which perhaps I should have been following, but on the face of it, you can simply do
<xsl:apply-templates select="text()"/>
<xsl:template match="some_xpath/text()"> ..
Into something where the text is concatenated in the face of PI's or comments.
<xsl:variable name="temp"> <xsl:for-each select="text()"><xsl:value-of select="."/></xsl:for-each> </xsl:variable> <xsl:apply-templates select="$temp/text()"/>
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamic dispatch of funct, Dimitre Novatchev | Thread | RE: [xsl] Dynamic dispatch of funct, David Lee |
Re: [xsl] Avoid repition of data, Michael Kay | Date | RE: [xsl] Dynamic dispatch of funct, David Lee |
Month |