<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="booklist.xml" --><!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:param name="pub" select="'friends of Ed'"/>
<xsl:template match="/"><table width="80%" cellpadding="4">
  <tr>
    <th scope="col">Title</th>
    <th scope="col">Author(s)</th>
    <th scope="col">Publisher</th>
    <th scope="col">ISBN13</th>
    <th scope="col">Price</th>
  </tr>
  <xsl:for-each select="BookList/Book[Publisher = $pub]">
  <xsl:sort select="Publisher" order="descending"/>
  <xsl:sort select="Title"/>
    <tr>
      <td><xsl:value-of select="Title"/></td>
      <td><xsl:for-each select="Authors/Author">
        <xsl:choose>
          <xsl:when test="position() &gt; 1 and position() !=last()">
            <xsl:text>, </xsl:text>
          </xsl:when>
          <xsl:when test="position() &gt; 1 and position() = last()">
            <xsl:text> &amp; </xsl:text>
          </xsl:when>
          <xsl:otherwise>
          </xsl:otherwise>
        </xsl:choose>
        <xsl:value-of select="."/>
      </xsl:for-each></td>
      <td><xsl:value-of select="Publisher"/></td>
      <td><xsl:value-of select="@ISBN13"/></td>
      <td><xsl:value-of select="format-number(ListPrice,'$#0.00')"/></td>
    </tr>
  </xsl:for-each>
  
</table>

</xsl:template>
</xsl:stylesheet>