CVS WWW/International/multilingualweb/lt/drafts/its20/tools/xslt

Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt
In directory gil:/tmp/cvs-serv6209/tools/xslt

Modified Files:
	odd2xmlspec.xsl xmlspec-i18n-itstagset.xsl 
Log Message:
Implemented ACTION-341 (better syntax highlighting in HTML sources)

--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/odd2xmlspec.xsl	2012/12/01 07:56:46	1.13
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/odd2xmlspec.xsl	2013/02/18 17:40:49	1.14
@@ -1268,6 +1268,7 @@
           </xsl:otherwise>
         </xsl:choose>
         -->
+        <xsl:if test="@type"><xsl:attribute name="role"><xsl:value-of select="@type"/></xsl:attribute></xsl:if>
         <xsl:copy-of select="replace(unparsed-text(resolve-uri(@target, base-uri())),
                                      '&lt;!-- timestamp .* -->', '')"/>
       </eg>
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/xmlspec-i18n-itstagset.xsl	2012/12/11 08:35:14	1.6
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/xmlspec-i18n-itstagset.xsl	2013/02/18 17:40:49	1.7
@@ -362,6 +362,20 @@
         </xsl:choose>
     </xsl:template>
 
+    <xsl:template match="eg[@role='html5']/text()" priority="10">
+        <xsl:variable name="content">
+            <xsl:copy-of select="."/>
+        </xsl:variable>        
+        <xsl:choose>
+            <xsl:when test="function-available('s6hl:highlight')">
+                <xsl:apply-templates select="s6hl:highlight('html', exsl:node-set($content), 'file:tools/xslthl/xslthl-config.xml')" mode="xslthl"/>        
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="."/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
     <xsl:template match="xslthl:keyword" mode="xslthl">
         <strong class="hl-keyword">
             <xsl:apply-templates mode="xslthl"/>

Received on Monday, 18 February 2013 17:40:56 UTC