glennm 02/05/16 06:52:02
Modified: src/dvsl/xdocs site.dvsl
Log:
Glenn McAllister - 2002/05/16
If the <section> or <subsection> elements in an xdoc are missing the name
attribute, don't create an empty <h3> or <h4> element respectively.
John's original patch dealt with the <section> element; it seemed logical
to extend it to the <subsection> element as well.
Submitted by: John Thornhauer
Revision Changes Path
1.43 +4 -0 jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl
Index: site.dvsl
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- site.dvsl 11 May 2002 12:41:05 -0000 1.42
+++ site.dvsl 16 May 2002 13:52:02 -0000 1.43
@@ -296,14 +296,18 @@
*#
#match( "section" )
<div class="h3">
+ #if ($attrib.name.length() > 0)
<h3><a name="$attrib.name">$attrib.name</a></h3>
+ #end
$context.applyTemplates("*")
</div>
#end
#match( "subsection" )
<div class="h4">
+ #if ($attrib.name.length() > 0)
<h4><a name="$attrib.name">$attrib.name</a></h4>
+ #end
$context.applyTemplates("*")
</div>
#end
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>