diff options
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.xsl | 14 |
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"> |