]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/project.xsl
Initial commit of the XML/XSLT stuff.
[helm.git] / helm / mowgli / home / xsl / project.xsl
diff --git a/helm/mowgli/home/xsl/project.xsl b/helm/mowgli/home/xsl/project.xsl
new file mode 100644 (file)
index 0000000..ba1f7a9
--- /dev/null
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:output method="html"/>
+
+<xsl:template match="/">
+ <html>
+  <head>
+   <title>The Project</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="project">
+ <h1>
+  <xsl:value-of select="full_title"/>
+  <xsl:text> (</xsl:text>
+  <xsl:value-of select="acronym"/>
+  <xsl:text>)</xsl:text>
+ </h1>
+ <p>
+  <xsl:text>Project type: </xsl:text>
+  <xsl:value-of select="type"/>
+  <xsl:text> (</xsl:text>
+  <xsl:value-of select="type_acronym"/>
+  <xsl:text>)</xsl:text>
+ </p>
+ <p>
+  <xsl:text>Proposal Contract Number: </xsl:text>
+  <xsl:value-of select="proposal_contract_no"/>
+ </p>
+ <p>
+  <xsl:text>Operative Commencement Date: </xsl:text>
+  <xsl:value-of select="operative_commencement_of_contract"/>
+ </p>
+</xsl:template>
+
+</xsl:stylesheet>