]> matita.cs.unibo.it Git - helm.git/commitdiff
The Work-Packages index page is no more a static HTML page, but it is
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 13 Feb 2002 12:07:15 +0000 (12:07 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 13 Feb 2002 12:07:15 +0000 (12:07 +0000)
automatically generated from xml/work-packages/index.xml (that will be
also useful in the future).

helm/mowgli/home/html/Makefile
helm/mowgli/home/templates/work-packages/index.html [deleted file]
helm/mowgli/home/xml/work-packages/index.xml [new file with mode: 0644]
helm/mowgli/home/xsl/work-packages_index.xsl [new file with mode: 0644]

index 0537f51d121153310e20cd3675e40be4d813f92c..7314f083575d3dc078a1dcb57d9ee9bb1b135bb9 100644 (file)
@@ -104,8 +104,9 @@ publications/%.html: $(XMLROOT)/publications/%.xml \
               $(XSLROOT)/publication.xsl
        xsltproc -o $@ $(XSLROOT)/publication.xsl $<
 
-work-packages/index.html: $(TEMPLATESROOT)/work-packages/index.html
-       cp $< $@
+work-packages/index.html: $(XMLROOT)/work-packages/index.xml \
+                          $(XSLROOT)/work-packages_index.xsl
+       xsltproc -o $@ $(XSLROOT)/work-packages_index.xsl $<
        
 work-packages/%.html: $(XMLROOT)/work-packages/%.xml \
               $(XSLROOT)/work-package.xsl
diff --git a/helm/mowgli/home/templates/work-packages/index.html b/helm/mowgli/home/templates/work-packages/index.html
deleted file mode 100644 (file)
index 199ead8..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
-  <head>
-    <title>Work Packages</title>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-    <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
-  </head>
-
-  <body class="content">
-
-    <blockquote>
-      <h1>Work Packages</h1>
-
-      <ul>
-        <li><a href="distribution.html">Distribution</a></li>
-       <li><a href="information-dissemination-and-exploitation.html">Information Dissemination and Exploitation</a></li>
-       <li><a href="interfaces.html">Interfaces</a></li>
-       <li><a href="metadata.html">Metadata</a></li>
-       <li><a href="project-management.html">Project Management</a></li>
-       <li><a href="requirement-analysis.html">Requirement Analysis</a></li>
-       <li><a href="testing-and-validation.html">Testing and Validation</a></li>
-       <li><a href="transformation.html">Transformation</a></li>
-      </ul>
-    </blockquote>
-  </body>
-
-</html>
diff --git a/helm/mowgli/home/xml/work-packages/index.xml b/helm/mowgli/home/xml/work-packages/index.xml
new file mode 100644 (file)
index 0000000..091b006
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+
+<!DOCTYPE work-packages [
+ <!ELEMENT work-packages (work-package+)>
+
+ <!ELEMENT work-package EMPTY>
+ <!ATTLIST work-package
+           file CDATA #REQUIRED>
+]>
+
+<work-packages>
+ <work-package file="project-management"/>
+ <work-package file="requirement-analysis"/>
+ <work-package file="transformation"/>
+ <work-package file="metadata"/>
+ <work-package file="interfaces"/>
+ <work-package file="distribution"/>
+ <work-package file="testing-and-validation"/>
+ <work-package file="information-dissemination-and-exploitation"/>
+</work-packages>
diff --git a/helm/mowgli/home/xsl/work-packages_index.xsl b/helm/mowgli/home/xsl/work-packages_index.xsl
new file mode 100644 (file)
index 0000000..e75e08e
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="common.xsl"/>
+
+<xsl:output method="html"/>
+
+<xsl:template match="/">
+ <html>
+  <head>
+   <title>Work Packages</title>
+   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+   <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
+  </head>
+  <body>
+   <xsl:apply-templates/>
+  </body>
+ </html>
+</xsl:template>
+
+<xsl:template match="work-packages">
+ <h1>Work Packages</h1>
+ <ol>
+  <xsl:apply-templates/>
+ </ol>
+</xsl:template>
+
+<xsl:template match="work-package">
+ <xsl:variable name="work-package"
+               select="document(concat('../xml/work-packages/',@file,'.xml'))/work-package"/>
+ <li value="{$work-package/@number + 1}">
+  <a href="{@file}.html">
+   <xsl:value-of select="@file"/>
+  </a>
+ </li>
+</xsl:template>
+
+</xsl:stylesheet>