$(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
+++ /dev/null
-<!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>
--- /dev/null
+<?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>
--- /dev/null
+<?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>