All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xslt.speaker-notes.xsl Maven / Gradle / Ivy















  
</xsl:variable>

<!-- ============================================================ -->

<xsl:template match="db:article" mode="m:docbook">
  <xsl:variable name="notes"
                select="*[contains-token(@role, 'speaker-notes')]"/>
  <div>
    <xsl:apply-templates select="." mode="m:attributes"/>
    <div class="foil">
    <xsl:apply-templates select="." mode="m:generate-titlepage"/>
    <xsl:apply-templates select="." mode="m:toc"/>
    <xsl:apply-templates select="node() except $notes" mode="m:docbook"/>
    </div>
    <div class="speaker-notes">
      <div class="foil-wrapper">
        <div class="foil">
          <xsl:apply-templates select="." mode="m:generate-titlepage"/>
          <xsl:apply-templates select="." mode="m:toc"/>
          <xsl:apply-templates select="node() except $notes" mode="m:docbook"/>
        </div>
      </div>
      <div class="notes">
        <xsl:apply-templates select="$notes" mode="m:docbook"/>
      </div>
    </div>
  </div>
</xsl:template>

<xsl:template match="db:article" mode="m:attributes" as="attribute()*">
  <xsl:variable name="class" select="QName('', 'class')"/>
  <xsl:variable name="attr" as="attribute()*">
    <xsl:next-match/>
  </xsl:variable>
  <xsl:for-each select="$attr">
    <xsl:choose>
      <xsl:when test="node-name(.) = $class">
        <xsl:attribute name="class" select="'foil ' || string(.)"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:sequence select="."/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:for-each>
</xsl:template>

<xsl:template match="db:article" mode="m:toc">
  <xsl:param name="nested" select="false()"/>
  <xsl:apply-templates select="." mode="mp:toc">
    <xsl:with-param name="nested" select="$nested"/>
    <xsl:with-param name="entries" select="()"/>
  </xsl:apply-templates>
</xsl:template>

<!-- ============================================================ -->

<xsl:template match="*" mode="m:html-head-links">
  <link rel="stylesheet" href="css/speaker-notes.css"/>
  <xsl:next-match/>
</xsl:template>

</xsl:stylesheet>
</code></pre>    <br/>
    <br/>
<div class='clear'></div>
<!--
    <aside class="related-items">
        <section>
            <div class="panel panel-primary">
                <div class="panel-heading margin-bottom">Related Artifacts</div>
                <div class="">
                                    </div>
            </div>
        </section>
        <section>
            <div class="panel panel-primary">
                <div class="panel-heading margin-bottom">Related Groups</div>
                <div class="">
                                    </div>
            </div>
        </section>
    </aside>
    <div class='clear'></div>
--></main>
</div>
<br/><br/>
    <div class="align-center">© 2015 - 2025 <a href="/legal-notice.php">Weber Informatics LLC</a> | <a href="/data-protection.php">Privacy Policy</a></div>
<br/><br/><br/><br/><br/><br/>
</body>
</html>