[jbosstools-commits] JBoss Tools SVN: r6527 - in trunk: as/docs/resources/support/lib and 2 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Feb 22 06:36:33 EST 2008


Author: smukhina
Date: 2008-02-22 06:36:33 -0500 (Fri, 22 Feb 2008)
New Revision: 6527

Added:
   trunk/as/docs/resources/styles/en/code-highlight.xsl
   trunk/as/docs/resources/support/lib/highlight-3.1.4.GA.jar
   trunk/documentation/guides/resources/styles/en/code-highlight.xsl
   trunk/documentation/guides/resources/support/lib/highlight-3.1.4.GA.jar
Log:
http://jira.jboss.com/jira/browse/JBIDE-1703
stylesheet is changed 

Added: trunk/as/docs/resources/styles/en/code-highlight.xsl
===================================================================
--- trunk/as/docs/resources/styles/en/code-highlight.xsl	                        (rev 0)
+++ trunk/as/docs/resources/styles/en/code-highlight.xsl	2008-02-22 11:36:33 UTC (rev 6527)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+
+<!--
+
+-->
+
+<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"
+                xmlns:rf="java:org.richfaces.highlight.XhtmlRendererFactory"
+                >
+
+	<xsl:template match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']|programlisting[@role='CSS']">
+		
+		<xsl:variable name="role">
+			<xsl:value-of select="s:toUpperCase(string(@role))" xmlns:s="java:java.lang.String"/>
+		</xsl:variable>
+		<xsl:variable name="child.content">
+			<xsl:apply-templates/>
+		</xsl:variable>
+		<xsl:variable name="factory" select="rf:instance()"/>
+		<xsl:variable name="hiliter" select="rf:getRenderer($factory, string($role))"/>
+		<pre class="{$role}">	
+			<xsl:choose>
+				<xsl:when test="$hiliter">
+					<xsl:value-of select="jhr:highlight($hiliter, $role, string($child.content), 'UTF-8', true())"
+						xmlns:jhr="com.uwyn.jhighlight.renderer.Renderer" disable-output-escaping="yes"/>
+				</xsl:when>
+				<xsl:otherwise>
+					<xsl:copy-of select="$child.content"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</pre>
+		
+	</xsl:template>
+                
+</xsl:stylesheet>
\ No newline at end of file

Added: trunk/as/docs/resources/support/lib/highlight-3.1.4.GA.jar
===================================================================
(Binary files differ)


Property changes on: trunk/as/docs/resources/support/lib/highlight-3.1.4.GA.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/documentation/guides/resources/styles/en/code-highlight.xsl
===================================================================
--- trunk/documentation/guides/resources/styles/en/code-highlight.xsl	                        (rev 0)
+++ trunk/documentation/guides/resources/styles/en/code-highlight.xsl	2008-02-22 11:36:33 UTC (rev 6527)
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+
+<!--
+
+-->
+
+<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"
+                xmlns:rf="java:org.richfaces.highlight.XhtmlRendererFactory"
+                >
+
+	<xsl:template match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']|programlisting[@role='CSS']">
+		
+		<xsl:variable name="role">
+			<xsl:value-of select="s:toUpperCase(string(@role))" xmlns:s="java:java.lang.String"/>
+		</xsl:variable>
+		<xsl:variable name="child.content">
+			<xsl:apply-templates/>
+		</xsl:variable>
+		<xsl:variable name="factory" select="rf:instance()"/>
+		<xsl:variable name="hiliter" select="rf:getRenderer($factory, string($role))"/>
+		<pre class="{$role}">	
+			<xsl:choose>
+				<xsl:when test="$hiliter">
+					<xsl:value-of select="jhr:highlight($hiliter, $role, string($child.content), 'UTF-8', true())"
+						xmlns:jhr="com.uwyn.jhighlight.renderer.Renderer" disable-output-escaping="yes"/>
+				</xsl:when>
+				<xsl:otherwise>
+					<xsl:copy-of select="$child.content"/>
+				</xsl:otherwise>
+			</xsl:choose>
+		</pre>
+		
+	</xsl:template>
+                
+</xsl:stylesheet>
\ No newline at end of file

Added: trunk/documentation/guides/resources/support/lib/highlight-3.1.4.GA.jar
===================================================================
(Binary files differ)


Property changes on: trunk/documentation/guides/resources/support/lib/highlight-3.1.4.GA.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the jbosstools-commits mailing list