Subject: toc patch
To: None <netbsd-docs@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: netbsd-docs
Date: 07/09/2005 18:14:38
--eAbsdosE1cNLO4uF
Content-Type: multipart/mixed; boundary="J/dobhs11T7y2rNN"
Content-Disposition: inline


--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

Currently, when we generate a TOC automatically from XML, we get the
following:

TOC Title

Item
  - subtitle
  - subtitle 2

=2E
=2E
=2E

Item

subtitle

text



But we can't have content between 'Item' and 'subtitle' in the body.
However, sometimes it can be useful to have some introductory text in
before the subtitles.  The attached patch should allow for that.  Sounds
reasonable?

-Jan

--=20
If you are undertaking anything substantial, C is the only reasonable choice
of programming language.
	-- UNIX User's Supplementary Documents

--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

Index: webpage.xsl
===================================================================
RCS file: /cvsroot/htdocs/share/xsl/webpage.xsl,v
retrieving revision 1.25
diff -b -u -r1.25 webpage.xsl
--- webpage.xsl	29 May 2005 13:48:28 -0000	1.25
+++ webpage.xsl	9 Jul 2005 22:07:27 -0000
@@ -338,6 +338,7 @@
     <hr/>
     <h3 class="title"><xsl:apply-templates select="title" mode="plaintext"/>
     </h3>
+    <xsl:apply-templates select="*[not(title)]"/>
     <xsl:for-each select="sect3">
       <xsl:apply-templates/>
     </xsl:for-each>

--J/dobhs11T7y2rNN--

--eAbsdosE1cNLO4uF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFC0ExOfFtkr68iakwRAghUAKDrrWRHoQtqUl2ISF8pmH4PNf/33ACgr1QG
yxpd2QiHWPSo/eBj7z3GU98=
=jBM1
-----END PGP SIGNATURE-----

--eAbsdosE1cNLO4uF--