Author: smukhina
Date: 2007-09-07 08:43:25 -0400 (Fri, 07 Sep 2007)
New Revision: 3487
Added:
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/highlight.xsl
Modified:
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl
Log:
http://jira.jboss.com/jira/browse/RHDS-149
the code highlighting is fixed
Added: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/highlight.xsl
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/highlight.xsl
(rev 0)
+++
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/highlight.xsl 2007-09-07
12:43:25 UTC (rev 3487)
@@ -0,0 +1,18 @@
+<!DOCTYPE xsl:stylesheet>
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0"
xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+ <xsl:template
match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']">
+ <xsl:variable name="kidz">
+ <xsl:apply-templates></xsl:apply-templates>
+ </xsl:variable>
+ <pre class="{@role}">
+ <xsl:value-of
+ select="javahl:highlight(string($kidz), attribute::role)"
+ xmlns:javahl="java:com.exadel.docbook.colorer.HighLighter"
+ disable-output-escaping="yes"/>
+ </pre>
+ </xsl:template>
+
+</xsl:stylesheet>
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl 2007-09-07
11:24:41 UTC (rev 3486)
+++ trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl 2007-09-07
12:43:25 UTC (rev 3487)
@@ -25,6 +25,8 @@
<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/html/docboo...
<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+<xsl:include href="./highlight.xsl"></xsl:include>
+
<!--###################################################
HTML Settings
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl 2007-09-07
11:24:41 UTC (rev 3486)
+++
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl 2007-09-07
12:43:25 UTC (rev 3487)
@@ -28,6 +28,7 @@
<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/html/chunk....
<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+<xsl:include href="./highlight.xsl"></xsl:include>
<!--###################################################