bodewig 02/03/15 01:12:40
Modified: proposal/gump/java Project.java
proposal/gump/stylesheet xref.xsl
Log:
Some changes to <javadoc>
(1) remove the title attribute completely
(2) list project names instead of module names in javadoc.html - not
the difference this makes for vindico which used to be listed as
jakarta-alexandria.
(3) add a defined-in attribute for javadocs that attach themselves to
a different module and use that to remove the false alarms for
Antidote, Avalon-Excalibur and others from nojavadoc.html.
Please note, that these are my very first steps in XSLT, if I'm doing
something totally inefficient or bad, please teach me how to do it
better 8-)
Revision Changes Path
1.35 +6 -5 jakarta-alexandria/proposal/gump/java/Project.java
Index: Project.java
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/java/Project.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- Project.java 10 Mar 2002 17:41:50 -0000 1.34
+++ Project.java 15 Mar 2002 09:12:40 -0000 1.35
@@ -37,7 +37,7 @@
element = (Element)elements.nextElement();
new Project(element);
} catch (Throwable t) {
- System.err.println("Dropping "
+ System.err.println("Dropping project "
+ element.getAttribute("name")
+ " because of Exception " + t);
}
@@ -51,7 +51,7 @@
p.expandDepends();
p.resolveProperties();
} catch (Throwable t) {
- System.err.println("Dropping " + p.get("name")
+ System.err.println("Dropping project " + p.get("name")
+ " because of Exception " + t);
p.remove();
}
@@ -602,12 +602,13 @@
Module module = Module.find(moduleName);
require (module, "module", moduleName);
+ if (!moduleName.equals(this.get("module"))) {
+ javadoc.setAttribute("defined-in", this.get("module"));
+ }
+
// if there are no child nodes, add this project's description
if (!javadoc.hasChildNodes() && description!=null) {
Element desc = (Element) description.cloneNode(true);
- if (javadoc.getAttributeNode("title") != null) {
- desc.setAttribute("title", javadoc.getAttribute("title"));
- }
javadoc.appendChild(desc);
}
1.21 +2 -2 jakarta-alexandria/proposal/gump/stylesheet/xref.xsl
Index: xref.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/xref.xsl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- xref.xsl 3 Mar 2002 13:09:52 -0000 1.20
+++ xref.xsl 15 Mar 2002 09:12:40 -0000 1.21
@@ -430,7 +430,7 @@
<!-- Single javadoc -->
<a href="{javadoc/description/@url}/index.html">
- <xsl:value-of select="@name"/>
+ <xsl:value-of select="javadoc/@project"/>
</a>
<xsl:text> - </xsl:text>
<xsl:value-of select="normalize-space(description)"/>
@@ -473,7 +473,7 @@
<xsl:sort select="@name"/>
<xsl:variable name="name" select="@name"/>
- <xsl:if test="../project[ant and @module=$name]">
+ <xsl:if test="../project[ant and @module=$name] and
not(/workspace/module/javadoc[@defined-in=$name])">
<li> <xsl:value-of select="$name"/> </li>
</xsl:if>
</xsl:for-each>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>