topical media & game development

talk show tell print

professional-ajax-04-XSLT-IE-AddParameterBooks.xsl / xsl



  <?xml version="1.0" encoding="UTF-8" ?>
  
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" />
    <xsl:param name="message" />
    <xsl:template match="/">
  
      <html>
        <head>
          <link rel="stylesheet" type="text/css" href="books.css" />
          <title></title>
        </head>
        <body>
          <div align="center">
            <b>
              <xsl:value-of select="message" />
            </b>
          </div>
          <xsl:apply-templates />
        </body>
      </html>
  
    </xsl:template>
  
    <xsl:template match="book">
      <div class="bookContainer">
        <xsl:variable name="isbn" select="@isbn" />
        <xsl:variable name="title" select="title" />
        <img class="bookCover" alt="title" src="images/{isbn}.png" />
        <div class="bookContent">
          <h3>
            <xsl:value-of select="title" />
          </h3>
          Written by: <xsl:value-of select="author" /><br />
          ISBN #<xsl:value-of select="isbn" />
          <div class="bookPublisher">
            <xsl:value-of select="publisher" />
          </div>
        </div>
      </div>
    </xsl:template>
  
  </xsl:stylesheet>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.