[Fb-contrib-commit] SF.net SVN: fb-contrib: [643] trunk/fb-contrib
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-09-11 05:10:32
|
Revision: 643 http://svn.sourceforge.net/fb-contrib/?rev=643&view=rev Author: dbrosius Date: 2006-09-10 22:10:23 -0700 (Sun, 10 Sep 2006) Log Message: ----------- add stylesheet, and ant target to generate html file with bug descriptions, add to index page Modified Paths: -------------- trunk/fb-contrib/build.xml trunk/fb-contrib/htdocs/index.html Added Paths: ----------- trunk/fb-contrib/etc/bugdescriptions.xsl Modified: trunk/fb-contrib/build.xml =================================================================== --- trunk/fb-contrib/build.xml 2006-09-11 03:58:12 UTC (rev 642) +++ trunk/fb-contrib/build.xml 2006-09-11 05:10:23 UTC (rev 643) @@ -14,6 +14,7 @@ <property name="samples.dir" value="${basedir}/samples"/> <property name="sampleslib.dir" value="${samples.dir}/lib"/> <property name="javadoc.dir" value="${basedir}/javadoc"/> + <property name="htdocs.dir" value="${basedir}/htdocs"/> <property name="javac.source" value="1.5"/> <property name="javac.target" value="jsr14"/> <property name="javac.deprecation" value="on"/> @@ -24,6 +25,7 @@ <target name="clean" description="removes all generated collateral"> <delete dir="${classes.dir}"/> <delete dir="${javadoc.dir}"/> + <delete file="${htdocs.dir}/bugdescriptions.html"/> <delete file="${basedir}/fb-contrib.jar"/> <delete file="${basedir}/fb-contrib-src.zip"/> <delete> @@ -101,6 +103,13 @@ </jar> </target> + <target name="html" depends="-init" description="generates dynamic html"> + <xslt basedir="${etc.dir}" + destdir="${htdocs.dir}" + style="${etc.dir}/bugdescriptions.xsl" + in="${etc.dir}/messages.xml" out="${htdocs.dir}/bugdescriptions.html"/> + </target> + <target name="build" depends="-init, validate_xml, compile, compile_samples, jar" description="builds the plugin jar"> </target> Added: trunk/fb-contrib/etc/bugdescriptions.xsl =================================================================== --- trunk/fb-contrib/etc/bugdescriptions.xsl (rev 0) +++ trunk/fb-contrib/etc/bugdescriptions.xsl 2006-09-11 05:10:23 UTC (rev 643) @@ -0,0 +1,38 @@ +<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + <xsl:template match="/MessageCollection"> + <html> + <head><title>fb-contrib: Bug Descriptions</title></head> + <body background="true"> + <div style="position:absolute;top:0;left:0;width:256;height:65535;z-index:1;background-image:url(blend.jpg);"> + </div> + + <div style="position:absolute;top:20;left:20;z-index:2;"> + <h1>fb-contrib: Bug Descriptions</h1> + + <table border="1" width="100%"> + <xsl:apply-templates select="BugCode"/> + </table> + </div> + </body> + </html> + </xsl:template> + + <xsl:template match="BugCode"> + <xsl:call-template name="Pattern"> + <xsl:with-param name="abbrev"><xsl:value-of select="@abbrev"/></xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template name="Pattern"> + <xsl:param name="abbrev"/> + <xsl:for-each select="//BugPattern[starts-with(@type,$abbrev)]"> + <tr><td><b><xsl:value-of select="@type"/></b></td></tr> + <xsl:variable name="desc1"><xsl:value-of select="normalize-space(Details/text())"/></xsl:variable> + <xsl:variable name="desc2"><xsl:value-of select="substring($desc1, 9)"/></xsl:variable> + <xsl:variable name="desc"><xsl:value-of select="substring($desc2, 0, string-length($desc2) - 3)"/></xsl:variable> + <tr><td><xsl:copy-of select="$desc"/></td></tr> + </xsl:for-each> + </xsl:template> + +</xsl:transform> \ No newline at end of file Modified: trunk/fb-contrib/htdocs/index.html =================================================================== --- trunk/fb-contrib/htdocs/index.html 2006-09-11 03:58:12 UTC (rev 642) +++ trunk/fb-contrib/htdocs/index.html 2006-09-11 05:10:23 UTC (rev 643) @@ -44,6 +44,8 @@ <a href="http://www.sourceforge.net/projects/fb-contrib">Project Page</a> <img src="vbar.gif" height="12"/> <a href="javadoc/index.html">JavaDoc</a> + <img src="vbar.gif" height="12"/> + <a href="bugdescriptions.html">Bug Descriptions</a> <hr/> <img id="svn_image" src="flip2.gif" onClick="toggleBlock('svn', 'svn_image');" align="top"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |