1
<?xml version="1.0" encoding="UTF-8"?>
3
This stylesheet gathers information from the authorblurbs embedded in the documents and generates a Docbook Article.
5
Author: Sean Wheller sean@inwords.co.za http://www.inwords.co.za
7
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
8
<xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.3//EN"
9
doctype-system="http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" encoding="UTF-8"
10
indent="yes" version="1.0"/>
11
<xsl:template match="/">
14
<xsl:value-of select="//title/."/>
16
<subtitle>Documentation Project Status Report</subtitle>
21
<entry>TOC Entry</entry>
22
<entry>Author Remarks</entry>
26
<xsl:call-template name="doItems"/>
32
<xsl:template name="doItems">
33
<!-- <xsl:for-each select="//chapter|//sect1|//sect2|//sect3|//sect4|//sect5"> -->
34
<xsl:for-each select="//chapter|//sect1">
37
<xsl:value-of select="title"/>
41
<xsl:when test="@status='help'">
43
<emphasis role="bold">
44
<xsl:text>Help Wanted</xsl:text>
47
<xsl:call-template name="doAuthor"/>
49
<xsl:when test="@status='writing'">
51
<xsl:text>In Progress</xsl:text>
52
<xsl:call-template name="doAuthor"/>
55
<xsl:when test="@status='review'">
58
<xsl:text>Awaiting Review</xsl:text>
61
<xsl:call-template name="doAuthor"/>
63
<xsl:when test="@status='reviewing'">
66
<xsl:text>In Review</xsl:text>
69
<xsl:call-template name="doAuthor"/>
71
<xsl:when test="@status='complete'">
73
<xsl:text>Finished</xsl:text>
75
<xsl:call-template name="doAuthor"/>
79
<xsl:text>NO STATUS</xsl:text>
87
<xsl:template name="doAuthor">
88
<xsl:if test="sect1info/authorblurb/para[text()]">
90
<xsl:value-of select="sect1info/authorblurb/para"/>
93
<xsl:if test="chapterinfo/authorblurb/para[text()]">
95
<xsl:value-of select="chapterinfo/authorblurb/para"/>