summaryrefslogtreecommitdiff
path: root/xslt/mal-rng.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/mal-rng.xsl')
-rw-r--r--xslt/mal-rng.xsl11
1 files changed, 10 insertions, 1 deletions
diff --git a/xslt/mal-rng.xsl b/xslt/mal-rng.xsl
index 2c75878..aebda73 100644
--- a/xslt/mal-rng.xsl
+++ b/xslt/mal-rng.xsl
@@ -88,7 +88,16 @@
<xsl:param name="nss"/>
<xsl:choose>
<xsl:when test="$rng.strict and rng:anyName">
- <empty/>
+ <xsl:choose>
+ <xsl:when test="ancestor::rng:define/@name = 'mal_attr_external'">
+ <xsl:copy>
+ <nsName ns="http://www.w3.org/XML/1998/namespace"/>
+ </xsl:copy>
+ </xsl:when>
+ <xsl:otherwise>
+ <empty/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="nsmunge" select="self::rng:element or self::rng:attribute"/>