diff options
Diffstat (limited to 'thml2osis/xslt/thml2osis.xslt')
-rw-r--r-- | thml2osis/xslt/thml2osis.xslt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/thml2osis/xslt/thml2osis.xslt b/thml2osis/xslt/thml2osis.xslt index 0f61ac4..01c3b91 100644 --- a/thml2osis/xslt/thml2osis.xslt +++ b/thml2osis/xslt/thml2osis.xslt @@ -486,7 +486,8 @@ table --> - <xsl:template match="//ThML.body//*"> + <!-- if we don't want to copy empty elements use this one: --> + <xsl:template match="//ThML.body//p"> <!-- NB: we avoid using <xsl:copy> due to namespace issues --> <xsl:if test="*|text()"> <!-- don't copy empty elements --> <xsl:element name="{name()}"> @@ -497,4 +498,16 @@ </xsl:element> </xsl:if> </xsl:template> + + + <xsl:template match="//ThML.body//*"> + <!-- NB: we avoid using <xsl:copy> due to namespace issues --> + <xsl:element name="{name()}"> + <xsl:call-template name="copyattributes"> + <xsl:with-param name="exclude">id class place style</xsl:with-param> + </xsl:call-template> + <xsl:apply-templates /> + </xsl:element> + </xsl:template> + </xsl:stylesheet> |