w3-recs (20080716-1) debian-dir only changes

Summary

 debian/NEWS                             |   15 +++
 debian/README.Debian                    |   23 +++++
 debian/README.source                    |   74 ++++++++++++++++
 debian/changelog                        |  133 +++++++++++++++++++++++++++++
 debian/compat                           |    1 
 debian/control                          |  143 ++++++++++++++++++++++++++++++++
 debian/control-index.txt                |  123 +++++++++++++++++++++++++++
 debian/control.in                       |   21 ++++
 debian/copyright                        |   68 +++++++++++++++
 debian/patches/00dpatch.conf            |    2 
 debian/patches/00list                   |    2 
 debian/patches/css-local-images.dpatch  |   70 +++++++++++++++
 debian/patches/rec-dom2-html-url.dpatch |   19 ++++
 debian/rules                            |   97 +++++++++++++++++++++
 debian/scripts/gc                       |   16 +++
 debian/scripts/multiplex                |   20 ++++
 debian/url-extra.txt                    |   14 +++
 debian/w3-recs.dirs                     |    1 
 debian/w3-recs.install                  |    3 
 debian/w3-recs.links                    |    1 
 debian/xsl/deb-control-index.xsl        |   39 ++++++++
 debian/xsl/deb-gen-doc-base.xsl         |   85 +++++++++++++++++++
 debian/xsl/deb-gen-install.xsl          |   39 ++++++++
 debian/xsl/gen-devhelp.xsl              |   44 +++++++++
 debian/xsl/gen-html-index.xsl           |   64 ++++++++++++++
 debian/xsl/grep-ids.xsl                 |   28 ++++++
 debian/xsl/grep-urls.xsl                |   32 +++++++
 debian/xsl/w3-tr-lib.xsl                |   78 +++++++++++++++++
 28 files changed, 1255 insertions(+)

    
download this patch

Patch contents

--- w3-recs-20080716.orig/debian/w3-recs.install
+++ w3-recs-20080716/debian/w3-recs.install
@@ -0,0 +1,3 @@
+www.w3.org		/usr/share/doc/w3-recs/html/
+index.html		/usr/share/doc/w3-recs/html/
+w3-recs.devhelp		/usr/share/doc/w3-recs/html/
--- w3-recs-20080716.orig/debian/changelog
+++ w3-recs-20080716/debian/changelog
@@ -0,0 +1,133 @@
+w3-recs (20080716-1) unstable; urgency=low
+
+  * recommendation updates:
+    - XForms 1.0 Third Edition (updated 29/10/2007)
+    - SPARQL Query Language for RDF (new recommendation 15/01/2008)
+    - SPARQL Protocol for RDF (new recommendation 15/01/2008)
+    - SPARQL Query Results XML Format (new recommendation 15/01/2008)
+    - Cascading Style Sheets, level 1 (updated 11/04/2008)
+    - Cascading Style Sheets, level 2 (updated 11/04/2008)
+    - Canonical XML Version 1.1 (new recommendation 02/05/2008)
+    - XML Signature Syntax and Processing Second Edition (updated 10/06/2008)
+  * promote Homepage to a real debian/control field
+  * promote Vcs-* fields to real debian/control fields
+  * use relative links in index.html (enable using the index as
+    http://localhost/doc/...), thanks to Simon McVittie for the patch
+    (closes: #444593)
+  * register a w3-recs "book" with the GNOME documentation browser, based on a
+    patch by Simon McVittie (closes: #446876)
+  * update Standards-Version to 3.8.0, no changes needed
+  * rename debian/README.Debian-source -> debian/README.source, the latter is
+    now recommended by policy
+  * debian/README.source: add a note on how to be informed about new
+    recommendation releases (use the RSS feed, Luke)
+  * debian/xsl/deb-gen-doc-base.xsl: ensure doc-base Document IDs are all
+    lowercase, as required by doc-base doc; see
+    /usr/share/doc/doc-base/doc-base.txt.gz. (Without this fix, latest
+    debhelper clashes all doc-base entries into a single one.)
+  * move doc-base documents to the (new) section Help/Standards
+  * debian/copyright: wrap long lines to avoid exceeding 80 characters
+  * move non "upstream" dirs under debian/ (scripts/, xsl/, url-extra.txt) so
+    that diff.gz only touches stuff under debian/
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 16 Jul 2008 14:54:57 +0200
+
+w3-recs (20070917-1) unstable; urgency=low
+
+  * new snapshot
+  * debian/rules, url-extra.txt
+    - add explicit download of some css stylesheets and icons, so that
+      absolute URLs pointing to them from the recommendations get converted by
+      wget at the end of the download and fancy stuff is available offline
+  * debian/copyright
+    - updating to the current software notice and license
+  * debian/patches/
+    - 00dpatch.conf: add file, on svn we are using debianonly mode
+    - add patch css-local-images which fixes css stylesheets so that the
+      status background image is relative
+
+ -- Stefano Zacchiroli <zack@debian.org>  Mon, 17 Sep 2007 10:08:49 +0200
+
+w3-recs (20070915-1) unstable; urgency=low
+
+  * adopting package (closes: #420622, #420623, #420624)
+  * small revolution in how the package is maintained to lessen the
+    maintenance burden. The new philosophy is: "automate automate automate",
+    see debian/README.Debian-source for more details. Other, per-file changes
+    are reported below
+  * debian/changelog
+    - change the versioning scheme to YYYYMMDD-v
+  * debian/control.in
+    - set me as the maintainer
+    - drop w3m from Recommends, www-browser is enough
+    - add build-dep on cdbs, libxml2-utils, xsltproc, dpatch
+  * debian/rules
+    - use CDBS
+    - add the automation logics for downloading TR index and documents, and
+      for generating all derived files (doc-base entries, HTML index, ...)
+  * debian/compat
+    - add file, set debhelper compatibility level to 5
+  * debian/w3-recs.install
+    - ship all recommendations under /usr/share/doc/w3-recs/html/
+  * debian/README.Debian{,-source}
+    - add files, with info for users and maintainers
+  * xsl/*, scripts/*
+    - add XSLT stylesheets and scripts to generate derived files
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 16 Sep 2007 12:47:59 +0200
+
+w3-recs (2004.08-2) unstable; urgency=low
+
+  * QA upload.
+  * The package is orphaned (see #420622), set maintainer to Debian QA Group.
+  * Fix doc-base files (closes: #422932).
+  * Remove dhelp file (closes: #361321, #389810).
+  * Make the source package non-native.
+  * Bump Standards-Version to 3.7.2.
+  * Move debhelper to Build-Depends from Build-Depends-Indep.
+  * Set debhelper compatibility level to 5.
+  * Switch binary-indep and binary-arch targets.
+  * Remove CVS dirs from the binary package.
+
+ -- Robert Luberda <robert@debian.org>  Wed, 09 May 2007 01:32:14 +0200
+
+w3-recs (2004.08-1) unstable; urgency=high
+
+  * Revised titles for w3rec-xmlschema-* again :-/
+    (closes: #263931)
+  * Added missing image components.gif
+    (closes: #192949)
+  * Added missing recommendation:
+  	XHTML 1.0
+    (closes: #236079)
+  * Added a README.debian file.
+  * Added w3m as preferred www-browser
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 17 Aug 2004 12:11:09 +0200
+
+w3-recs (2003.03-1) unstable; urgency=high
+
+  * Policy updated.
+  * Removed unuseful dh_installmanpages, dh_installmenu.
+  * Changed title in w3rec-xmlschema-0
+    (closes: #165012)
+  * Removed DOM2 HTML. 
+    It has been re-issued in 2003, so moved it in w3-recs-2003.
+    (closes: #185380)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 11 Mar 2003 12:02:13 +0100
+
+w3-recs (2002.09-2) unstable; urgency=low
+
+  * Changed Abstract string in w3rec-xmlschema-0.
+    (closes: #165012)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 21 Oct 2002 12:38:57 +0200
+
+w3-recs (2002.09-1) unstable; urgency=low
+
+  * Initial release. See doc-html-w3 changelog for information.
+  * Docs moved under a RECS subdir.
+
+ -- Francesco P. Lovergine <frankie@debian.org>  Sat, 21 Sep 2002 17:06:26 +0200
+
--- w3-recs-20080716.orig/debian/control.in
+++ w3-recs-20080716/debian/control.in
@@ -0,0 +1,21 @@
+Source: w3-recs
+Build-Depends: debhelper (>= 5.0.0), cdbs, dpatch
+Build-Depends-Indep: xsltproc, libxml2-utils
+Section: non-free/doc
+Priority: optional
+Maintainer: Stefano Zacchiroli <zack@debian.org>
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/w3-recs/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/w3-recs/trunk/
+Homepage: http://www.w3.org
+
+Package: w3-recs
+Architecture: all
+Recommends: www-browser
+Description: Recommendations of the World Wide Web Consortium (W3C)
+ This package includes the Recommendations produced by the World Wide
+ Web Consortium (W3C) standardization body in HTML format.
+ .
+ The included Recommendations are:
+ .
+ @INDEX@
--- w3-recs-20080716.orig/debian/compat
+++ w3-recs-20080716/debian/compat
@@ -0,0 +1 @@
+5
--- w3-recs-20080716.orig/debian/url-extra.txt
+++ w3-recs-20080716/debian/url-extra.txt
@@ -0,0 +1,14 @@
+http://www.w3.org/Icons/w3c_home
+http://www.w3.org/Icons/w3c_home.gif
+http://www.w3.org/Icons/w3c_home.png
+http://www.w3.org/StyleSheets/TR/logo-REC
+http://www.w3.org/StyleSheets/TR/logo-REC.gif
+http://www.w3.org/StyleSheets/TR/logo-REC.png
+http://www.w3.org/StyleSheets/TR/W3C-PER
+http://www.w3.org/StyleSheets/TR/W3C-PER.css
+http://www.w3.org/StyleSheets/TR/W3C-REC
+http://www.w3.org/StyleSheets/TR/W3C-REC.css
+http://www.w3.org/StyleSheets/TR/W3C-WD
+http://www.w3.org/StyleSheets/TR/W3C-WD.css
+http://www.w3.org/StyleSheets/TR/W3C-errata
+http://www.w3.org/StyleSheets/TR/W3C-errata.css
--- w3-recs-20080716.orig/debian/README.source
+++ w3-recs-20080716/debian/README.source
@@ -0,0 +1,74 @@
+Maintaining the "w3-recs" Debian package
+========================================
+
+The maintenance of w3-recs has been automated as much as possible. The starting
+point is a machine-interpretable version of the index of the Technical Reports
+(TRs) of the W3C. Such a representation is available as an RDF file on the W3C
+web site. From it various kind of information are automatically generated such
+as:
+- the URLs of all the currently available recommendations to be downloaded
+- the doc-base entries
+- the HTML version of the recommendation index
+- the text version of the recommendation index to be inserted in the
+  debian/control long description
+
+Below are reported various debian/rules target and additional utilities which
+help in managing the information mentioned above.
+
+Useful debian/rules targets
+---------------------------
+
+- get-orig-source
+
+    first download the TR index and then starts mirroring the W3C website using
+    the recommendation URLs as starting points. Beware that the mirror takes a
+    while (~ 1 hour) and will download about 200 Mb of data
+
+- clean-orig-source
+
+    remove the stuff downloaded by get-orig-source
+
+- build-orig
+
+    build the .orig.tar.gz tarball in ../tarballs/
+
+- maint-build
+
+    create derived stuff that must be included in the source package. This
+    includes generating debian/control from debian/control.in including the
+    recommendation index in the long description, so you should invoke this
+    before creating the source package.  So, *BIG FAT WARNING*, do not change
+    debian/control manually since your changes will be overwritten; work on
+    debian/control.in and then invoke "fakeroot debian/rules maint-build"
+
+- maint-clean
+
+    remove the stuff generated by maint-build
+
+Useful XSLT stylesheets
+-----------------------
+
+- xsl/w3-tr-lib.xsl
+
+    "library" with common functionalities used by the other stylesheets.
+    Notably the "find_trs" template selects filter out the Technical Reports
+    that will be shipped in this package (ATM it selects recommendations ...
+    and yes the TR index contains a lot of stuff other than recommendations).
+
+- xsl/grep-urls.xsl   (e.g. "xsltproc xsl/grep-urls.xsl tr.rdf")
+
+    print out the recommendation URLs (i.e. mirror starting points)
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 16 Sep 2007 12:35:32 +0200
+
+Keeping up to date wrt new Recommendation
+-----------------------------------------
+
+If you are interested in maintaining w3-recs, you should now that the routine
+required activity is updating shipped recommendations to reflect their new
+"releases", as well as including brand new recommendations in the package. The
+best way to keep up to date with that business and knowing when new/update
+recommendations get released is following the RSS feed of www.w3.org. A direct
+link to it is currently http://www.w3.org/2000/08/w3c-synd/home.rss .
+
+ -- Stefano Zacchiroli <zack@debian.org>  Wed, 16 Jul 2008 13:34:01 +0200
--- w3-recs-20080716.orig/debian/README.Debian
+++ w3-recs-20080716/debian/README.Debian
@@ -0,0 +1,23 @@
+W3C Recommendations in Debian
+=============================
+
+Browsing the recommendations
+----------------------------
+
+The "w3-recs" package ships the bundle of the recommendations produced by the
+World Wide Web Consortium (W3C).  All recommendations are shipped as a local
+mirror of (part of) the www.w3.org web site which is available starting from
+<file:///usr/share/doc/w3-recs/html/www.w3.org/>. Since browsing the
+recommendations starting from there is unfortunate (due to the fact that in the
+years the W3C changed the URL namespace structure of the web site), alternative
+browsing mechanisms are available.
+
+All recommendations are registered with the doc-base subsystem (see the
+"doc-base" package for more information on this). You can therefore browse the
+available recommendations with your doc-base browser of choice (e.g.
+"doc-central", "dhelp", ...).
+
+Alternatively an automatically generated HTML index of the shipped
+recommendations is available at </usr/share/doc/w3-recs/html/index.html>.
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 16 Sep 2007 12:06:16 +0200
--- w3-recs-20080716.orig/debian/rules
+++ w3-recs-20080716/debian/rules
@@ -0,0 +1,97 @@
+#!/usr/bin/make -f
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+
+# skip wget's .orig files (kept for timestamping) and useless metadata
+DEB_DH_INSTALL_ARGS += -X.orig
+DEB_DH_INSTALL_ARGS += -Xrobots.txt
+
+TR_RDF = http://www.w3.org/2002/01/tr-automation/tr.rdf
+TR_FILE := $(notdir $(TR_RDF))
+WEB_MIRROR = www.w3.org
+ORIG_STUFF = $(TR_FILE) $(WEB_MIRROR)
+
+XSLT = xsltproc
+XSL_INST = debian/xsl/deb-gen-install.xsl
+XSL_URLS = debian/xsl/grep-urls.xsl
+XSL_IDS = debian/xsl/grep-ids.xsl
+XSL_INDEX = debian/xsl/deb-control-index.xsl
+XSL_HTML = debian/xsl/gen-html-index.xsl
+XSL_DEVHELP = debian/xsl/gen-devhelp.xsl
+XSL_DOCBASE = debian/xsl/deb-gen-doc-base.xsl
+TXT_INDEX = debian/control-index.txt
+DEST_BASEDIR = /usr/share/doc/w3-recs/html/
+
+PKGNAME = w3-recs
+DOCBASE_SECTION = Help/Standards
+DOCBASE_FORMAT = HTML
+DOC_BASEPATH = /usr/share/doc/$(PKGNAME)
+
+ORIG_DIR = ../tarballs/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
+
+common-post-build-indep:: doc-base-stamp index.html w3-recs.devhelp
+clean::
+	rm -f debian/w3-recs.doc-base.tr-*
+	rm -f doc-base-stamp index.html url-list.txt w3-recs.devhelp
+
+.PHONY: get-orig-source clean-orig-source build-orig
+get-orig-source: download
+clean-orig-source:
+	rm -rf $(ORIG_STUFF)
+build-orig: $(ORIG_STUFF)
+	if [ -d $(ORIG_DIR) ] ; then rm -rf $(ORIG_DIR) ; fi
+	mkdir -p $(ORIG_DIR)
+	cp -a $(ORIG_STUFF) $(ORIG_DIR)
+	cd ../tarballs \
+		&& tar --exclude="*.orig" -czf \
+			$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
+			$(notdir $(ORIG_DIR))
+	rm -rf $(ORIG_DIR)
+
+.PHONY: maint-build
+maint-build: debian/control
+
+.PHONY: maint-clean
+maint-clean:
+	rm -f debian/control
+	rm -f deb-control-index.txt
+
+doc-base-stamp: $(XSL_DOCBASE) $(TR_FILE)
+	chmod +x debian/scripts/multiplex
+	$(XSLT) \
+		--stringparam basepath $(DOC_BASEPATH) \
+		--stringparam section $(DOCBASE_SECTION) \
+		--stringparam format $(DOCBASE_FORMAT) \
+		$(XSL_DOCBASE) $(TR_FILE) | debian/scripts/multiplex "debian/w3-recs.doc-base.tr-"
+
+index.html: $(XSL_HTML) $(TR_FILE)
+	$(XSLT) \
+		--stringparam basepath $(DOC_BASEPATH) \
+		$^ | xmllint --format - > $@
+
+w3-recs.devhelp: $(XSL_DEVHELP) $(TR_FILE)
+	$(XSLT) \
+		--stringparam version $(DEB_UPSTREAM_VERSION) \
+		$^ | xmllint --format - > $@
+
+.PHONY: download download-index download-trs
+download: download-index download-trs
+download-index:
+	wget -nv -N $(TR_RDF)
+url-list.txt: $(XSL_URLS) $(TR_FILE) debian/url-extra.txt
+	$(XSLT) $(XSL_URLS) $(TR_FILE) > $@
+	cat debian/url-extra.txt >> $@
+download-trs: url-list.txt
+	wget -nv -r -np -X -N -E -k -K -L -p -R ps,pdf,gz,zip,tgz -i $<
+	# fix for wrong URL of DOM Level 2 HTML REC which causes HTTP redirection;
+	# see also debian/patches/rec-dom2-html-url.dpatch
+	if [ -d $(WEB_MIRROR)/TR/DOM-Level-2-HTML ] ; then \
+		mv $(WEB_MIRROR)/TR/DOM-Level-2-HTML/ \
+			$(WEB_MIRROR)/TR/2003/REC-DOM-Level-2-HTML-20030109 ; \
+	fi
+
+$(TXT_INDEX): $(XSL_INDEX) $(TR_FILE)
+	$(XSLT) $^ > $@
+debian/control:: debian/control.in $(TXT_INDEX)
+	sed -e'/@INDEX@/r$(TXT_INDEX)' -e '/@INDEX@/d' $< > $@
+
--- w3-recs-20080716.orig/debian/NEWS
+++ w3-recs-20080716/debian/NEWS
@@ -0,0 +1,15 @@
+w3-recs (20070915-1) unstable; urgency=low
+
+  * All W3C Recommendations now shipped
+
+    Starting from this version the package ships all the W3C recommendations
+    available when the package is being built.
+
+  * New ways of browsing the shipped recommendations
+
+    The shipped recommendations are indexed both by the doc-base subsystem
+    (hence you can browse them using your doc-base browser of choice) and
+    starting from the index file </usr/share/doc/w3-recs/html/index.html>. See
+    README.Debian for more information.
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 16 Sep 2007 12:42:32 +0200
--- w3-recs-20080716.orig/debian/copyright
+++ w3-recs-20080716/debian/copyright
@@ -0,0 +1,68 @@
+This package was debianized by Stefano Zacchiroli <zack@debian.org> on
+Sun, 16 Sep 2007 20:12:42 +0200.
+
+It was downloaded from: http://www.w3.org
+
+Author: World Wide Web Consortium (with various editors)
+
+Copyright:
+
+  Copyright 1994-2007 W3C  (Massachusetts Institute of Technology, European
+  Research Consortium for Informatics and Mathematics, Keio University), All
+  Rights Reserved.
+
+License:
+
+  W3C® DOCUMENT LICENSE
+  http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231
+
+  Public documents on the W3C site are provided by the copyright holders under
+  the following license. By using and/or copying this document, or the W3C
+  document from which this statement is linked, you (the licensee) agree that
+  you have read, understood, and will comply with the following terms and
+  conditions:
+
+  Permission to copy, and distribute the contents of this document, or the W3C
+  document from which this statement is linked, in any medium for any purpose
+  and without fee or royalty is hereby granted, provided that you include the
+  following on ALL copies of the document, or portions thereof, that you use:
+
+    1. A link or URL to the original W3C document.
+
+    2. The pre-existing copyright notice of the original author, or if it
+    doesn't exist, a notice (hypertext is preferred, but a textual
+    representation is permitted) of the form: "Copyright © [$date-of-document]
+    World Wide Web Consortium, (Massachusetts Institute of Technology, European
+    Research Consortium for Informatics and Mathematics, Keio University). All
+    Rights Reserved.
+    http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231
+
+    3. If it exists, the STATUS of the W3C document.
+
+  When space permits, inclusion of the full text of this NOTICE should be
+  provided. We request that authorship attribution be provided in any software,
+  documents, or other items or products that you create pursuant to the
+  implementation of the contents of this document, or any portion thereof.
+
+  No right to create modifications or derivatives of W3C documents is granted
+  pursuant to this license. However, if additional requirements (documented in
+  the Copyright FAQ) are satisfied, the right to create modifications or
+  derivatives is sometimes granted by the W3C to individuals complying with
+  those requirements.
+
+  THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
+  REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED
+  TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
+  NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR
+  ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE
+  ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+  COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
+  CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE
+  PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
+
+  The name and trademarks of copyright holders may NOT be used in advertising or
+  publicity pertaining to this document or its contents without specific,
+  written prior permission. Title to copyright in this document will at all
+  times remain with copyright holders.
+
--- w3-recs-20080716.orig/debian/control-index.txt
+++ w3-recs-20080716/debian/control-index.txt
@@ -0,0 +1,123 @@
+  * Architecture of the World Wide Web, Volume One
+  * Associating Style Sheets with XML documents
+  * Authoring Tool Accessibility Guidelines 1.0
+  * Canonical XML Version 1.0
+  * Canonical XML Version 1.1
+  * Cascading Style Sheets (CSS1) Level 1 Specification
+  * Cascading Style Sheets, level 2 (CSS2) Specification
+  * Character Model for the World Wide Web 1.0: Fundamentals
+  * Composite Capability/Preference Profiles (CC/PP): Structure and Vocabularies 1.0
+  * Decryption Transform for XML Signature
+  * Document Object Model (DOM) Level 1
+  * Document Object Model (DOM) Level 2 Core Specification
+  * Document Object Model (DOM) Level 2 Events Specification
+  * Document Object Model (DOM) Level 2 HTML Specification
+  * Document Object Model (DOM) Level 2 Style Specification
+  * Document Object Model (DOM) Level 2 Traversal and Range Specification
+  * Document Object Model (DOM) Level 2 Views Specification
+  * Document Object Model (DOM) Level 3 Core Specification
+  * Document Object Model (DOM) Level 3 Load and Save Specification
+  * Document Object Model (DOM) Level 3 Validation Specification
+  * Exclusive XML Canonicalization Version 1.0
+  * Extensible Markup Language (XML) 1.0 (Fourth Edition)
+  * Extensible Markup Language (XML) 1.1 (Second Edition)
+  * Extensible Stylesheet Language (XSL) Version 1.0
+  * Extensible Stylesheet Language (XSL) Version 1.1
+  * GRDDL Test Cases
+  * Gleaning Resource Descriptions from Dialects of Languages (GRDDL)
+  * HTML 3.2 Reference Specification
+  * HTML 4.0 Specification
+  * HTML 4.01 Specification
+  * Internationalization Tag Set (ITS) Version 1.0
+  * Mathematical Markup Language (MathML) 1.01 Specification
+  * Mathematical Markup Language (MathML) Version 2.0 (Second Edition)
+  * Mobile SVG Profiles: SVG Tiny and SVG Basic
+  * Namespaces in XML 1.0 (Second Edition)
+  * Namespaces in XML 1.1 (Second Edition)
+  * OWL Web Ontology Language Guide
+  * OWL Web Ontology Language Overview
+  * OWL Web Ontology Language Reference
+  * OWL Web Ontology Language Semantics and Abstract Syntax
+  * OWL Web Ontology Language Test Cases
+  * OWL Web Ontology Language Use Cases and Requirements
+  * PICS 1.1 Label Distribution -- Label Syntax and Communication Protocols
+  * PICS 1.1 Rating Services and Rating Systems -- and Their Machine Readable Descriptions
+  * PICS Signed Labels (DSig) 1.0 Specification
+  * PICSRules 1.1 Specification
+  * Portable Network Graphics (PNG) Specification (Second Edition)
+  * QA Framework: Specification Guidelines
+  * RDF Primer
+  * RDF Semantics
+  * RDF Test Cases
+  * RDF Vocabulary Description Language 1.0: RDF Schema
+  * RDF/XML Syntax Specification (Revised)
+  * Resource Description Framework (RDF) Model and Syntax Specification
+  * Resource Description Framework (RDF): Concepts and Abstract Syntax
+  * Resource Representation SOAP Header Block
+  * Ruby Annotation
+  * SMIL Animation
+  * SOAP Message Transmission Optimization Mechanism
+  * SOAP Version 1.2 Part 0: Primer (Second Edition)
+  * SOAP Version 1.2 Part 1: Messaging Framework (Second Edition)
+  * SOAP Version 1.2 Part 2: Adjuncts (Second Edition)
+  * SOAP Version 1.2 Specification Assertions and Test Collection (Second Edition)
+  * SPARQL Protocol for RDF
+  * SPARQL Query Language for RDF
+  * SPARQL Query Results XML Format
+  * Scalable Vector Graphics (SVG) 1.0 Specification
+  * Scalable Vector Graphics (SVG) 1.1 Specification
+  * Semantic Annotations for WSDL and XML Schema
+  * Semantic Interpretation for Speech Recognition (SISR) Version 1.0
+  * Speech Recognition Grammar Specification Version 1.0
+  * Speech Synthesis Markup Language (SSML) Version 1.0
+  * Synchronized Multimedia Integration Language (SMIL 2.0) - [Second Edition]
+  * Synchronized Multimedia Integration Language (SMIL 2.1)
+  * Synchronized Multimedia Integration Language (SMIL) 1.0 Specification
+  * The Platform for Privacy Preferences 1.0 (P3P1.0) Specification
+  * User Agent Accessibility Guidelines 1.0
+  * Voice Extensible Markup Language (VoiceXML) 2.1
+  * Voice Extensible Markup Language (VoiceXML) Version 2.0
+  * Web Content Accessibility Guidelines 1.0
+  * Web Services Addressing 1.0 - Core
+  * Web Services Addressing 1.0 - Metadata
+  * Web Services Addressing 1.0 - SOAP Binding
+  * Web Services Description Language (WSDL) Version 2.0 Part 0: Primer
+  * Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language
+  * Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts
+  * Web Services Policy 1.5 - Attachment
+  * Web Services Policy 1.5 - Framework
+  * WebCGM 1.0 Second Release
+  * WebCGM 2.0
+  * XForms 1.0 (Third Edition)
+  * XHTML-Print
+  * XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition)
+  * XHTML™ 1.1 - Module-based XHTML
+  * XHTML™ Basic
+  * XML Base
+  * XML Encryption Syntax and Processing
+  * XML Events
+  * XML Inclusions (XInclude) Version 1.0 (Second Edition)
+  * XML Information Set (Second Edition)
+  * XML Key Management Specification (XKMS 2.0)
+  * XML Key Management Specification (XKMS 2.0) Bindings
+  * XML Linking Language (XLink) Version 1.0
+  * XML Path Language (XPath) 2.0
+  * XML Path Language (XPath) Version 1.0
+  * XML Schema Part 0: Primer Second Edition
+  * XML Schema Part 1: Structures Second Edition
+  * XML Schema Part 2: Datatypes Second Edition
+  * XML Signature Syntax and Processing (Second Edition)
+  * XML Syntax for XQuery 1.0 (XQueryX)
+  * XML-Signature XPath Filter 2.0
+  * XML-binary Optimized Packaging
+  * XPointer Framework
+  * XPointer element() Scheme
+  * XPointer xmlns() Scheme
+  * XQuery 1.0 and XPath 2.0 Data Model (XDM)
+  * XQuery 1.0 and XPath 2.0 Formal Semantics
+  * XQuery 1.0 and XPath 2.0 Functions and Operators
+  * XQuery 1.0: An XML Query Language
+  * XSL Transformations (XSLT) Version 1.0
+  * XSL Transformations (XSLT) Version 2.0
+  * XSLT 2.0 and XQuery 1.0 Serialization
+  * xml:id Version 1.0
--- w3-recs-20080716.orig/debian/control
+++ w3-recs-20080716/debian/control
@@ -0,0 +1,143 @@
+Source: w3-recs
+Build-Depends: debhelper (>= 5.0.0), cdbs, dpatch
+Build-Depends-Indep: xsltproc, libxml2-utils
+Section: non-free/doc
+Priority: optional
+Maintainer: Stefano Zacchiroli <zack@debian.org>
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/w3-recs/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/collab-maint/deb-maint/w3-recs/trunk/
+Homepage: http://www.w3.org
+
+Package: w3-recs
+Architecture: all
+Recommends: www-browser
+Description: Recommendations of the World Wide Web Consortium (W3C)
+ This package includes the Recommendations produced by the World Wide
+ Web Consortium (W3C) standardization body in HTML format.
+ .
+ The included Recommendations are:
+ .
+  * Architecture of the World Wide Web, Volume One
+  * Associating Style Sheets with XML documents
+  * Authoring Tool Accessibility Guidelines 1.0
+  * Canonical XML Version 1.0
+  * Canonical XML Version 1.1
+  * Cascading Style Sheets (CSS1) Level 1 Specification
+  * Cascading Style Sheets, level 2 (CSS2) Specification
+  * Character Model for the World Wide Web 1.0: Fundamentals
+  * Composite Capability/Preference Profiles (CC/PP): Structure and Vocabularies 1.0
+  * Decryption Transform for XML Signature
+  * Document Object Model (DOM) Level 1
+  * Document Object Model (DOM) Level 2 Core Specification
+  * Document Object Model (DOM) Level 2 Events Specification
+  * Document Object Model (DOM) Level 2 HTML Specification
+  * Document Object Model (DOM) Level 2 Style Specification
+  * Document Object Model (DOM) Level 2 Traversal and Range Specification
+  * Document Object Model (DOM) Level 2 Views Specification
+  * Document Object Model (DOM) Level 3 Core Specification
+  * Document Object Model (DOM) Level 3 Load and Save Specification
+  * Document Object Model (DOM) Level 3 Validation Specification
+  * Exclusive XML Canonicalization Version 1.0
+  * Extensible Markup Language (XML) 1.0 (Fourth Edition)
+  * Extensible Markup Language (XML) 1.1 (Second Edition)
+  * Extensible Stylesheet Language (XSL) Version 1.0
+  * Extensible Stylesheet Language (XSL) Version 1.1
+  * GRDDL Test Cases
+  * Gleaning Resource Descriptions from Dialects of Languages (GRDDL)
+  * HTML 3.2 Reference Specification
+  * HTML 4.0 Specification
+  * HTML 4.01 Specification
+  * Internationalization Tag Set (ITS) Version 1.0
+  * Mathematical Markup Language (MathML) 1.01 Specification
+  * Mathematical Markup Language (MathML) Version 2.0 (Second Edition)
+  * Mobile SVG Profiles: SVG Tiny and SVG Basic
+  * Namespaces in XML 1.0 (Second Edition)
+  * Namespaces in XML 1.1 (Second Edition)
+  * OWL Web Ontology Language Guide
+  * OWL Web Ontology Language Overview
+  * OWL Web Ontology Language Reference
+  * OWL Web Ontology Language Semantics and Abstract Syntax
+  * OWL Web Ontology Language Test Cases
+  * OWL Web Ontology Language Use Cases and Requirements
+  * PICS 1.1 Label Distribution -- Label Syntax and Communication Protocols
+  * PICS 1.1 Rating Services and Rating Systems -- and Their Machine Readable Descriptions
+  * PICS Signed Labels (DSig) 1.0 Specification
+  * PICSRules 1.1 Specification
+  * Portable Network Graphics (PNG) Specification (Second Edition)
+  * QA Framework: Specification Guidelines
+  * RDF Primer
+  * RDF Semantics
+  * RDF Test Cases
+  * RDF Vocabulary Description Language 1.0: RDF Schema
+  * RDF/XML Syntax Specification (Revised)
+  * Resource Description Framework (RDF) Model and Syntax Specification
+  * Resource Description Framework (RDF): Concepts and Abstract Syntax
+  * Resource Representation SOAP Header Block
+  * Ruby Annotation
+  * SMIL Animation
+  * SOAP Message Transmission Optimization Mechanism
+  * SOAP Version 1.2 Part 0: Primer (Second Edition)
+  * SOAP Version 1.2 Part 1: Messaging Framework (Second Edition)
+  * SOAP Version 1.2 Part 2: Adjuncts (Second Edition)
+  * SOAP Version 1.2 Specification Assertions and Test Collection (Second Edition)
+  * SPARQL Protocol for RDF
+  * SPARQL Query Language for RDF
+  * SPARQL Query Results XML Format
+  * Scalable Vector Graphics (SVG) 1.0 Specification
+  * Scalable Vector Graphics (SVG) 1.1 Specification
+  * Semantic Annotations for WSDL and XML Schema
+  * Semantic Interpretation for Speech Recognition (SISR) Version 1.0
+  * Speech Recognition Grammar Specification Version 1.0
+  * Speech Synthesis Markup Language (SSML) Version 1.0
+  * Synchronized Multimedia Integration Language (SMIL 2.0) - [Second Edition]
+  * Synchronized Multimedia Integration Language (SMIL 2.1)
+  * Synchronized Multimedia Integration Language (SMIL) 1.0 Specification
+  * The Platform for Privacy Preferences 1.0 (P3P1.0) Specification
+  * User Agent Accessibility Guidelines 1.0
+  * Voice Extensible Markup Language (VoiceXML) 2.1
+  * Voice Extensible Markup Language (VoiceXML) Version 2.0
+  * Web Content Accessibility Guidelines 1.0
+  * Web Services Addressing 1.0 - Core
+  * Web Services Addressing 1.0 - Metadata
+  * Web Services Addressing 1.0 - SOAP Binding
+  * Web Services Description Language (WSDL) Version 2.0 Part 0: Primer
+  * Web Services Description Language (WSDL) Version 2.0 Part 1: Core Language
+  * Web Services Description Language (WSDL) Version 2.0 Part 2: Adjuncts
+  * Web Services Policy 1.5 - Attachment
+  * Web Services Policy 1.5 - Framework
+  * WebCGM 1.0 Second Release
+  * WebCGM 2.0
+  * XForms 1.0 (Third Edition)
+  * XHTML-Print
+  * XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition)
+  * XHTML™ 1.1 - Module-based XHTML
+  * XHTML™ Basic
+  * XML Base
+  * XML Encryption Syntax and Processing
+  * XML Events
+  * XML Inclusions (XInclude) Version 1.0 (Second Edition)
+  * XML Information Set (Second Edition)
+  * XML Key Management Specification (XKMS 2.0)
+  * XML Key Management Specification (XKMS 2.0) Bindings
+  * XML Linking Language (XLink) Version 1.0
+  * XML Path Language (XPath) 2.0
+  * XML Path Language (XPath) Version 1.0
+  * XML Schema Part 0: Primer Second Edition
+  * XML Schema Part 1: Structures Second Edition
+  * XML Schema Part 2: Datatypes Second Edition
+  * XML Signature Syntax and Processing (Second Edition)
+  * XML Syntax for XQuery 1.0 (XQueryX)
+  * XML-Signature XPath Filter 2.0
+  * XML-binary Optimized Packaging
+  * XPointer Framework
+  * XPointer element() Scheme
+  * XPointer xmlns() Scheme
+  * XQuery 1.0 and XPath 2.0 Data Model (XDM)
+  * XQuery 1.0 and XPath 2.0 Formal Semantics
+  * XQuery 1.0 and XPath 2.0 Functions and Operators
+  * XQuery 1.0: An XML Query Language
+  * XSL Transformations (XSLT) Version 1.0
+  * XSL Transformations (XSLT) Version 2.0
+  * XSLT 2.0 and XQuery 1.0 Serialization
+  * xml:id Version 1.0
--- w3-recs-20080716.orig/debian/w3-recs.links
+++ w3-recs-20080716/debian/w3-recs.links
@@ -0,0 +1 @@
+/usr/share/doc/w3-recs/html /usr/share/devhelp/books/w3-recs
--- w3-recs-20080716.orig/debian/w3-recs.dirs
+++ w3-recs-20080716/debian/w3-recs.dirs
@@ -0,0 +1 @@
+/usr/share/doc/w3-recs/html
--- w3-recs-20080716.orig/debian/scripts/gc
+++ w3-recs-20080716/debian/scripts/gc
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+use strict;
+my %dirs;
+foreach my $dir (<RECs/*>) {  # dirs we had in the past
+  $dir =~ s|^RECs/||;
+  $dirs{$dir} = 1;
+}
+foreach my $id (@ARGV) {  # dirs corresponding to registered TRs
+  delete $dirs{$id} if exists $dirs{$id};
+}
+foreach my $dir (keys %dirs) {	# remaining stuff is garbage
+  die "assertion error, \$dir can't be empty" if $dir eq "";
+  my $fname = "RECs/$dir";
+  print "collecting garbage: $fname\n";
+  system "rm -rf $fname";
+}
--- w3-recs-20080716.orig/debian/scripts/multiplex
+++ w3-recs-20080716/debian/scripts/multiplex
@@ -0,0 +1,20 @@
+#!/usr/bin/perl -w
+use strict;
+
+my $prefix = shift or die "Usage: multiplex PATH_PREFIX\n";
+
+my $file = "";
+open OUT, "> /dev/null";
+while (my $line = <>) {
+  chomp $line;
+  if ($line =~ /^<+\s*(\S+)\s*<+$/) {
+    close OUT;
+    $file = lc("$prefix$1");
+    open OUT, "> $file" or die "Can't open output file '$file'\n";
+  } else {
+    die "No output file specified.\n" unless $file;
+    print OUT "$line\n";
+  }
+}
+close OUT;
+
--- w3-recs-20080716.orig/debian/xsl/grep-ids.xsl
+++ w3-recs-20080716/debian/xsl/grep-ids.xsl
@@ -0,0 +1,28 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output method="text" />
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <xsl:for-each select="exslt:node-set($trs)/*">  <!-- project on ID and output -->
+      <xsl:call-template name="id_of_tr">
+	<xsl:with-param name="rec" select="." />
+      </xsl:call-template>
+      <xsl:text>&#x0A;</xsl:text>
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/gen-devhelp.xsl
+++ w3-recs-20080716/debian/xsl/gen-devhelp.xsl
@@ -0,0 +1,44 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:str="http://exslt.org/strings"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output mode="xml" encoding="utf-8" />
+
+  <xsl:param name="version"></xsl:param>
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <book title="W3C Recommendations" name="W3C Recs" version="{$version}" link="index.html">
+      <chapters>
+        <xsl:apply-templates select="exslt:node-set($trs)/*">
+	  <xsl:sort select="normalize-space(dc:title)" />
+	</xsl:apply-templates>
+      </chapters>
+    </book>
+  </xsl:template>
+
+  <xsl:template match="rec:REC">
+    <xsl:variable name="title">
+      <xsl:call-template name="title_of_tr">
+        <xsl:with-param name="rec" select="." />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:variable name="docpath">
+      <xsl:call-template name="path_of_tr">
+        <xsl:with-param name="rec" select="." />
+        <xsl:with-param name="basepath" select="'.'" />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <sub link="{str:replace($docpath, './html/', '')}index.html" name="{$title}" />
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/deb-gen-install.xsl
+++ w3-recs-20080716/debian/xsl/deb-gen-install.xsl
@@ -0,0 +1,39 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output method="text" />
+
+  <xsl:param name="basepath"></xsl:param>
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <xsl:for-each select="exslt:node-set($trs)/*">
+      <xsl:variable name="id">
+        <xsl:call-template name="id_of_tr">
+          <xsl:with-param name="rec" select="." />
+        </xsl:call-template>
+      </xsl:variable>
+
+      <xsl:text>RECs/</xsl:text>
+      <xsl:value-of select="$id" />
+      <xsl:text>/</xsl:text>
+      <xsl:text>&#x09;</xsl:text> <!-- TAB -->
+      <xsl:value-of select="$basepath" />
+      <xsl:text>/</xsl:text>
+      <xsl:text>&#x0A;</xsl:text>
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/grep-urls.xsl
+++ w3-recs-20080716/debian/xsl/grep-urls.xsl
@@ -0,0 +1,32 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output method="text" />
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <xsl:for-each select="exslt:node-set($trs)/*">  <!-- project on URL and output -->
+      <xsl:variable name="url">
+        <xsl:value-of select="@rdf:about" />
+      </xsl:variable>
+      <xsl:value-of select="$url" />
+      <xsl:if test="substring($url, string-length($url), 1) != '/'">  <!-- add trailing "/" if needed -->
+        <xsl:text>/</xsl:text>
+      </xsl:if>
+      <xsl:text>&#x0A;</xsl:text>
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/deb-gen-doc-base.xsl
+++ w3-recs-20080716/debian/xsl/deb-gen-doc-base.xsl
@@ -0,0 +1,85 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output method="text" />
+
+  <xsl:param name="basepath"></xsl:param>
+  <xsl:param name="section"></xsl:param>
+  <xsl:param name="format"></xsl:param>
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <xsl:apply-templates select="exslt:node-set($trs)/*" />
+  </xsl:template>
+
+  <xsl:template match="rec:REC">
+    <xsl:variable name="id">
+      <xsl:call-template name="id_of_tr">
+        <xsl:with-param name="rec" select="." />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <!-- lower case version of $id
+         needed because doc-base Document IDs can't contain upper case letters -->
+    <xsl:variable name="lid">
+      <xsl:value-of select="translate($id,
+	'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')" />
+    </xsl:variable>
+
+    <xsl:variable name="title">
+      <xsl:call-template name="title_of_tr">
+        <xsl:with-param name="rec" select="." />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:variable name="editors">
+      <xsl:call-template name="editors_of_tr">
+        <xsl:with-param name="rec" select="." />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:variable name="docpath">
+      <xsl:call-template name="path_of_tr">
+	<xsl:with-param name="rec" select="." />
+	<xsl:with-param name="basepath" select="$basepath" />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:text>&lt;&lt;&lt;&lt; </xsl:text>  <!-- cut marker -->
+    <xsl:value-of select="$lid" />
+    <xsl:text> &lt;&lt;&lt;&lt;</xsl:text>
+    <xsl:text>&#x0A;</xsl:text>
+
+    <xsl:text>Document: w3-recs-</xsl:text> <xsl:value-of select="$lid" /> <xsl:text>&#x0A;</xsl:text>
+    <xsl:text>Title: </xsl:text> <xsl:value-of select="$title" /> <xsl:text>&#x0A;</xsl:text>
+    <xsl:text>Author: </xsl:text> <xsl:value-of select="$editors" /> <xsl:text>&#x0A;</xsl:text>
+    <xsl:text>Section: </xsl:text> <xsl:value-of select="$section" /> <xsl:text>&#x0A;</xsl:text>
+    <xsl:text>&#x0A;</xsl:text>
+
+    <xsl:text>Format: </xsl:text> <xsl:value-of select="$format" /> <xsl:text>&#x0A;</xsl:text>
+
+    <xsl:text>Index: </xsl:text>
+    <xsl:value-of select="$docpath" />
+    <xsl:text>index.html</xsl:text>
+    <xsl:text>&#x0A;</xsl:text>
+
+    <xsl:text>Files: </xsl:text>
+    <xsl:value-of select="$docpath" />
+    <xsl:text>*</xsl:text>
+    <xsl:text>&#x0A;</xsl:text>
+
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/deb-control-index.xsl
+++ w3-recs-20080716/debian/xsl/deb-control-index.xsl
@@ -0,0 +1,39 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output method="text" />
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <xsl:variable name="entries"> <!-- (wrapped) rendered index entries -->
+      <xsl:for-each select="exslt:node-set($trs)/*">
+        <xsl:element name="wrapper">
+          <xsl:text>  * </xsl:text>
+          <xsl:call-template name="title_of_tr">
+            <xsl:with-param name="rec" select="." />
+          </xsl:call-template>
+          <xsl:text>&#x0A;</xsl:text>
+        </xsl:element>
+      </xsl:for-each>
+    </xsl:variable>
+
+    <!-- sort and output -->
+    <xsl:for-each select="exslt:node-set($entries)/*">
+      <xsl:sort />
+      <xsl:value-of select="." />
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/gen-html-index.xsl
+++ w3-recs-20080716/debian/xsl/gen-html-index.xsl
@@ -0,0 +1,64 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:exslt="http://exslt.org/common"
+    xmlns:str="http://exslt.org/strings"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#"
+    xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:html="http://www.w3.org/1999/xhtml">
+
+  <xsl:import href="w3-tr-lib.xsl" />
+  <xsl:output mode="xml" encoding="utf-8" />
+
+  <xsl:param name="basepath"></xsl:param>
+
+  <xsl:template match="/">
+    <xsl:variable name="trs"> <!-- selected technical reports -->
+      <xsl:call-template name="find_trs" />
+    </xsl:variable>
+
+    <html>
+      <head>
+        <title>W3C Recommendation List</title>
+      </head>
+      <body>
+        <p>Below you can find a list of the <a
+            href="http://www.w3.org">W3C</a> recommendations installed on this
+          system.</p>
+        <ul>
+        <xsl:apply-templates select="exslt:node-set($trs)/*">
+	  <xsl:sort select="normalize-space(dc:title)" />
+	</xsl:apply-templates>
+        </ul>
+      </body>
+    </html>
+
+  </xsl:template>
+
+  <xsl:template match="rec:REC">
+    <xsl:variable name="title">
+      <xsl:call-template name="title_of_tr">
+        <xsl:with-param name="rec" select="." />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <xsl:variable name="docpath">
+      <xsl:call-template name="path_of_tr">
+        <xsl:with-param name="rec" select="." />
+        <xsl:with-param name="basepath" select="'.'" />
+      </xsl:call-template>
+    </xsl:variable>
+
+    <li>
+      <a href="{str:replace($docpath, './html/', '')}index.html">
+	<xsl:value-of select="$title" />
+      </a>
+    </li>
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/xsl/w3-tr-lib.xsl
+++ w3-recs-20080716/debian/xsl/w3-tr-lib.xsl
@@ -0,0 +1,78 @@
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:str="http://exslt.org/strings"
+    xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
+    xmlns:dc="http://purl.org/dc/elements/1.1/"
+    xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
+    xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
+    xmlns:org="http://www.w3.org/2001/04/roadmap/org#"
+    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+    xmlns:rec="http://www.w3.org/2001/02pd/rec54#">
+
+    <!-- node deep copy -->
+  <xsl:template name="deep_copy">
+    <xsl:copy>
+      <xsl:for-each select="@*|node()">
+        <xsl:call-template name="deep_copy" />
+      </xsl:for-each>
+    </xsl:copy>
+  </xsl:template>
+
+    <!-- implement the policy of selecting which TRs we are interested in. ATM
+    we keep Recommendations (rec:REC elements) and throw away the rest -->
+  <xsl:template name="find_trs">
+    <xsl:for-each select="//rec:REC">
+      <xsl:call-template name="deep_copy" />
+    </xsl:for-each>
+  </xsl:template>
+
+    <!-- extract an unique identifier for a given TR element. Current policy is
+    to use the last part of the URL, so for a TR with
+    rdf:about="http://www.w3.org/TR/2004/REC-xml11-20040204" the id will be
+    "REC-xml11-20040204" -->
+  <xsl:template name="id_of_tr">
+    <xsl:param name="rec"></xsl:param>
+    <!-- "http://www.w3.org/TR/2004/REC-xml11-20040204" -> ("REC", "xml11", "20040204") -->
+    <xsl:variable name="pieces" select="str:tokenize(
+        str:tokenize($rec/@rdf:about, '/')[position()=last()],
+        '-')" />
+    <xsl:for-each select="$pieces"> <!-- concatenate pieces with '-' -->
+      <xsl:value-of select="string(.)" />
+      <xsl:if test="position()!=last()">
+        <xsl:text>-</xsl:text>
+      </xsl:if>
+    </xsl:for-each>
+  </xsl:template>
+
+    <!-- given a technical report element filter on its title normalizing the
+    value -->
+  <xsl:template name="title_of_tr">
+    <xsl:param name="rec"></xsl:param>
+    <xsl:value-of select="normalize-space($rec/dc:title)" />
+  </xsl:template>
+
+  <xsl:template name="path_of_tr">
+    <xsl:param name="rec"></xsl:param>
+    <xsl:param name="basepath"></xsl:param>
+    <xsl:variable name="path">
+      <xsl:value-of select="$basepath" />
+      <xsl:text>/html/</xsl:text>
+      <xsl:value-of select="substring-after($rec/@rdf:about, 'http://')" />
+    </xsl:variable>
+    <xsl:value-of select="$path" />
+    <xsl:if test="substring($path, string-length($path), 1) != '/'">  <!-- add trailing "/" if needed -->
+      <xsl:text>/</xsl:text>
+    </xsl:if>
+  </xsl:template>
+
+  <xsl:template name="editors_of_tr">
+    <xsl:param name="rec"></xsl:param>
+    <xsl:for-each select="$rec/rec:editor/contact:fullName">
+      <xsl:value-of select="string(.)" />
+      <xsl:if test="position()!=last()">
+        <xsl:text>, </xsl:text>
+      </xsl:if>
+    </xsl:for-each>
+  </xsl:template>
+
+</xsl:stylesheet>
--- w3-recs-20080716.orig/debian/patches/00dpatch.conf
+++ w3-recs-20080716/debian/patches/00dpatch.conf
@@ -0,0 +1,2 @@
+conf_debianonly=1
+conf_origtargzpath=../tarballs
--- w3-recs-20080716.orig/debian/patches/00list
+++ w3-recs-20080716/debian/patches/00list
@@ -0,0 +1,2 @@
+rec-dom2-html-url.dpatch
+css-local-images.dpatch
--- w3-recs-20080716.orig/debian/patches/css-local-images.dpatch
+++ w3-recs-20080716/debian/patches/css-local-images.dpatch
@@ -0,0 +1,70 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## css-local-images.dpatch by Stefano Zacchiroli <zack@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix logo URLs of the background image so that they are relative and
+## DP: hence browsable offline
+
+@DPATCH@
+diff -urNad trunk~/www.w3.org/StyleSheets/TR/W3C-PER trunk/www.w3.org/StyleSheets/TR/W3C-PER
+--- trunk~/www.w3.org/StyleSheets/TR/W3C-PER	2007-09-16 21:04:30.000000000 +0200
++++ trunk/www.w3.org/StyleSheets/TR/W3C-PER	2007-09-16 22:57:57.000000000 +0200
+@@ -88,5 +88,5 @@
+    http://www.w3.org/Consortium/Legal/copyright-software */
+ 
+ body {
+-  background-image: url(http://www.w3.org/StyleSheets/TR/logo-PER);
++  background-image: url(logo-PER);
+ }
+diff -urNad trunk~/www.w3.org/StyleSheets/TR/W3C-PER.css trunk/www.w3.org/StyleSheets/TR/W3C-PER.css
+--- trunk~/www.w3.org/StyleSheets/TR/W3C-PER.css	2007-09-16 21:04:30.000000000 +0200
++++ trunk/www.w3.org/StyleSheets/TR/W3C-PER.css	2007-09-16 22:58:23.000000000 +0200
+@@ -88,5 +88,5 @@
+    http://www.w3.org/Consortium/Legal/copyright-software */
+ 
+ body {
+-  background-image: url(http://www.w3.org/StyleSheets/TR/logo-PER);
++  background-image: url(logo-PER);
+ }
+diff -urNad trunk~/www.w3.org/StyleSheets/TR/W3C-REC trunk/www.w3.org/StyleSheets/TR/W3C-REC
+--- trunk~/www.w3.org/StyleSheets/TR/W3C-REC	2007-09-16 21:04:31.000000000 +0200
++++ trunk/www.w3.org/StyleSheets/TR/W3C-REC	2007-09-16 22:58:30.000000000 +0200
+@@ -84,6 +84,6 @@
+ 
+ 
+ body {
+-  background-image: url(http://www.w3.org/StyleSheets/TR/logo-REC);
++  background-image: url(logo-REC);
+ }
+ 
+diff -urNad trunk~/www.w3.org/StyleSheets/TR/W3C-REC.css trunk/www.w3.org/StyleSheets/TR/W3C-REC.css
+--- trunk~/www.w3.org/StyleSheets/TR/W3C-REC.css	2007-09-16 21:04:31.000000000 +0200
++++ trunk/www.w3.org/StyleSheets/TR/W3C-REC.css	2007-09-16 22:58:37.000000000 +0200
+@@ -84,6 +84,6 @@
+ 
+ 
+ body {
+-  background-image: url(http://www.w3.org/StyleSheets/TR/logo-REC);
++  background-image: url(logo-REC);
+ }
+ 
+diff -urNad trunk~/www.w3.org/StyleSheets/TR/W3C-WD trunk/www.w3.org/StyleSheets/TR/W3C-WD
+--- trunk~/www.w3.org/StyleSheets/TR/W3C-WD	2007-09-16 21:04:31.000000000 +0200
++++ trunk/www.w3.org/StyleSheets/TR/W3C-WD	2007-09-16 22:58:45.000000000 +0200
+@@ -84,5 +84,5 @@
+ 
+ 
+ body {
+-  background-image: url(http://www.w3.org/StyleSheets/TR/logo-WD);
++  background-image: url(logo-WD);
+ }
+diff -urNad trunk~/www.w3.org/StyleSheets/TR/W3C-WD.css trunk/www.w3.org/StyleSheets/TR/W3C-WD.css
+--- trunk~/www.w3.org/StyleSheets/TR/W3C-WD.css	2007-09-16 21:04:35.000000000 +0200
++++ trunk/www.w3.org/StyleSheets/TR/W3C-WD.css	2007-09-16 22:58:51.000000000 +0200
+@@ -84,5 +84,5 @@
+ 
+ 
+ body {
+-  background-image: url(http://www.w3.org/StyleSheets/TR/logo-WD);
++  background-image: url(logo-WD);
+ }
--- w3-recs-20080716.orig/debian/patches/rec-dom2-html-url.dpatch
+++ w3-recs-20080716/debian/patches/rec-dom2-html-url.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## rec-dom2-html-url.dpatch by Stefano Zacchiroli <zack@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix URL of DOM Level 2 HTML REC to avoid HTTP redirections
+
+@DPATCH@
+diff -urNad trunk~/tr.rdf trunk/tr.rdf
+--- trunk~/tr.rdf	2007-09-15 17:31:07.000000000 +0200
++++ trunk/tr.rdf	2007-09-15 19:32:37.000000000 +0200
+@@ -3253,7 +3253,7 @@
+         </org:deliveredBy>
+     </NOTE>
+ 
+-    <REC rdf:about="http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030107">
++    <REC rdf:about="http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109">
+         <dc:date>2003-01-09</dc:date>
+         <dc:title>Document Object Model (DOM) Level 2 HTML
+ Specification</dc:title>