jesse 2003/04/25 07:09:11
Modified: proposal/xdocs/lib xdoclet-apache-module-1.2b3-dev.jar proposal/xdocs/dvsl task.dvsl Log: Generate attribute requirements Revision Changes Path 1.2 +103 -92 ant/proposal/xdocs/lib/xdoclet-apache-module-1.2b3-dev.jar <<Binary file>> 1.5 +40 -7 ant/proposal/xdocs/dvsl/task.dvsl Index: task.dvsl =================================================================== RCS file: /home/cvs/ant/proposal/xdocs/dvsl/task.dvsl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- task.dvsl 14 Feb 2003 20:37:23 -0000 1.4 +++ task.dvsl 25 Apr 2003 14:09:11 -0000 1.5 @@ -54,7 +54,7 @@ #set( $project = $node.selectSingleNode("document('xdocs/stylesheets/project.xml')/project" ) ) #if ($node.name().equals("task")) #set( $title = "#capitalize($attrib.name) Task" ) - #set( $summary = $node.short-description ) + #set( $summary = $node.short-description ) #end <html> @@ -105,7 +105,7 @@ <!-- Applying task/long-description --> #* *#$context.applyTemplates("long-description") #* *##end -#* *#$context.applyTemplates("structure/attributes") +#* *#$context.applyTemplates("structure/attribute-groups") #* *#$context.applyTemplates("structure/elements") #* *#$context.applyTemplates("external/section") #* *##end @@ -154,6 +154,16 @@ #end #* + Macro to format a table body cell that spans multiple rows +*# +#macro( tdmr $text $rows ) + <td bgcolor="$table-td-bg" valign="top" align="left" rowspan="$rows"> + <font color="#000000" size="-1" face="arial,helvetica,sanserif">$text</font> + </td> +#end + + +#* Macro to format a section banner *# #macro( section $anchor $name ) @@ -215,19 +225,18 @@ #* Process top level attributes *# -#match( "structure/attributes" ) +#match( "structure/attribute-groups" ) <!-- Start Attributes --> <table border="0" cellspacing="0" cellpadding="2" width="100%"> <tr><td> </td></tr> - -#* *##section("attributes" "Parameters") - +#* *##section("attributes" "Parameters") <tr><td><blockquote> <table> <tr> #* *##th("Attribute") #* *##th("Description") #* *##th("Type") +#* *##th("Requirement") </tr> #* *#$context.applyTemplates("*") </table> @@ -238,14 +247,29 @@ #end #* + Process attribute group +*# +#match( "structure/attribute-groups/attribute-group" ) + <!-- Attribute Group --> + #set ($attributeGroup = $attrib.description) + #set ($numGroups = $node.selectNodes("attribute").size()) + #set ($inGroup = true) +#* *#$context.applyTemplates("*") +#end + +#* Process a single attribute *# -#match( "attribute" ) +#match( "structure/attribute-groups/attribute-group/attribute" ) <!-- Attribute --> <tr> #* *##td($attrib.name) #* *##td($node.description) #* *##td($attrib.briefType) +#if ($inGroup) +#* *##tdmr($attributeGroup $numGroups) +#set ($inGroup = false) +#end </tr> #end @@ -383,6 +407,15 @@ $context.applyTemplates("*") </td></tr> </table> +#end + +#* + * process a the requirement groups + *# +#match( "requirement-group" ) + #if ($regGroup == $attrib.name) +#* *#$attrib.description + #end #end #match( "source" )