Subject: RE: transformation of narrative documents with nested elements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 16 Jan 2005 18:30:11 -0000
|
> Try changing the templates for "bold" and "emph" to:
>
> <xsl:template match="bold">
> <strong><xsl:apply-templates select="."/></strong>
> </xsl:template>
>
> <xsl:template match="emph">
> <i><xsl:apply-templates select="."/></i>
> </xsl:template>
>
The select="." looks wrong - it will cause the template to invoke itself.
You just want <xsl:apply-templates/>, so it processes its children.
Michael Kay
http://www.saxonica.com/
|