<?xml version="1.0" encoding="utf-8"?>                   
<!--@+leo-->

<!--@+node:0::@file toc_sbooks.rdf.xsl-->
<!--@+body-->
<!--@@first<?xml version="1.0" encoding="utf-8"?>                   -->
<!--@@language html-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>

<xsl:variable name="homeURL">http://www.screenbooks.net/e</xsl:variable>
<xsl:variable name="bookshelfOptions" select="document('options.xml')"/>

<xsl:template match="/">
                                                         
<rdf:RDF                                                 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://purl.org/rss/1.0/"        
>                                                        
                                                                                            

<!--@<< channel >>-->
<!--@+node:1::<< channel >>-->
<!--@+body-->
<!--@@code-->

  <channel rdf:about="{$homeURL}/rss.rdf">
    <title><xsl:value-of select="$bookshelfOptions/options/bookshelfName" /></title>
    <description>
      <xsl:value-of select="$bookshelfOptions/options/description"/>
    </description>
    <link><xsl:value-of select="$homeURL"/></link>

    <items>
      <rdf:Seq>
      
        <xsl:for-each select="bookshelf/category">
          <xsl:for-each select="subcategory">
            <xsl:for-each select="format">
              <xsl:for-each select="sbook">
                <li>
                  <xsl:attribute name="rdf:resource"><xsl:value-of select="$homeURL"/>/<xsl:value-of select="../../../@name"/>/<xsl:value-of select="../../@name"/>/<xsl:value-of select="../@name"/>/<xsl:value-of select="title"/>/sbook.htm</xsl:attribute>
                </li>
              </xsl:for-each>
            </xsl:for-each>
          </xsl:for-each>
        </xsl:for-each>
            
      </rdf:Seq>
    </items>
  
  </channel>

<!--@-body-->
<!--@-node:1::<< channel >>-->


<!--@<< items >>-->
<!--@+node:2::<< items >>-->
<!--@+body-->
<!--@@code-->

  <xsl:for-each select="bookshelf/category">
    <xsl:for-each select="subcategory">
      <xsl:for-each select="format">
        <xsl:for-each select="sbook">
  
          <item rdf:about="{$homeURL}">
            <title><xsl:value-of select="alias"/></title>
            <link><xsl:value-of select="$homeURL"/>/<xsl:value-of select="../../../@name"/>/<xsl:value-of select="../../@name"/>/<xsl:value-of select="../@name"/>/<xsl:value-of select="title"/>/sbook.htm</link>
          </item>

        </xsl:for-each>
      </xsl:for-each>
    </xsl:for-each>
  </xsl:for-each>
<!--@-body-->
<!--@-node:2::<< items >>-->

                                                                                                       
</rdf:RDF>                                               

</xsl:template>
</xsl:stylesheet>


















<!--@-body-->
<!--@-node:0::@file toc_sbooks.rdf.xsl-->
<!--@-leo-->