1. Shlomi Fish
  2. perl-begin


Shlomi Fish  committed bcd9298 Merge

Merge commit from trying_to_implement_full_page.

Implement the full_page functionality.

  • Participants
  • Parent commits 14417de, f174ff2
  • Branches default

Comments (0)

Files changed (4)

File lib/sgml/shlomif-docbook/xsl-5-stylesheets/mychunk.xsl

View file
  • Ignore whitespace
      chunking templates in chunk-common.xsl. -->
 <xsl:import href="chunk-common.xsl"/>
-<xsl:import href="onechunk.xsl" />
 <!-- The manifest.xsl module is no longer imported because its
      templates were moved into chunk-common and chunk-code -->
      non-chunking version to format an element.  -->
 <xsl:include href="chunk-code.xsl"/>

File lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-db5-xhtml-mydocbook.xsl

View file
  • Ignore whitespace
     <xsl:import href="shlomif-essays-5-xhtml-common.xsl" />
+    <!-- Ok, using the onechunk parameter makes this all work again. -->
+    <!-- It does have the disadvantage that it only works for documents that have -->
+    <!-- a root element that is considered a chunk by the chunk.xsl stylesheet. -->
+    <!-- Ideally, onechunk would let anything be a chunk. But not today. -->
+    <xsl:param name="onechunk" select="1"/>
+    <xsl:param name="suppress.navigation">1</xsl:param>
+    <xsl:template name="href.target.uri">
+        <xsl:param name="object" select="."/>
+        <xsl:text>#</xsl:text>
+        <xsl:call-template name="object.id">
+            <xsl:with-param name="object" select="$object"/>
+        </xsl:call-template>
+    </xsl:template>
     <!-- Avoid Generating a Table-of-Contents-->
     <xsl:param name="generate.toc">
         article toc
 <xsl:template name="generate.html.title">
 <xsl:template match="d:article" priority="1">
     <xsl:call-template name="id.warning"/>
         <xsl:call-template name="process.footnotes"/>

File lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-xhtml-common.xsl

View file
  • Ignore whitespace
+    <xsl:import href="docbook.xsl"/>
          Commented out because it does not work properly.
     <xsl:template name="anchor">

File src/tutorials/bad-elements/perl-elements-to-avoid.xml-grammar-vered.xml

View file
  • Ignore whitespace
 <?xml version="1.0" encoding="utf-8"?>
-<document xmlns="http://www.shlomifish.org/open-source/projects/XML-Grammar/Vered/" xmlns:xlink="http://www.w3.org/1999/xlink" version="0.2.0" xml:lang="en-GB">
+<document xmlns="http://www.shlomifish.org/open-source/projects/XML-Grammar/Vered/" xmlns:xlink="http://www.w3.org/1999/xlink" version="0.2.0" xml:lang="en-GB" xml:id="index">
 <title>Perl Elements to Avoid</title>