[Home] [By Thread] [By Date] [Recent Entries]
copy most stuff: <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> don't copy w that contain (one or more) phr <xsl:template match="w[phr]"> <phr> <xsl:for-each select="phr"> <w> <xsl:copy-of select="node()"/> </w> </xsl:for-each> </phr> </xsl:template> David
|

Cart



