- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 30 Jul 2009 11:08:56 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv27211/tools
Modified Files:
generate-spec-source.xsl
Log Message:
streamlined documentation for common attributes
Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -d -r1.191 -r1.192
--- generate-spec-source.xsl 30 Jul 2009 07:44:13 -0000 1.191
+++ generate-spec-source.xsl 30 Jul 2009 11:08:54 -0000 1.192
@@ -194,8 +194,8 @@
<xsl:text> </xsl:text>
<h2 class="common-subhead">
<xsl:choose>
- <xsl:when test="$type='i18n'">
- <xsl:text>Internationalization</xsl:text>
+ <xsl:when test="$type='xml'">
+ <xsl:text>XML</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$type-tc"/>
@@ -216,58 +216,23 @@
<xsl:text> = </xsl:text>
<xsl:for-each select="document('../html.rnc.spec.html')//*[@id=$ref]/node()">
<xsl:choose>
- <xsl:when test="@href='#common.attrs.xml-id'">
+ <xsl:when test="@href='#common.attrs.xmlbase'">
<xsl:copy>
<xsl:copy-of select="@*"/>
- <xsl:text>xml:id</xsl:text>
+ <xsl:text>xml:base</xsl:text>
</xsl:copy>
</xsl:when>
- <xsl:when test="@href='#common.attrs.base'">
- <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='common.attrs.base']/node()">
- <xsl:choose>
- <xsl:when test="@href='#common.attrs.xmlbase'">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:text>xml:base</xsl:text>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="@href='#common.attrs.space'">
- <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='common.attrs.space']/node()">
- <xsl:choose>
- <xsl:when test="@href='#common.attrs.xmlspace'">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:text>xml:space</xsl:text>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
+ <xsl:when test="@href='#common.attrs.xmlspace'">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:text>xml:space</xsl:text>
+ </xsl:copy>
</xsl:when>
- <xsl:when test="@href='#common.attrs.language'">
- <xsl:text>(</xsl:text>
- <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='common.attrs.language']/node()">
- <xsl:choose>
- <xsl:when test="@href='#common.attrs.xmllang'">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:text>xml:lang</xsl:text>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:text>)</xsl:text>
+ <xsl:when test="@href='#common.attrs.xmllang'">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:text>xml:lang</xsl:text>
+ </xsl:copy>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
@@ -284,26 +249,7 @@
<xsl:text> </xsl:text>
<dl class="attr-defs">
<xsl:for-each select="document('../html.rnc.spec.html')//h:*[@id=$ref]/h:a">
- <xsl:choose>
- <xsl:when test="@href='#common.attrs.base'">
- <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='common.attrs.base']/h:a">
- <xsl:call-template name="make.attribute.definition"/>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="@href='#common.attrs.space'">
- <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='common.attrs.space']/h:a">
- <xsl:call-template name="make.attribute.definition"/>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="@href='#common.attrs.language'">
- <xsl:for-each select="document('../html.rnc.spec.html')//*[@id='common.attrs.language']/h:a">
- <xsl:call-template name="make.attribute.definition"/>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="make.attribute.definition"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="make.attribute.definition"/>
</xsl:for-each>
<xsl:text> </xsl:text>
</dl>
@@ -2143,6 +2089,15 @@
<xsl:value-of
select="concat('on',substring-after($ref,'scripting.attr.form.'))"/>
</xsl:when>
+ <xsl:when test="contains($ref,'xmlbase')">
+ <xsl:text>xml:base</xsl:text>
+ </xsl:when>
+ <xsl:when test="contains($ref,'xmllang')">
+ <xsl:text>xml:lang</xsl:text>
+ </xsl:when>
+ <xsl:when test="contains($ref,'xmlspace')">
+ <xsl:text>xml:space</xsl:text>
+ </xsl:when>
<xsl:otherwise>
<xsl:call-template name="substring-after-last">
<xsl:with-param name="input" select="node()"/>
@@ -2265,7 +2220,6 @@
</xsl:when>
<xsl:when
test="document('../src/attributes.html')//*[@id=$ref]">
- <xsl:message>This: <xsl:value-of select="$ref"/></xsl:message>
<xsl:copy-of
select="document('../src/attributes.html')//h:dd[preceding-sibling::h:dt[@id=$ref]]"/>
</xsl:when>
Received on Thursday, 30 July 2009 11:09:07 UTC