[yelp-xsl] doc: Use links element, better formatting
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] doc: Use links element, better formatting
- Date: Wed, 18 May 2011 16:01:10 +0000 (UTC)
commit daf5be7ed44c1334f8c240f5467484570367d0ad
Author: Shaun McCance <shaunm gnome org>
Date: Fri May 13 11:54:43 2011 -0400
doc: Use links element, better formatting
doc/yelp-xsl/C/index__M.page | 2 +
doc/yelp-xsl/C/index__P.page | 2 +
doc/yelp-xsl/C/index__S.page | 2 +
doc/yelp-xsl/C/index__T.page | 2 +
doc/yelp-xsl/xsldoc-scan.xsl | 51 ++++++++++++-----------------------------
5 files changed, 23 insertions(+), 36 deletions(-)
---
diff --git a/doc/yelp-xsl/C/index__M.page b/doc/yelp-xsl/C/index__M.page
index 5f13d58..6225912 100644
--- a/doc/yelp-xsl/C/index__M.page
+++ b/doc/yelp-xsl/C/index__M.page
@@ -9,4 +9,6 @@
</info>
<title>Index of XSLT Modes</title>
+
+ <links type="topic" style="linklist"/>
</page>
diff --git a/doc/yelp-xsl/C/index__P.page b/doc/yelp-xsl/C/index__P.page
index b3ad035..32e35f6 100644
--- a/doc/yelp-xsl/C/index__P.page
+++ b/doc/yelp-xsl/C/index__P.page
@@ -9,4 +9,6 @@
</info>
<title>Index of XSLT Parameters</title>
+
+ <links type="topic" style="linklist"/>
</page>
diff --git a/doc/yelp-xsl/C/index__S.page b/doc/yelp-xsl/C/index__S.page
index f83b764..35547cc 100644
--- a/doc/yelp-xsl/C/index__S.page
+++ b/doc/yelp-xsl/C/index__S.page
@@ -9,4 +9,6 @@
</info>
<title>Index of XSLT Stylesheets</title>
+
+ <links type="topic" style="linklist"/>
</page>
diff --git a/doc/yelp-xsl/C/index__T.page b/doc/yelp-xsl/C/index__T.page
index 3d27d69..2768e44 100644
--- a/doc/yelp-xsl/C/index__T.page
+++ b/doc/yelp-xsl/C/index__T.page
@@ -9,4 +9,6 @@
</info>
<title>Index of XSLT Templates</title>
+
+ <links type="topic" style="linklist"/>
</page>
diff --git a/doc/yelp-xsl/xsldoc-scan.xsl b/doc/yelp-xsl/xsldoc-scan.xsl
index af2aa0a..fc13f52 100644
--- a/doc/yelp-xsl/xsldoc-scan.xsl
+++ b/doc/yelp-xsl/xsldoc-scan.xsl
@@ -140,13 +140,13 @@ free software.
<xsl:for-each select="document(@href, /)//xsl:include">
<xsl:variable name="id" select="translate(substring-before(str:split(@href, '/')[last()],
'.xsl'), '.', '_')"/>
- <link type="topic" xref="{$id}"/>
+ <link type="topic" xref="{$id}" group="S"/>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="id" select="translate(substring-before(str:split(@href, '/')[last()],
'.xsl'), '.', '_')"/>
- <link type="topic" xref="{$id}"/>
+ <link type="topic" xref="{$id}" group="S"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
@@ -209,6 +209,18 @@ free software.
</p>
</xsl:if>
<xsl:apply-templates/>
+ <links type="topic" groups="S" style="linklist">
+ <title>Stylesheets</title>
+ </links>
+ <links type="topic" groups="P" style="linklist">
+ <title>Parameters</title>
+ </links>
+ <links type="topic" groups="M" style="linklist">
+ <title>Modes</title>
+ </links>
+ <links type="topic" groups="T" style="linklist">
+ <title>Templates</title>
+ </links>
<xsl:variable name="requires" select="$page/mal:info/mal:link[ type = 'xslt-requires']"/>
<xsl:if test="count($requires) > 0">
<list style="compact">
@@ -227,39 +239,6 @@ free software.
<xsl:with-param name="page" select="$page"/>
<xsl:with-param name="xslt_node" select="$xslt_file"/>
</xsl:call-template>
- <xsl:if test="mal:section[ style = 'xslt-param']">
- <section id="P">
- <info>
- <title type="link">
- <xsl:text>Parameters for </xsl:text>
- <xsl:copy-of select="mal:title/node()"/>
- </title>
- </info>
- <title>Parameters</title>
- </section>
- </xsl:if>
- <xsl:if test="mal:section[ style = 'xslt-mode']">
- <section id="M">
- <info>
- <title type="link">
- <xsl:text>Modes for </xsl:text>
- <xsl:copy-of select="mal:title/node()"/>
- </title>
- </info>
- <title>Modes</title>
- </section>
- </xsl:if>
- <xsl:if test="mal:section[ style = 'xslt-template']">
- <section id="T">
- <info>
- <title type="link">
- <xsl:text>Templates for </xsl:text>
- <xsl:copy-of select="mal:title/node()"/>
- </title>
- </info>
- <title>Templates</title>
- </section>
- </xsl:if>
</page>
</xsl:template>
@@ -287,7 +266,7 @@ free software.
<exsl:document href="{$id}.page">
<page id="{$id}" type="topic" style="{ style}">
<info>
- <link type="guide" xref="{$xsldoc.id}#{$type}"/>
+ <link type="guide" xref="{$xsldoc.id}" group="#{$type}"/>
<link type="guide" xref="index__{$type}"/>
<xsl:call-template name="revision"/>
<xsl:copy-of select="mal:info/*[not(self::mal:revision)]"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]