[yelp-tools] mal-rng.xsl: Allow xml: namespace attrs in strict mode
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] mal-rng.xsl: Allow xml: namespace attrs in strict mode
- Date: Mon, 19 Aug 2013 21:08:13 +0000 (UTC)
commit b9e67601ca2666da8f548cad9582357890370c3b
Author: Shaun McCance <shaunm gnome org>
Date: Mon Aug 19 17:07:47 2013 -0400
mal-rng.xsl: Allow xml: namespace attrs in strict mode
xslt/mal-rng.xsl | 11 ++++++++++-
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"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]