Author: paul
Date: 2005-10-23 04:39:48 +0200 (Sun, 23 Oct 2005)
New Revision: 146
Log:
r3007@frost: paul | 2005-10-22 19:33:29 -0500
Handle refentry elements.
Modified:
trunk/
trunk/xsl.d/extract-toc-ids.xsl
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:3005
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:145
+ b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:3007
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:145
Modified: trunk/xsl.d/extract-toc-ids.xsl
===================================================================
--- trunk/xsl.d/extract-toc-ids.xsl 2005-10-23 00:01:08 UTC (rev 145)
+++ trunk/xsl.d/extract-toc-ids.xsl 2005-10-23 02:39:48 UTC (rev 146)
@@ -14,23 +14,25 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<!-- We do not want any XML header -->
-<xsl:output method="text" omit-xml-declaration="yes"/>
+<xsl:output method="text"/>
-<!-- define explicit newline variable that contains a newline character -->
-<xsl:variable name="newline" select="'
'"/>
+<!-- TOC elements: print @id attribute, process contents -->
-<!-- match TOC elements, print @id attribute, process contents -->
-
-<xsl:template match="book|part|preface|chapter|appendix|section">
+<xsl:template match="book
+ |part
+ |preface
+ |chapter
+ |appendix
+ |section
+ |refentry
+ |refsection">
<xsl:if test="@id != ''">
- <xsl:value-of select="@id"/>
- <xsl:value-of select="$newline"/>
+ <xsl:value-of select="concat(@id,'
')"/>
</xsl:if>
<xsl:apply-templates/>
</xsl:template>
-<!-- match everything else and pass through without producing output -->
+<!-- Everything else: pass through without producing output -->
<xsl:template match="node()">
<xsl:apply-templates/>
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r146 - in trunk: . xsl.d | paul | 23 Oct |