Adding class generation also for CT_Empty

This commit is contained in:
Fridrich Štrba 2007-03-15 16:22:07 +00:00
parent 83cf6cb6f2
commit 2fbe44c7b0
2 changed files with 3 additions and 4 deletions

View file

@ -14438,7 +14438,6 @@
<value tokenid="226">zigZag</value>
<value tokenid="227">zigZagStitch</value>
</resource>
<resource name="CT_Empty" resource="SingleElement"/>
<resource name="EG_RunInnerContent" resource="Property">
<attribute name="br" tokenid="ooxml:EG_RunInnerContent_br"/>
<attribute name="t" tokenid="ooxml:EG_RunInnerContent_t"/>

View file

@ -5,9 +5,9 @@
*
* $RCSfile: resourcestools.xsl,v $
*
* $Revision: 1.11 $
* $Revision: 1.12 $
*
* last change: $Author: fridrich_strba $ $Date: 2007-03-15 15:34:44 $
* last change: $Author: fridrich_strba $ $Date: 2007-03-15 17:22:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -432,7 +432,7 @@ public:
<xsl:variable name="name" select="@name"/>
<xsl:choose>
<xsl:when test="ancestor::namespace//start[@name=$name]">1</xsl:when>
<xsl:when test="(starts-with(@name, 'CT_') or starts-with(@name, 'EG_')) and (.//rng:ref or .//rng:element or .//rng:attribute)">1</xsl:when>
<xsl:when test="(starts-with(@name, 'CT_') or starts-with(@name, 'EG_'))">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:template>