[Home] [By Thread] [By Date] [Recent Entries]
Fredrik Bengtsson wrote:
<xsl:template match="/d:book"> <!-- ignoring root, page-sequence etc for brevity --> <xsl:apply-templates /> </xsl:template> Well in your template for chapter you do apply-templates meaning you process all child nodes. Then there is a built-in template that does the same for any element nodes not having a template in your stylesheet and there is a built-in template for text nodes that does xsl:value-of, thus the contents of the titleabbrev is copied to the output. You can remedy this by either only selecting the title element with your apply-templates in the chapter template <xsl:template match="d:chapter"> <xsl:apply-templates select="d:title"/> </xsl:template> or by suppressing text output with <xsl:template match="text()"/> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



