xsl-list
[Top] [All Lists]

RE: transformation of narrative documents with nested elements

2005-01-16 11:30:11

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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--