topical media & game development

talk show tell print

professional-ajax-04-XSLT-books.xsl / xsl

  <?xml version="1.0" encoding="UTF-8" ?>
  <xsl:stylesheet version="1.0" xmlns:xsl="">
    <xsl:output method="html" omit-xml-declaration="yes" indent="yes" />
    <xsl:template match="/">
          <link rel="stylesheet" type="text/css" href="ie/books.css" />
          <title>XSL Transformations</title>
          <xsl:apply-templates />
    <xsl:template match="book">
      <div class="bookContainer">
        <xsl:variable name="varIsbn" select="@isbn" />
        <xsl:variable name="varTitle" select="title" />
        <img class="bookCover" alt="{varTitle}" src="ie/images/{varIsbn}.png" />
        <div class="bookContent">
            <xsl:value-of select="title" />
          Written by: <xsl:value-of select="author" /><br />
          ISBN #<xsl:value-of select="varIsbn" />
          <div class="bookPublisher">
            <xsl:value-of select="publisher" />

(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.