- From: Jirka Kozek via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 18 Oct 2012 10:10:14 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt In directory hutz:/tmp/cvs-serv26199/tools/xslt Modified Files: odd2xmlspec.xsl Log Message: Modified build to do just plain inclusion of external files. No magic is done. Probably identing in some files has to be adjusted. Index: odd2xmlspec.xsl =================================================================== RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/odd2xmlspec.xsl,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- odd2xmlspec.xsl 12 Oct 2012 15:45:06 -0000 1.8 +++ odd2xmlspec.xsl 18 Oct 2012 10:10:12 -0000 1.9 @@ -22,7 +22,7 @@ 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"> + version="2.0"> <!-- <xsl:import href="/usr/share/xml/tei/stylesheet/odds/teiodds.xsl"/> @@ -1078,7 +1078,7 @@ <xsl:param name="element">eg</xsl:param> <xsl:call-template name="make-body-from-r-t-f"> <xsl:with-param name="schema"> - <xsl:for-each select="exsl:node-set($content)/Wrapper"> + <xsl:for-each select="$content/Wrapper"> <xsl:call-template name="make-compact-schema"/> </xsl:for-each> </xsl:with-param> @@ -1242,6 +1242,7 @@ <xsl:template match="eg:egXML[@target]"> <eg> + <!-- <xsl:choose> <xsl:when test="@type='html5'"> <xsl:text><!DOCTYPE html>
</xsl:text> @@ -1259,6 +1260,9 @@ mode="verbatim"/> </xsl:otherwise> </xsl:choose> + --> + <xsl:copy-of select="replace(unparsed-text(resolve-uri(@target, base-uri())), + '<!-- timestamp .* -->', '')"/> </eg> <p>[Source file: <loc href="{@target}"><xsl:value-of select="@target"/></loc>]</p> </xsl:template> @@ -1663,7 +1667,11 @@ <xsl:value-of select="$text"/> </xsl:when> <xsl:otherwise> - <xsl:variable name="lines" select="estr:tokenize($text,' ')"/> + <xsl:variable name="lines" as="element()*"> + <xsl:for-each select="tokenize($text,' ')"> + <token><xsl:value-of select="."/></token> + </xsl:for-each> + </xsl:variable> <xsl:apply-templates select="$lines[1]" mode="normalline"/> </xsl:otherwise>
Received on Thursday, 18 October 2012 10:10:18 UTC