mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 06:15:47 +01:00
Make <toc/> tag explicit.
This commit is contained in:
@@ -115,14 +115,15 @@
|
|||||||
<!-- Table of Contents {{{1 -->
|
<!-- Table of Contents {{{1 -->
|
||||||
|
|
||||||
<xsl:template name="toc">
|
<xsl:template name="toc">
|
||||||
<xsl:param name="level"/>
|
<xsl:param name="level" select="1"/>
|
||||||
<xsl:param name="context"/>
|
<xsl:param name="context"/>
|
||||||
|
<xsl:param name="toc"/>
|
||||||
|
|
||||||
<xsl:variable name="tag" select="concat('h', $level)"/>
|
<xsl:variable name="tag" select="concat('h', $level)"/>
|
||||||
<xsl:variable name="lasttag" select="concat('h', $level - 1)"/>
|
<xsl:variable name="lasttag" select="concat('h', $level - 1)"/>
|
||||||
|
|
||||||
<xsl:variable name="nodes" select="//following-sibling::liberator:*[
|
<xsl:variable name="nodes" select="$toc/*[
|
||||||
local-name() = $tag and preceding-sibling::*[local-name() = $lasttag][position() = 1 and . = $context]]"/>
|
local-name() = $tag and not(preceding::*[local-name() = $lasttag][position() = 1 and not(.=$context)])]"/>
|
||||||
|
|
||||||
<xsl:if test="$nodes">
|
<xsl:if test="$nodes">
|
||||||
<html:ol liberator:highlight="HelpOrderedList">
|
<html:ol liberator:highlight="HelpOrderedList">
|
||||||
@@ -137,24 +138,37 @@
|
|||||||
<xsl:call-template name="toc">
|
<xsl:call-template name="toc">
|
||||||
<xsl:with-param name="level" select="$level + 1"/>
|
<xsl:with-param name="level" select="$level + 1"/>
|
||||||
<xsl:with-param name="context" select="."/>
|
<xsl:with-param name="context" select="."/>
|
||||||
|
<xsl:with-param name="toc" select="$toc"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</li>
|
</li>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</html:ol>
|
</html:ol>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="liberator:h1" mode="pass-2">
|
<xsl:template match="liberator:toc" mode="pass-2">
|
||||||
<xsl:copy>
|
<xsl:variable name="TOC">
|
||||||
<xsl:apply-templates select="@*|node()"/>
|
<context/>
|
||||||
</xsl:copy>
|
<xsl:for-each
|
||||||
<xsl:if test="not($root//liberator:h1[2])">
|
select="following::liberator:h1|following::liberator:h2|following::liberator:h3|following::liberator:h4|following::liberator:h5">
|
||||||
<!-- Makes :help all impossibly slow. Why? -->
|
<xsl:copy-of select="."/>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:variable name="toc" select="exsl:node-set($TOC)"/>
|
||||||
|
|
||||||
|
<xsl:if test="//liberator:toc[1 and self::*]">
|
||||||
<html:div liberator:highlight="HelpTOC">
|
<html:div liberator:highlight="HelpTOC">
|
||||||
<h2>Contents</h2>
|
<h2>Contents</h2>
|
||||||
<xsl:call-template name="toc">
|
<xsl:if test="@start">
|
||||||
<xsl:with-param name="level" select="2"/>
|
<xsl:call-template name="toc">
|
||||||
<xsl:with-param name="context" select="."/>
|
<xsl:with-param name="level" select="number(@start)"/>
|
||||||
</xsl:call-template>
|
<xsl:with-param name="toc" select="$toc"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:if>
|
||||||
|
<xsl:if test="not(@start)">
|
||||||
|
<xsl:call-template name="toc">
|
||||||
|
<xsl:with-param name="toc" select="$toc"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:if>
|
||||||
</html:div>
|
</html:div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<tags>all</tags>
|
<tags>all</tags>
|
||||||
|
|
||||||
|
<toc/>
|
||||||
|
|
||||||
<include href="intro" tag="intro.html"/>
|
<include href="intro" tag="intro.html"/>
|
||||||
<include href="starting" tag="starting.html"/>
|
<include href="starting" tag="starting.html"/>
|
||||||
<include href="browsing" tag="browsing.html"/>
|
<include href="browsing" tag="browsing.html"/>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="autocommands">Automatic commands</h1>
|
<h1 tag="autocommands">Automatic commands</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Autocommands are a way to automatically execute code when
|
Autocommands are a way to automatically execute code when
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="surfing browsing">Browsing</h1>
|
<h1 tag="surfing browsing">Browsing</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
&liberator.appname; overrides nearly all &liberator.host; keys in order to make browsing more
|
&liberator.appname; overrides nearly all &liberator.host; keys in order to make browsing more
|
||||||
pleasant for Vim users. On the rare occasions when you want to pass a keystroke
|
pleasant for Vim users. On the rare occasions when you want to pass a keystroke
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="buffer document">Buffer</h1>
|
<h1 tag="buffer document">Buffer</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
&liberator.appname; holds exactly one buffer object for each tab. It is usually an
|
&liberator.appname; holds exactly one buffer object for each tab. It is usually an
|
||||||
(X)HTML document with advanced features.
|
(X)HTML document with advanced features.
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="Command-line-mode Command-line mode-cmdline">Command-line mode</h1>
|
<h1 tag="Command-line-mode Command-line mode-cmdline">Command-line mode</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
Command-line mode is used to enter Ex commands (<k>:</k>) and text search patterns
|
Command-line mode is used to enter Ex commands (<k>:</k>) and text search patterns
|
||||||
(<k>/</k> and <k>?</k>).
|
(<k>/</k> and <k>?</k>).
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="developer-information">Developer information</h1>
|
<h1 tag="developer-information">Developer information</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<h2 tag="writing-docs documentation">Writing documentation</h2>
|
<h2 tag="writing-docs documentation">Writing documentation</h2>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="expression expr eval">Expression evaluation</h1>
|
<h1 tag="expression expr eval">Expression evaluation</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<!-- INTRO TO BE WRITTEN… -->
|
<!-- INTRO TO BE WRITTEN… -->
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="gui">&liberator.appname;'s GUI</h1>
|
<h1 tag="gui">&liberator.appname;'s GUI</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Although &liberator.appname; offers the most frequently used &liberator.host; functionality via
|
Although &liberator.appname; offers the most frequently used &liberator.host; functionality via
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="quick-hints hints">Hints</h1>
|
<h1 tag="quick-hints hints">Hints</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
Hints are the way in which &liberator.appname; allows you to follow links on a page. By
|
Hints are the way in which &liberator.appname; allows you to follow links on a page. By
|
||||||
providing each link with a suitable hint, you can access all links with a
|
providing each link with a suitable hint, you can access all links with a
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="index">Index</h1>
|
<h1 tag="index">Index</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
This file contains a list of all available commands, mappings and options.
|
This file contains a list of all available commands, mappings and options.
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="Insert-mode Insert mode-insert">Insert mode</h1>
|
<h1 tag="Insert-mode Insert mode-insert">Insert mode</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Insert mode is used to enter text in text boxes and text areas. When
|
Insert mode is used to enter text in text boxes and text areas. When
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1>Key mappings, abbreviations, and user-defined commands</h1>
|
<h1>Key mappings, abbreviations, and user-defined commands</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<h2 tag="key-mapping mapping map macro">Key mapping</h2>
|
<h2 tag="key-mapping mapping map macro">Key mapping</h2>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="different-marks marks">Marks</h1>
|
<h1 tag="different-marks marks">Marks</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
&liberator.appname; supports a number of different marks:
|
&liberator.appname; supports a number of different marks:
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h1 tag="bookmarks">Bookmarks</h1>
|
<h1 tag="bookmarks">Bookmarks</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags>a :bma :bmark</tags>
|
<tags>a :bma :bmark</tags>
|
||||||
@@ -106,6 +108,7 @@
|
|||||||
</item>
|
</item>
|
||||||
<!-- TODO: why is this duplicated in browsing? -->
|
<!-- TODO: why is this duplicated in browsing? -->
|
||||||
<h1 tag="history">History</h1>
|
<h1 tag="history">History</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags><![CDATA[<C-o>]]></tags>
|
<tags><![CDATA[<C-o>]]></tags>
|
||||||
@@ -201,6 +204,7 @@
|
|||||||
</item>
|
</item>
|
||||||
|
|
||||||
<h1 tag="quickmarks">QuickMarks</h1>
|
<h1 tag="quickmarks">QuickMarks</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags>go</tags>
|
<tags>go</tags>
|
||||||
@@ -288,6 +292,7 @@
|
|||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
<h1 tag="localmarks">Local marks</h1>
|
<h1 tag="localmarks">Local marks</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags>m</tags>
|
<tags>m</tags>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="messages">Error and informational messages</h1>
|
<h1 tag="messages">Error and informational messages</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<tags>message-history</tags>
|
<tags>message-history</tags>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="options">Options</h1>
|
<h1 tag="options">Options</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
&liberator.appname; has a number of internal variables and switches which can be set to
|
&liberator.appname; has a number of internal variables and switches which can be set to
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="text-search-commands">Text search commands</h1>
|
<h1 tag="text-search-commands">Text search commands</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
&liberator.appname; provides a Vim-like interface to &liberator.host;'s standard text search
|
&liberator.appname; provides a Vim-like interface to &liberator.host;'s standard text search
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="printing">Printing</h1>
|
<h1 tag="printing">Printing</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags>:ha :hardcopy</tags>
|
<tags>:ha :hardcopy</tags>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="repeating">Repeating commands</h1>
|
<h1 tag="repeating">Repeating commands</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>&liberator.appname; can repeat a number of commands and record macros.</p>
|
<p>&liberator.appname; can repeat a number of commands and record macros.</p>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="starting">Starting &liberator.appname;</h1>
|
<h1 tag="starting">Starting &liberator.appname;</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<tags>startup-options</tags>
|
<tags>startup-options</tags>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="styling">Styling the GUI and web pages</h1>
|
<h1 tag="styling">Styling the GUI and web pages</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
&liberator.appname; allows you to style both the browser and any web pages you view. All
|
&liberator.appname; allows you to style both the browser and any web pages you view. All
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1 tag="tabs">Tabs</h1>
|
<h1 tag="tabs">Tabs</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Tabs are used to be able to view many web pages at the same time. Each tab
|
Tabs are used to be able to view many web pages at the same time. Each tab
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
xmlns="http://vimperator.org/namespaces/liberator"
|
xmlns="http://vimperator.org/namespaces/liberator"
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
<h1>Other help</h1>
|
<h1>Other help</h1>
|
||||||
|
<toc start="2"/>
|
||||||
|
|
||||||
<h2 tag="various">Various commands</h2>
|
<h2 tag="various">Various commands</h2>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user