- From: Felix Sasaki via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 16 Sep 2012 11:22:21 +0000
- To: public-multilingualweb-lt-commits@w3.org
Update of /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt In directory hutz:/tmp/cvs-serv22942/tools/xslt Modified Files: verbatim.xsl Log Message: now unquoted attributes for HTML5 examples following http://dev.w3.org/html5/markup/syntax.html#syntax-attr-unquoted Index: verbatim.xsl =================================================================== RCS file: /w3ccvs/WWW/International/multilingualweb/lt/drafts/its20/tools/xslt/verbatim.xsl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- verbatim.xsl 15 Sep 2012 21:47:10 -0000 1.6 +++ verbatim.xsl 16 Sep 2012 11:22:19 -0000 1.7 @@ -95,11 +95,6 @@ </xsl:choose> </xsl:template> -<xsl:template match="meta[ancestor::html]" mode="verbatim"> - <xsl:call-template name="makeIndent"/> - <xsl:text><meta charset=utf-8></xsl:text> -</xsl:template> - <xsl:template match="*" mode="verbatim"> <xsl:choose> <xsl:when test="not(preceding-sibling::node())"> @@ -278,9 +273,16 @@ </xsl:choose> <xsl:value-of select="local-name(.)"/> <xsl:value-of disable-output-escaping="yes" select="$endItalic"/> +<xsl:choose> + <xsl:when test="ancestor::html and (not(contains(.,' ')) and not(contains(.,'"')) and not(contains(.,'=')) and not(contains(.,'>')) and not(contains(.,'<')) and not(contains(.,'`')) and not(string-length()=0))"> + <xsl:text>=</xsl:text> + <xsl:value-of select="."/> + </xsl:when> + <xsl:otherwise> <xsl:text>="</xsl:text> <xsl:value-of select="."/> - <xsl:text>"</xsl:text> + <xsl:text>"</xsl:text></xsl:otherwise> +</xsl:choose> </xsl:for-each> <xsl:choose> <xsl:when test="child::node()">
Received on Sunday, 16 September 2012 11:22:22 UTC