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-serv24616/tools/xslt

Modified Files:
	makeXmlspecValid.xsl odd2xmlspec.xsl 
	xmlspec-i18n-itstagset.xsl 
Log Message:
various edits, see http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2012Nov/0202.html 

--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/makeXmlspecValid.xsl	2012/06/28 13:06:40	1.1
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/makeXmlspecValid.xsl	2012/11/25 11:10:40	1.2
@@ -34,16 +34,7 @@
     </xsl:template>
 
     <xsl:template match="el | att">
-        <xsl:choose>
-            <xsl:when test="parent::loc | parent::a">
-                <xsl:value-of select="."/>
-            </xsl:when>
-            <xsl:otherwise>
-                <code>
-                    <xsl:value-of select="."/>
-                </code>
-            </xsl:otherwise>
-        </xsl:choose>
+       <code role="{@role}"><xsl:value-of select="."/></code>
     </xsl:template>
     
     <xsl:template match="@class">
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/odd2xmlspec.xsl	2012/10/30 20:39:59	1.11
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/odd2xmlspec.xsl	2012/11/25 11:10:40	1.12
@@ -1559,23 +1559,7 @@
   </xsl:template>
 
   <xsl:template match="tei:gi">
-    <xsl:choose>
-      <xsl:when test="@scheme and not(@scheme='ITS')">
-          <xsl:apply-templates select="." mode="show"/>
-      </xsl:when>
-      <xsl:when test="key('LOCALELEMENTIDS',.)">
-        <a role="el" href="#{.}">
-          <xsl:apply-templates select="." mode="show"/>
-        </a>
-      </xsl:when>
-      <xsl:otherwise>
-          <xsl:apply-templates select="." mode="show"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
-  <xsl:template match="tei:gi" mode="show">
-    <el>
+    <el role="its-elem-markup">
       <xsl:apply-templates/>
     </el>
   </xsl:template>
@@ -1587,23 +1571,7 @@
   </xsl:template>
 
   <xsl:template match="tei:att">
-    <xsl:choose>
-      <xsl:when test="@type='element'">
-        <xsl:call-template name="attFromElement"/>
-      </xsl:when>
-      <xsl:when test="@type='class'">
-        <xsl:call-template name="attFromClass"/>
-      </xsl:when>
-      <xsl:when test="key('CLASSATTIDS',.)">
-        <xsl:call-template name="attFromClass"/>
-      </xsl:when>
-      <xsl:when test="key('ELEMENTATTIDS',.)">
-        <xsl:call-template name="attFromElement"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <att><xsl:value-of select="."/></att>
-      </xsl:otherwise>
-    </xsl:choose>
+        <att role="its-attr-markup"><xsl:value-of select="."/></att>
   </xsl:template>
 
   <xsl:template name="attFromElement">
--- /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/xmlspec-i18n-itstagset.xsl	2012/11/11 16:43:46	1.4
+++ /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/xmlspec-i18n-itstagset.xsl	2012/11/25 11:10:40	1.5
@@ -432,4 +432,8 @@
         <b style="color: navy"><xsl:apply-templates mode="xslthl"/></b>
     </xsl:template>
     
-</xsl:transform>
+    <xsl:template match="code[@role='its-elem-markup' or @role='its-attr-markup']">
+        <code class="{@role}"><xsl:value-of select="."/></code>
+    </xsl:template>
+    
+</xsl:transform>
\ No newline at end of file

Received on Sunday, 25 November 2012 11:10:46 UTC