summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-08 00:08:18 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-08 00:08:18 +0100
commit1789955d8c66141d9f95f0b9acd5f354701dfad5 (patch)
treedf3632fb95845e40946fd8c1b82259e996c568c4 /xsl
parent55dcbd256dbb292feeb294243eb644888ac6a41a (diff)
Curren version of the webpage
Diffstat (limited to 'xsl')
-rw-r--r--xsl/webpage.xsl49
1 files changed, 44 insertions, 5 deletions
diff --git a/xsl/webpage.xsl b/xsl/webpage.xsl
index 26a167a..8efc0a2 100644
--- a/xsl/webpage.xsl
+++ b/xsl/webpage.xsl
@@ -27,9 +27,8 @@
<h1>Ousía Framework</h1>
<nav>
<ul>
- <li><a href="#">About</a></li>
- <li><a href="#">Documentation</a></li>
- <li><a href="#">Download</a></li>
+ <li><a href="index.html">About</a></li>
+ <li><a href="download.html">Download</a></li>
</ul>
</nav>
</section>
@@ -73,14 +72,13 @@
</section>
<section id="copyright">
<p>Ousía – Extensible Semantic Markup Framework (c) 2015 Andreas Stöckel, Benjamin Paaßen</p>
- <p>Unless noted otherwise the content of this website (including, but not limited to text, images, markup and stylesheets) is licensed under the <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>. The uncompiled source code of the website is available at TODO.
+ <p>Unless noted otherwise the content of this website (including, but not limited to text, images, markup and stylesheets) is licensed under the <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>. The uncompiled source code of the website is available at <a href="download.html">the downloads page</a>.
</p>
<p>
This website was made using <a href="http://git-scm.com/">git</a>, <a href="http://lesscss.org/">Less</a>, <a href="http://ousia-framework.org/">Ousía</a> and <a href="http://xmlsoft.org/libxslt/">xsltproc</a>.
</p>
</section>
</footer>
- <script type="text/javascript" src="script/ousia.js"/>
</body>
</html>
</xsl:template>
@@ -88,6 +86,7 @@
<!-- Transform masthead and section into a section -->
<xsl:template match="webpage:masthead|webpage:section">
<section>
+ <xsl:copy-of select="@name"/>
<xsl:if test="self::webpage:masthead">
<xsl:attribute name="class">masthead</xsl:attribute>
</xsl:if>
@@ -132,6 +131,7 @@
<xsl:template match="webpage:subsection">
<div>
+ <xsl:copy-of select="@name"/>
<xsl:apply-templates select="subtitle"/>
<xsl:apply-templates select="webpage:*"/>
</div>
@@ -152,6 +152,16 @@
</a>
</xsl:template>
+ <!-- Buttons -->
+ <xsl:template match="webpage:link">
+ <xsl:text> </xsl:text>
+ <a>
+ <xsl:copy-of select="@href"/>
+ <xsl:apply-templates select="webpage:*"/>
+ </a>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
<!-- IPA -->
<xsl:template match="webpage:ipa">
<xsl:value-of select="webpage:text"/>
@@ -185,6 +195,35 @@
<dt>Telefon:</dt><dd><xsl:value-of select="."/></dd>
</xsl:template>
+ <xsl:template match="webpage:img">
+ <img>
+ <xsl:copy-of select="@src"/>
+ <xsl:copy-of select="@name"/>
+ <xsl:attribute name="alt"><xsl:apply-templates select="alt"/></xsl:attribute>
+ </img>
+ </xsl:template>
+
+ <!-- Data list -->
+
+ <xsl:template match="webpage:dl">
+ <dl>
+ <xsl:apply-templates match="webpage:item"/>
+ </dl>
+ </xsl:template>
+
+ <xsl:template match="webpage:dl/webpage:item">
+ <dt>
+ <xsl:apply-templates select="title"/>
+ </dt>
+ <dd>
+ <xsl:apply-templates select="webpage:*"/>
+ </dd>
+ </xsl:template>
+
+ <xsl:template match="webpage:dl/webpage:item/title">
+ <xsl:apply-templates select="webpage:*"/>
+ </xsl:template>
+
<!-- Footnotes -->
<!-- Adapted from: http://www.microhowto.info/howto/create_a_list_of_numbered_footnotes_using_xslt.html -->
<xsl:template match="webpage:footnote">