summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-24 08:56:40 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-08-24 08:56:40 +0200
commit3eed79e021d901b46fe2ac7a29b208b6808881ba (patch)
tree59ea6bba788687ce3f9db66585ddf66333dad256
parent4a2ec37a6aa778ebfaa091b34bd54393980f95d9 (diff)
downloadmutti-web-3eed79e021d901b46fe2ac7a29b208b6808881ba.tar.gz
mutti-web-3eed79e021d901b46fe2ac7a29b208b6808881ba.tar.bz2
mutti-web-3eed79e021d901b46fe2ac7a29b208b6808881ba.zip
Make suffix be a parameter to the stylesheet.
Default to .xml for viewing xml files directly in browser. Set the parameter in Makefile for generated pages to .xhtml.
-rw-r--r--Makefile2
-rw-r--r--xsl/common.xsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e126400..091e6a2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-xsltproc=xsltproc
+xsltproc=xsltproc --stringparam suffix .xhtml
svg2png=rsvg-convert -f png
#pages=$(shell xmllint --xpath "//*/@filename" main.xml | sed 's/filename=//g'| xargs echo)
diff --git a/xsl/common.xsl b/xsl/common.xsl
index 30eb522..d3cc654 100644
--- a/xsl/common.xsl
+++ b/xsl/common.xsl
@@ -14,7 +14,7 @@
<xsl:variable name="filename" select="/s:html/@name" />
<xsl:variable name="title" select="document('../main.xml')/s:site/s:page[@filename = $filename]/@title" />
- <xsl:variable name="suffix" select="'.xhtml'" />
+ <xsl:param name="suffix" select="'.xml'" />
<xsl:output method="xml" indent="yes"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"