diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-24 08:56:40 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-24 08:56:40 +0200 |
commit | 3eed79e021d901b46fe2ac7a29b208b6808881ba (patch) | |
tree | 59ea6bba788687ce3f9db66585ddf66333dad256 | |
parent | 4a2ec37a6aa778ebfaa091b34bd54393980f95d9 (diff) | |
download | mutti-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-- | Makefile | 2 | ||||
-rw-r--r-- | xsl/common.xsl | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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" |