diff options
author | Shaun McCance <shaunm@gnome.org> | 2013-08-19 17:07:47 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2013-08-19 17:07:47 -0400 |
commit | b9e67601ca2666da8f548cad9582357890370c3b (patch) | |
tree | 7a54ec3afc9c45d9ce23f2571390036b36257695 /xslt | |
parent | a136765214efd9d7854b6849229ac3d0003fd8d2 (diff) | |
download | yelp-tools-b9e67601ca2666da8f548cad9582357890370c3b.tar.gz |
mal-rng.xsl: Allow xml: namespace attrs in strict mode
Diffstat (limited to 'xslt')
-rw-r--r-- | 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"/> |