Skip to content
Snippets Groups Projects
Commit 589b3c52 authored by Goik Martin's avatar Goik Martin
Browse files

Filtering bibliographies

parent 0576a446
No related branches found
No related tags found
No related merge requests found
/qanda.gen.xml
*~
/bibGloss.trans.xml
<?xml version="1.0" encoding="UTF-8"?>
<book version="5.0" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:db="http://docbook.org/ns/docbook">
<info>
<title/>
<author>
<personname><firstname/><surname/></personname>
<affiliation>
<orgname/>
</affiliation>
</author>
<pubdate/>
</info>
<chapter xml:id="intro">
<title>Introduction</title>
<section xml:id="java">
<title>Java programming</title>
<para>For a detailed description see <xref linkend="Bauer05"/>.</para>
</section>
<section xml:id="yetAnotherSection">
<title>Yet another section</title>
<para>See link <xref linkend="bibClarke09"/>.</para>
</section>
</chapter>
<xi:include href="../../../../bibliography.xml" xpointer="element(/1)"/>
</book>
......@@ -8,6 +8,7 @@
<xsl:param name="lastAnswerId" select="document('lastAnswerId.xml',/)/lastAnswer/@id" />
<xsl:key name="internRef" match="//*[@linkend]" use="@linkend"/>
<xsl:template match="@* | node()">
<xsl:copy>
......@@ -112,6 +113,13 @@
</xsl:if>
</xsl:template>
<!-- Bibliography of references entries -->
<xsl:template match="db:bibliography ">
<db:bibliography>
<xsl:apply-templates select="*[not(name(.) = 'biblioentry')]|db:biblioentry[key('internRef', @xml:id)]"/>
</db:bibliography>
</xsl:template>
<!-- make annotations -->
<xsl:template match="db:annotation[@role='make']">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment