Allow per-category intro text in quarterly status reports
Update the dtd to permit the <p> element to appear within <category> and update the xsl template to render any paragraph(s) of such introductory text before the line break that preceeds the rendering of project entries in the given category.
This commit is contained in:
parent
a13ec77257
commit
d083dac69b
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50861
2 changed files with 4 additions and 2 deletions
|
@ -74,7 +74,9 @@
|
|||
<br/><h1><a>
|
||||
<xsl:attribute name="name"><xsl:value-of select="translate(normalize-space(description), ' ', '-')"/></xsl:attribute>
|
||||
<xsl:attribute name="href">#<xsl:value-of select="translate(normalize-space(description), ' ', '-')"/></xsl:attribute>
|
||||
<xsl:value-of select="description"/></a></h1><br/>
|
||||
<xsl:value-of select="description"/></a></h1>
|
||||
<!-- per-category intro text, if present -->
|
||||
<xsl:apply-templates select="p" mode="copy.html"/><br/>
|
||||
|
||||
<xsl:variable name="cat-short" select="name"/>
|
||||
<xsl:apply-templates select="//project[@cat=$cat-short]">
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
id ID #IMPLIED
|
||||
>
|
||||
|
||||
<!ELEMENT category (name, description)>
|
||||
<!ELEMENT category (name, description, p*)>
|
||||
<!ATTLIST category
|
||||
id ID #IMPLIED
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue