its20 CVS commit

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

Modified Files:
	verbatim.xsl 
Log Message:
Initial version of provenance section

Index: verbatim.xsl
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/verbatim.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- verbatim.xsl	17 Sep 2012 10:14:44 -0000	1.8
+++ verbatim.xsl	14 Oct 2012 17:41:48 -0000	1.9
@@ -8,7 +8,8 @@
     xmlns:teix="http://www.tei-c.org/ns/Examples"
     xmlns:tei="http://www.tei-c.org/ns/1.0" 
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
-    xmlns:eg="http://www.tei-c.org/ns/Examples">
+    xmlns:eg="http://www.tei-c.org/ns/Examples"
+    xmlns:dc="http://purl.org/dc/elements/1.1/">
 
 <xsl:param name="startBold">&lt;span class="element"&gt;</xsl:param>
 <xsl:param name="endBold">&lt;/span&gt;</xsl:param>
@@ -167,6 +168,10 @@
       <xsl:text>its:</xsl:text>
       <xsl:value-of select="local-name(.)"/>
     </xsl:when>
+    <xsl:when test="namespace-uri()='http://purl.org/dc/elements/1.1/'">
+      <xsl:text>dc:</xsl:text>
+      <xsl:value-of select="local-name(.)"/>
+    </xsl:when>
     <xsl:when
         test="namespace-uri()='http://www.w3.org/1999/XSL/Transform'">
       <xsl:value-of disable-output-escaping="yes" select="$startRed"/>
@@ -223,6 +228,10 @@
     <xsl:if test="namespace-uri()='http://mynsuri.example.com'">
       <xsl:text>&#10;  xmlns:n="myNamescapeURI"</xsl:text>
     </xsl:if>
+    
+    <xsl:if test="namespace-uri()='http://purl.org/dc/elements/1.1/'">
+      <xsl:text>&#10;  xmlns:dc="http://purl.org/dc/elements/1.1/"</xsl:text>
+    </xsl:if>
 
     <xsl:for-each select="self::its:rules|its:*[@selector]"> 
       <!-- This should help to do the right thing for HTML5: not(.='http://www.w3.org/1999/xhtml') and $html5='yes' -->
@@ -263,6 +272,10 @@
         test="namespace-uri()='http://www.w3.org/2005/11/its'">
       <xsl:text>its:</xsl:text>
     </xsl:when>
+      <xsl:when
+        test="namespace-uri()='http://purl.org/dc/elements/1.1/'">
+        <xsl:text>dc:</xsl:text>
+      </xsl:when>
     <xsl:when test="namespace-uri()='http://www.w3.org/1999/xlink'">
       <xsl:text>xlink:</xsl:text>
     </xsl:when>
@@ -332,6 +345,11 @@
           <xsl:value-of select="local-name(.)"/>
         </xsl:when>
         <xsl:when
+          test="namespace-uri()='http://purl.org/dc/elements/1.1/'">
+          <xsl:text>dc:</xsl:text>
+          <xsl:value-of select="local-name(.)"/>
+        </xsl:when>
+        <xsl:when
             test="namespace-uri()='http://relaxng.org/ns/structure/1.0'">
           <xsl:text>rng:</xsl:text>
           <xsl:value-of select="local-name(.)"/>

Received on Sunday, 14 October 2012 17:41:52 UTC