<?xml version="1.0"?>
<xslt:transform xmlns:xslt="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xslt:template match="@* | node()">
<xslt:copy>
<xslt:apply-templates select="@* | node()"/>
</xslt:copy>
</xslt:template>
<xslt:template match="/"><bib><xslt:for-each select="document(&quot;bib.xml&quot;)/bib/book"><xslt:variable select="current()" name="b"/><xslt:if test="(($b/publisher = &quot;Addison-Wesley&quot;) AND ($b/@year &gt; 1991))"><book><xslt:attribute name="year"><xslt:apply-templates select="$b/@year"/></xslt:attribute><xslt:apply-templates select="$b/title"/></book></xslt:if></xslt:for-each></bib>
</xslt:template>
</xslt:transform>
