[bayescl-cvs] CVS update: public_html/webpage.css public_html/project2web.xsl public_html/project.dtd public_html/index.xml

Anthony Ventimiglia aventimiglia at common-lisp.net
Wed Nov 26 23:39:48 UTC 2003


Update of /project/bayescl/cvsroot/public_html
In directory common-lisp.net:/tmp/cvs-serv30843

Modified Files:
	webpage.css project2web.xsl project.dtd index.xml 
Log Message:
A little change to the project.dtd to add some more content to the front page.

Date: Wed Nov 26 18:39:47 2003
Author: aventimiglia

Index: public_html/webpage.css
diff -u public_html/webpage.css:1.2 public_html/webpage.css:1.3
--- public_html/webpage.css:1.2	Wed Nov 26 16:28:08 2003
+++ public_html/webpage.css	Wed Nov 26 18:39:47 2003
@@ -1,5 +1,5 @@
 /* -*- c -*- */
-/* $Id: webpage.css,v 1.2 2003/11/26 21:28:08 aventimiglia Exp $
+/* $Id: webpage.css,v 1.3 2003/11/26 23:39:47 aventimiglia Exp $
    
    Stylesheet for my Common-lisp project pages.
  */
@@ -70,8 +70,8 @@
 }
 
 #body-text {
- float: left;
  clear: left;
- margin: 5em 0 5em 4em;
+ font-size: 130%;
+ margin: 5em 8em;
 }
 


Index: public_html/project2web.xsl
diff -u public_html/project2web.xsl:1.1 public_html/project2web.xsl:1.2
--- public_html/project2web.xsl:1.1	Wed Nov 26 14:08:21 2003
+++ public_html/project2web.xsl	Wed Nov 26 18:39:47 2003
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 
-<!-- $Id: project2web.xsl,v 1.1 2003/11/26 19:08:21 aventimiglia Exp $  This Stylesheet converts project xml documents into a webpage xml document, which can then be converted to a html page by a separate stylesheet. -->
+<!-- $Id: project2web.xsl,v 1.2 2003/11/26 23:39:47 aventimiglia Exp $  This Stylesheet converts project xml documents into a webpage xml document, which can then be converted to a html page by a separate stylesheet. -->
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version="1.0">
@@ -13,20 +13,32 @@
 </xsl:text>
     <xsl:element name="webpage">
       <xsl:attribute name="title">
-        <xsl:value-of select="title" />
+        <xsl:value-of select="title" /> -- <xsl:value-of select="version" />
       </xsl:attribute>
       <page-header><xsl:value-of select="title" /></page-header>
-      <xsl:apply-templates select="//resources" />
+      <xsl:call-template name="page-links" />
       <body-text>
         <xsl:apply-templates select="//summary"/>        
         <xsl:apply-templates select="//license"/>        
+        <xsl:apply-templates select="//download"/>
+        <xsl:apply-templates select="//viewcvs"/>
+        <xsl:apply-templates select="//documentation"/>
       </body-text>
     </xsl:element> <!-- webpage -->
   </xsl:template>
 
-  <xsl:template match="//resources">
+  <xsl:template name="page-links">
     <page-links>
-      <xsl:apply-templates select="//link" />
+      <xsl:for-each select="download|viewcvs|documentation">
+        <xsl:element name="link">
+          <xsl:attribute name="uri">
+            <xsl:value-of select="@uri"/>
+          </xsl:attribute>
+          <xsl:attribute name="description">
+            <xsl:value-of select="name()"/>
+          </xsl:attribute>
+        </xsl:element>
+      </xsl:for-each>
     </page-links>
   </xsl:template>
 
@@ -66,4 +78,40 @@
     </xsl:element>
   </xsl:template>
 
+  <xsl:template match="//download">
+    <p>
+      Official releases can be downloaded from 
+      <xsl:element name="link">
+        <xsl:attribute name="uri">
+          <xsl:value-of select="@uri" />
+        </xsl:attribute>
+        <xsl:attribute name="description">the FTP server</xsl:attribute>
+      </xsl:element>
+      .
+    </p>
+  </xsl:template>
+
+  <xsl:template match="//viewcvs">
+    <p>
+      The 
+      <xsl:element name="link">
+        <xsl:attribute name="uri"><xsl:value-of select="@uri"/></xsl:attribute>
+        <xsl:attribute name="description">ViewCVS</xsl:attribute>
+      </xsl:element>
+      interface can be used to download snapshots from the CVS repository.
+    </p>
+  </xsl:template>
+
+  <xsl:template match="documentation">
+    <p>
+      Documenatation is available
+      <xsl:element name="link">
+        <xsl:attribute name="uri">
+          <xsl:value-of select="@uri" />
+        </xsl:attribute>
+        <xsl:attribute name="description">online</xsl:attribute>
+      </xsl:element>
+    </p>
+  </xsl:template>
+  
 </xsl:stylesheet>


Index: public_html/project.dtd
diff -u public_html/project.dtd:1.1.1.1 public_html/project.dtd:1.2
--- public_html/project.dtd:1.1.1.1	Tue Nov 25 16:51:35 2003
+++ public_html/project.dtd	Wed Nov 26 18:39:47 2003
@@ -1,8 +1,11 @@
-<!-- $Id: project.dtd,v 1.1.1.1 2003/11/25 21:51:35 aventimiglia Exp $ XML DTD for Project Descripotions -->
-<!ELEMENT project (title, author, license, summary, resources*)>
+<!-- $Id: project.dtd,v 1.2 2003/11/26 23:39:47 aventimiglia Exp $ XML DTD for Project Descripotions -->
+<!ELEMENT project (title, version, author, license, summary, download, 
+                   viewcvs, documentation)>
 
 <!ELEMENT title (#PCDATA)>
 
+<!ELEMENT version (#PCDATA)>
+
 <!ELEMENT author EMPTY>
 <!ATTLIST author name CDATA #REQUIRED
                  email CDATA #REQUIRED>
@@ -11,10 +14,15 @@
 <!ATTLIST license type CDATA #REQUIRED
                   link CDATA #REQUIRED>
 
+<!ENTITY % uri "uri CDATA #REQUIRED">
+
 <!ELEMENT summary (#PCDATA)>
 
-<!ELEMENT resources (link)+>
+<!ELEMENT download EMPTY>
+<!ATTLIST download %uri;>
+
+<!ELEMENT viewcvs EMPTY>
+<!ATTLIST viewcvs %uri;>
 
-<!ELEMENT link EMPTY>
-<!ATTLIST link uri CDATA #REQUIRED
-               description CDATA #REQUIRED>
\ No newline at end of file
+<!ELEMENT documentation EMPTY>
+<!ATTLIST documentation %uri;>


Index: public_html/index.xml
diff -u public_html/index.xml:1.2 public_html/index.xml:1.3
--- public_html/index.xml:1.2	Wed Nov 26 14:08:21 2003
+++ public_html/index.xml	Wed Nov 26 18:39:47 2003
@@ -2,18 +2,15 @@
 <!DOCTYPE project SYSTEM "project.dtd">
 <project>
   <title>Bayescl</title>
+  <version>cvs-prerelease</version>
   <author name="Anthony Ventimiglia" email="aventimiglia at common-lisp.net"/>
   <license type="LLGPL" link="http://opensource.franz.com/preamble.html"/>
-  <summary>Bayescl is a Bayesian Pattern Filtering Library for Common Lisp.</summary>
-  <resources>
-    <link uri="ftp://common-lisp.net/pub/project/bayescl/" 
-      description="Downloads"/> 
-    <link uri="documentation.html"
-      description="Documentation"/> 
-    <link 
-      uri="http://common-lisp.net/cgi-bin/viewcvs.cgi/bayescl/?cvsroot=bayescl"
-      description="ViewCVS" />
-  </resources>
+  <summary>Bayescl is a general purpose Bayesian pattern filtering library for Common Lisp. Development is done in CMUCL, but every effort will be made for cross-platform portability. It is in it's earliest development stages, but you can expect a release shortly.</summary>
+  <download uri="ftp://common-lisp.net/pub/project/bayescl/"/>
+  <viewcvs 
+    uri="http://common-lisp.net/cgi-bin/viewcvs.cgi/bayescl/?cvsroot=bayescl" 
+    />
+  <documentation uri="documentation.html" />
 </project>
 
 





More information about the Bayescl-cvs mailing list