- From: Doug Davis via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 06 Feb 2010 13:03:38 +0000
- To: public-ws-resource-access-notifications@w3.org
Update of /w3ccvs/WWW/2002/ws/ra/edcopies
In directory hutz:/tmp/cvs-serv17421
Modified Files:
xmlspec.dtd xmlspec.xsl
Log Message:
needed new tags for state tables
Index: xmlspec.xsl
===================================================================
RCS file: /w3ccvs/WWW/2002/ws/ra/edcopies/xmlspec.xsl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- xmlspec.xsl 23 Sep 2009 17:42:32 -0000 1.13
+++ xmlspec.xsl 6 Feb 2010 13:03:36 -0000 1.14
@@ -903,6 +903,7 @@
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates select=".." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates/>
</h2>
</xsl:template>
@@ -915,6 +916,7 @@
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates select=".." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates/>
</h3>
</xsl:template>
@@ -927,6 +929,7 @@
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates select=".." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates/>
</h4>
</xsl:template>
@@ -939,6 +942,7 @@
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates select=".." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates/>
</h5>
</xsl:template>
@@ -951,6 +955,7 @@
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates select=".." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates/>
</h6>
</xsl:template>
@@ -963,6 +968,7 @@
<xsl:with-param name="node" select=".."/>
</xsl:call-template>
<xsl:apply-templates select=".." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates/>
<xsl:text> (Non-Normative)</xsl:text>
</h2>
@@ -1789,7 +1795,9 @@
</xsl:message>
</xsl:when>
<xsl:when test="local-name($target)='issue' or starts-with(local-name($target), 'div') or starts-with(local-name($target), 'inform-div') or local-name($target) = 'vcnote' or local-name($target) = 'prod' or local-name($target) = 'example' or local-name($target) = 'label' or $target/self::item[parent::olist]">
- <xsl:apply-templates select="$target" mode="specref"/>
+ <xsl:apply-templates select="$target" mode="specref">
+ <xsl:with-param name="show" select="@show"/>
+ </xsl:apply-templates>
</xsl:when>
<!-- Dug added -->
@@ -1934,13 +1942,25 @@
</xsl:template>
<xsl:template match="div1|div2|div3|div4|div5" mode="specref">
+ <xsl:param name="show"></xsl:param>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target"/>
</xsl:attribute>
<b>
- <xsl:apply-templates select="." mode="divnum"/>
- <xsl:apply-templates select="head" mode="text"/>
+ <xsl:choose>
+ <xsl:when test="$show='num'">
+ <xsl:apply-templates select="." mode="divnum"/>
+ </xsl:when>
+ <xsl:when test="$show='title'">
+ <xsl:apply-templates select="head" mode="text"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
+ <xsl:apply-templates select="head" mode="text"/>
+ </xsl:otherwise>
+ </xsl:choose>
</b>
</a>
</xsl:template>
@@ -1952,6 +1972,7 @@
</xsl:attribute>
<b>
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<xsl:apply-templates select="head" mode="text"/>
</b>
</a>
@@ -2520,50 +2541,57 @@
<!-- mode: divnum -->
<xsl:template mode="divnum" match="div1">
- <xsl:number format="1 "/>
+ <xsl:number format="1"/>
</xsl:template>
<xsl:template mode="divnum" match="back/div1 | inform-div1">
- <xsl:number count="div1 | inform-div1" format="A "/>
+ <xsl:number count="div1 | inform-div1" format="A"/>
</xsl:template>
<xsl:template mode="divnum" match="front/div1 | front//div2 | front//div3 | front//div4 | front//div5"/>
<xsl:template mode="divnum" match="div2">
- <xsl:number level="multiple" count="div1 | div2" format="1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2" format="1.1"/>
</xsl:template>
<xsl:template mode="divnum" match="back//div2">
- <xsl:number level="multiple" count="div1 | div2 | inform-div1" format="A.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | inform-div1" format="A.1"/>
</xsl:template>
<xsl:template mode="divnum" match="div3">
- <xsl:number level="multiple" count="div1 | div2 | div3" format="1.1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | div3" format="1.1.1"/>
</xsl:template>
<xsl:template mode="divnum" match="back//div3">
- <xsl:number level="multiple" count="div1 | div2 | div3 | inform-div1" format="A.1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | div3 | inform-div1" format="A.1.1"/>
</xsl:template>
<xsl:template mode="divnum" match="div4">
- <xsl:number level="multiple" count="div1 | div2 | div3 | div4" format="1.1.1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | div3 | div4" format="1.1.1.1"/>
</xsl:template>
<xsl:template mode="divnum" match="back//div4">
- <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | inform-div1" format="A.1.1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | inform-div1" format="A.1.1.1"/>
</xsl:template>
<xsl:template mode="divnum" match="div5">
- <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | div5" format="1.1.1.1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | div5" format="1.1.1.1.1"/>
</xsl:template>
<xsl:template mode="divnum" match="back//div5">
- <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | div5 | inform-div1" format="A.1.1.1.1 "/>
+ <xsl:number level="multiple" count="div1 | div2 | div3 | div4 | div5 | inform-div1" format="A.1.1.1.1"/>
</xsl:template>
<!-- Dug -->
<xsl:template mode="divnum" match="table/caption">
- <xsl:number count="div1" level="multiple" format="1"/>
+ <xsl:choose>
+ <xsl:when test="ancestor-or-self::*[name()='back']">
+ <xsl:number count="div1" level="multiple" format="A"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:number count="div1" level="multiple" format="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:text>-</xsl:text>
<xsl:number level="any" from='div1' count="table" format="1"/>
</xsl:template>
@@ -2725,6 +2753,7 @@
<!-- mode: toc -->
<xsl:template mode="toc" match="div1">
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
@@ -2743,6 +2772,7 @@
<xsl:template mode="toc" match="div2">
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;</xsl:text>
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
@@ -2761,6 +2791,7 @@
<xsl:template mode="toc" match="div3">
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text>
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
@@ -2779,6 +2810,7 @@
<xsl:template mode="toc" match="div4">
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text>
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
@@ -2797,6 +2829,7 @@
<xsl:template mode="toc" match="div5">
<xsl:text disable-output-escaping="yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</xsl:text>
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
@@ -2811,6 +2844,7 @@
<xsl:template mode="toc" match="inform-div1">
<xsl:apply-templates select="." mode="divnum"/>
+ <xsl:text> </xsl:text>
<a xmlns="http://www.w3.org/1999/xhtml">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
Index: xmlspec.dtd
===================================================================
RCS file: /w3ccvs/WWW/2002/ws/ra/edcopies/xmlspec.dtd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- xmlspec.dtd 30 Jan 2009 16:00:56 -0000 1.2
+++ xmlspec.dtd 6 Feb 2010 13:03:36 -0000 1.3
@@ -285,7 +285,7 @@
<!ENTITY % local.tech.pcd.mix " "> <!-- compensate for IE bug; suggested by ht -->
<!ENTITY % tech.pcd.mix
- "#PCDATA|%loc.class;|%ednote.class;|phrase|rfc2119 %local.tech.pcd.mix;">
+ "#PCDATA|%loc.class;|%ednote.class;|phrase|rfc2119|specref %local.tech.pcd.mix;">
<!-- ............................................................... -->
<!-- Entities for customizable content models ...................... -->
@@ -357,7 +357,8 @@
<!ENTITY % ref.att
'ref IDREF #IMPLIED'>
<!ENTITY % ref-req.att
- 'ref IDREF #REQUIRED'>
+ 'ref IDREF #REQUIRED
+ show CDATA #IMPLIED'>
<!--
#1998-03-23: maler: Added show and actuate attributes to href.
@@ -1599,6 +1600,7 @@
'abbr CDATA #IMPLIED
axis CDATA #IMPLIED
headers IDREFS #IMPLIED
+ nowrap CDATA #IMPLIED
scope (row
|col
|rowgroup
Received on Saturday, 6 February 2010 13:03:39 UTC