diff options
author | Shaun McCance <shaunm@gnome.org> | 2013-07-27 11:39:09 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2013-07-27 11:39:09 -0400 |
commit | 3d238cca529e10803fe4af05b1e9fba37b1bbb33 (patch) | |
tree | c6d4e54e73e711be43fb0ce77176174a59f0bcf5 /xslt | |
parent | a43c830b303c117214201d4af37e67baa6e455e5 (diff) | |
download | yelp-tools-3d238cca529e10803fe4af05b1e9fba37b1bbb33.tar.gz |
Validate Mallard cache files
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/mal-rng.xsl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xslt/mal-rng.xsl b/xslt/mal-rng.xsl index 6049dcd..2c75878 100644 --- a/xslt/mal-rng.xsl +++ b/xslt/mal-rng.xsl @@ -3,9 +3,10 @@ xmlns:str="http://exslt.org/strings" xmlns:exsl="http://exslt.org/common" xmlns:mal="http://projectmallard.org/1.0/" + xmlns:cache="http://projectmallard.org/cache/1.0/" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns="http://relaxng.org/ns/structure/1.0" - exclude-result-prefixes="mal str exsl rng" + exclude-result-prefixes="mal cache str exsl rng" version="1.0"> <xsl:param name="rng.strict" select="false()"/> @@ -16,6 +17,9 @@ <xsl:when test="string(@version) != ''"> <xsl:value-of select="@version"/> </xsl:when> + <xsl:when test="/cache:cache"> + <xsl:value-of select="'cache/1.0 1.0'"/> + </xsl:when> <xsl:otherwise> <xsl:value-of select="'1.0'"/> </xsl:otherwise> |