diff options
author | Shaun McCance <shaunm@gnome.org> | 2009-12-31 17:41:58 -0600 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2009-12-31 17:41:58 -0600 |
commit | 18232bcae746e0d9b4cc3c017d9343548353c12e (patch) | |
tree | 6ab8dd026be40de8c67cf17a60989c8a98b528bb /doc/yelp-xsl | |
parent | 0c1528f6082bed9f1a1bbfccdab1ac86fccb2df6 (diff) | |
download | yelp-xsl-18232bcae746e0d9b4cc3c017d9343548353c12e.tar.gz |
Switching to new Mallard cache namespace
Diffstat (limited to 'doc/yelp-xsl')
-rw-r--r-- | doc/yelp-xsl/Makefile.am | 3 | ||||
-rwxr-xr-x | doc/yelp-xsl/mal2cache | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/yelp-xsl/Makefile.am b/doc/yelp-xsl/Makefile.am index 77dd5646..890107e5 100644 --- a/doc/yelp-xsl/Makefile.am +++ b/doc/yelp-xsl/Makefile.am @@ -6,6 +6,7 @@ xsldoc_dirs = \ $(ABS_SRCDIR)/../../xslt/docbook/common \ $(ABS_SRCDIR)/../../xslt/docbook/html \ $(ABS_SRCDIR)/../../xslt/docbook/omf \ + $(ABS_SRCDIR)/../../xslt/mallard/cache \ $(ABS_SRCDIR)/../../xslt/mallard/common \ $(ABS_SRCDIR)/../../xslt/mallard/html @@ -26,7 +27,7 @@ $(xsldoc_pages): $(xsldoc_xsls) xsldoc-scan.awk xsldoc-scan.xsl "$(srcdir)/xsldoc-scan.xsl" - C/index.cache: $(xsldoc_pages) - $(srcdir)/mal2cache "$@" "$(ABS_SRCDIR)/../../xslt/mallard/utils/mal2cache.xsl" C/*.page + $(srcdir)/mal2cache "$@" "$(ABS_SRCDIR)/../../xslt/mallard/cache/mal-cache.xsl" C/*.page .PHONY: yelp-xsl-check-links check: yelp-xsl-check-links diff --git a/doc/yelp-xsl/mal2cache b/doc/yelp-xsl/mal2cache index e625cf8e..a7a23eec 100755 --- a/doc/yelp-xsl/mal2cache +++ b/doc/yelp-xsl/mal2cache @@ -11,7 +11,7 @@ BEGIN { { for (i = 1; i <= length($0); i++) { c = substr($0, i, 1); - if (c ~ /[a-zA-Z0-9:_\.\-]/) + if (c ~ /[a-zA-Z0-9:_\.\-\/]/) printf("%s", c); else printf("%%%02X", bytes[c]); @@ -24,7 +24,7 @@ shift xsl_file="$1" shift ( - echo '<cache:cache xmlns:cache="http://projectmallard.org/1.0/"' + echo '<cache:cache xmlns:cache="http://projectmallard.org/cache/1.0/"' echo ' xmlns="http://projectmallard.org/1.0/">' while [ "$#" != "0" ]; do input="$1" @@ -40,7 +40,7 @@ shift fi done | while read input; do input_esc=$(urlencode "$input" | sed -e 's/\&/\&/g' -e 's/</\</g' -e "s/'/\'/g") - echo "<page href='file://$input_esc'/>" + echo "<page cache:href='file://$input_esc'/>" done echo '</cache:cache>' ) | xsltproc -o "$cache_file" "$xsl_file" - |