From: <ko...@us...> - 2007-11-28 16:12:07
|
Revision: 7578 http://docbook.svn.sourceforge.net/docbook/?rev=7578&view=rev Author: kosek Date: 2007-11-28 08:12:01 -0800 (Wed, 28 Nov 2007) Log Message: ----------- Preserve element namespace for non-DocBook elements. This is necessary to for handling DocBook + foreign elements schema customizations. Modified Paths: -------------- trunk/docbook/relaxng/tools/include.xsl Modified: trunk/docbook/relaxng/tools/include.xsl =================================================================== --- trunk/docbook/relaxng/tools/include.xsl 2007-11-27 17:24:21 UTC (rev 7577) +++ trunk/docbook/relaxng/tools/include.xsl 2007-11-28 16:12:01 UTC (rev 7578) @@ -67,6 +67,9 @@ <xsl:template match="*" mode="include"> <xsl:copy> <xsl:copy-of select="@*"/> + <xsl:if test="self::rng:element"> + <xsl:copy-of select="ancestor::*[@ns][1]/@ns[. != 'http://docbook.org/ns/docbook']"/> + </xsl:if> <xsl:apply-templates mode="include"/> </xsl:copy> </xsl:template> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |