Skip to content

Commit d2610ea

Browse files
pre-declare individual attributes as well as their classes
1 parent 2ac0905 commit d2610ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

odds/odd2dtd.xsl

+7
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,13 @@ of this software, even if advised of the possibility of such damage.
12211221
<xsl:value-of select="$thisclass"/>
12221222
<xsl:text>.attributes</xsl:text>
12231223
<xsl:text> ''&gt;</xsl:text>
1224+
<xsl:for-each select="tei:attList/tei:attDef">
1225+
<xsl:text>&#10;&lt;!ENTITY % </xsl:text>
1226+
<xsl:value-of select="$thisclass"/>
1227+
<xsl:text>.attribute.</xsl:text>
1228+
<xsl:value-of select="translate(@ident,':','')"/>
1229+
<xsl:text> ''&gt;&#10;</xsl:text>
1230+
</xsl:for-each>
12241231
</xsl:when>
12251232
<xsl:otherwise>
12261233
<xsl:for-each select="tei:attList/tei:attDef">

0 commit comments

Comments
 (0)