aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-07 20:59:44 +0200
committerAdrian Kummerlaender2014-08-07 20:59:44 +0200
commit40e8c5200f2e0ac227265f6166a5e33186cc4c09 (patch)
tree81a9ce6fd87d54f8671afe0add07d92ba5b18ec2 /source
parent4ba35f4999514043d2ff420779cb07cedb8b0d96 (diff)
downloadblog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.tar
blog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.tar.gz
blog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.tar.bz2
blog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.tar.lz
blog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.tar.xz
blog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.tar.zst
blog.kummerlaender.eu-40e8c5200f2e0ac227265f6166a5e33186cc4c09.zip
Cleaned code highlighter markup
* replaced "pre" node returned by the hightlighting script with an unstyled one * "pre" style is now declared in css
Diffstat (limited to 'source')
-rw-r--r--source/02_data/articles.xsl14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/02_data/articles.xsl b/source/02_data/articles.xsl
index b3ac0df..de8fc62 100644
--- a/source/02_data/articles.xsl
+++ b/source/02_data/articles.xsl
@@ -22,10 +22,16 @@
</xsl:template>
<xsl:template match="pre" mode="embellish">
- <xsl:call-template name="formatter">
- <xsl:with-param name="format">/usr/bin/highlight.sh</xsl:with-param>
- <xsl:with-param name="source" select="code/text()"/>
- </xsl:call-template>
+ <xsl:variable name="formatted_code">
+ <xsl:call-template name="formatter">
+ <xsl:with-param name="format">/usr/bin/highlight.sh</xsl:with-param>
+ <xsl:with-param name="source" select="code/text()"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <pre>
+ <xsl:copy-of select="xalan:nodeset($formatted_code)/pre/node()"/>
+ </pre>
</xsl:template>
<xsl:template name="list_tags">