diff options
author | Karl Berry <karl@freefriends.org> | 2013-09-09 23:18:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-09-09 23:18:09 +0000 |
commit | cca6c212e6dea3465d18bc3b250e327a1c417b28 (patch) | |
tree | a3a154074463963d0913eabe8a932a4fc83648ff /Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt | |
parent | e981cdbd1662ed82436259f1046987c5b7204f1a (diff) |
bibhtml (9sep13)
git-svn-id: svn://tug.org/texlive/trunk@31607 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt')
-rw-r--r-- | Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt b/Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt index 57ff5600725..0fd46ff6bd1 100644 --- a/Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt +++ b/Master/texmf-dist/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt @@ -2,8 +2,8 @@ <!-- ! bibhtml-extract-aux.xslt ! - ! Part of bibhtml, version 2.0.1, released 2009 November 2 - ! Hg node 6ca3807543d6. + ! Part of bibhtml, version 2.0.2, released 2013 September 8 + ! Hg node 7076ce83a035. ! See <http://purl.org/nxg/dist/bibhtml> ! ! This sample script processes an XML file which contains elements like @@ -12,39 +12,40 @@ ! appended, is suitable for processing with BibTeX. Adapt or extend as ! appropriate. !--> -<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" +<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" version="1.0" + xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="h" xmlns:h="http://www.w3.org/1999/xhtml"> - <output method="xml" + <x:output method="xml" version="1.0" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes"/> - <param name='bibfile-name'>bibliography</param> + <x:param name='bibfile-name'>bibliography</x:param> <!-- identity transform --> - <template match="*"> - <copy> - <copy-of select="@*"/> - <apply-templates/> - </copy> - </template> + <x:template match="*"> + <x:copy> + <x:copy-of select="@*"/> + <x:apply-templates/> + </x:copy> + </x:template> - <template match="h:span[@class='cite']"> - <h:a> - <attribute name='href'> - <text>#</text> - <copy-of select='.'/> - </attribute> - <copy-of select='.'/> - </h:a> - </template> + <x:template match="h:span[@class='cite']"> + <a> + <x:attribute name='href'> + <x:text>#</x:text> + <x:copy-of select='.'/> + </x:attribute> + <x:apply-templates/> + </a> + </x:template> - <template match='processing-instruction("bibliography")'> - <copy-of select='document(concat($bibfile-name,".bbl"))'/> - </template> -</stylesheet> + <x:template match='processing-instruction("bibliography")'> + <x:copy-of select='document(concat($bibfile-name,".bbl"))'/> + </x:template> +</x:stylesheet> |