<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" indent="no" doctype-system="http://www.w3.org/TR/html4/strict.dtd" doctype-public="-//W3C//DTD HTML 4.01//EN" encoding="utf-8" />

    <xsl:include href="/app/tools/bookpub/templates/global.xsl" />
    <xsl:include href="/app/tools/bookpub/templates/catalog/book_detail.xsl" />


    <xsl:template name="pickLayout">

        <xsl:call-template name="chapterView" />
        <xsl:call-template name="buttons" />  

    </xsl:template>


  <xsl:template name="submitButton">
        <input type="button" name="Cancel" value="Return to Book" onClick="location.href='catalog?BookID={Book/BookID}&amp;c=show_book'" />
  </xsl:template>

    <xsl:template name="cancelButton">
    </xsl:template>


    <xsl:template name="chapterView">

        <div class="section">
            <xsl:call-template name="successMessageGeneral">
                <xsl:with-param name="successMessage">Chapter successfully updated!</xsl:with-param>
            </xsl:call-template>
            <xsl:call-template name="bookDetailView">
                <xsl:with-param name="path" select="/Root/Book"></xsl:with-param>
            </xsl:call-template>
            <br /><br />
        </div>
        <div class="section">
            <xsl:call-template name="chapterDetailView">
              <xsl:with-param name="path" select="/Root/Chapter"></xsl:with-param>
            </xsl:call-template>
            <br /><br />
    
            <xsl:call-template name="chapterProductListView" />
            
     	    <br />
            <br />
        </div>
    </xsl:template>

</xsl:stylesheet>
