- From: Felix Sasaki via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Oct 2012 15:45:08 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt
In directory hutz:/tmp/cvs-serv4699/tools/xslt
Modified Files:
odd2xmlspec.xsl xmlspec.xsl
Log Message:
NIF conversion described
Index: xmlspec.xsl
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/xmlspec.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xmlspec.xsl 26 Jul 2012 05:18:27 -0000 1.3
+++ xmlspec.xsl 12 Oct 2012 15:45:06 -0000 1.4
@@ -772,7 +772,9 @@
<xsl:template match="eg">
<xsl:variable name="content">
<xsl:call-template name="anchor"/>
- <pre xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:choose>
+ <xsl:when test="parent::example">
+ <pre xmlns="http://www.w3.org/1999/xhtml">
<xsl:if test="@diff and $show.diff.markup != 0">
<xsl:attribute name="class">
<xsl:text>diff-</xsl:text>
@@ -780,7 +782,15 @@
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
- </pre>
+ </pre></xsl:when>
+ <xsl:otherwise>
+ <div xmlns="http://www.w3.org/1999/xhtml" class="exampleOuter">
+ <pre xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates/>
+ </pre>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$tabular.examples = 0">
Index: odd2xmlspec.xsl
===================================================================
RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/odd2xmlspec.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- odd2xmlspec.xsl 15 Sep 2012 21:47:10 -0000 1.7
+++ odd2xmlspec.xsl 12 Oct 2012 15:45:06 -0000 1.8
@@ -19,7 +19,8 @@
xmlns:estr="http://exslt.org/strings"
xmlns:spec="http://example.com/xmlspec"
xmlns:parsehtml5="Html5ToSaxon65Node"
- exclude-result-prefixes="exsl estr edate fo a xd tei rng local teix xs eg its html dbk xlink parsehtml5"
+ xmlns:parsetext="TextToSaxon65Node"
+ exclude-result-prefixes="exsl estr edate fo a xd tei rng local teix xs eg its html dbk xlink parsehtml5 parsetext"
extension-element-prefixes="edate exsl estr spec"
version="1.0">
@@ -1250,6 +1251,9 @@
<xsl:apply-templates select="exsl:node-set($html5doc)/doc/html"
mode="verbatim"/>
</xsl:when>
+ <xsl:when test="@type='text'">
+ <xsl:copy-of select="parsetext:createOutput(@target)"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="document(@target)"
mode="verbatim"/>
Received on Friday, 12 October 2012 15:45:09 UTC