<?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;)//book[((./publisher = &quot;Addison-Wesley&quot;) AND (./@year = &quot;1991&quot;))]"><xslt:variable select="current()" name="b"/><xslt:sort select="$b/title"/><book><xslt:apply-templates select="$b/@year"/><xslt:apply-templates select="$b/title"/></book></xslt:for-each></bib>
</xslt:template>
</xslt:transform>
