writerfilter07: handle stereotypes of <attributes> correctly, use @token in <attribute>

This commit is contained in:
Henning Brinkmann[hbrinkm] 2009-11-24 16:01:39 +01:00
parent bbcda12bdb
commit c48b54d421

View file

@ -96,7 +96,9 @@
<xsl:for-each select="stereotype">
<UML:ModelElement.stereotype>
<UML:Stereotype>
<xsl:attribute name="xmi.idref">
<xsl:value-of select="@name"/>
</xsl:attribute>
</UML:Stereotype>
</UML:ModelElement.stereotype>
</xsl:for-each>
@ -187,8 +189,15 @@
<xsl:call-template name="taggedvalue">
<xsl:with-param name="type">attrid</xsl:with-param>
<xsl:with-param name="value">
<xsl:choose>
<xsl:when test="@token">
<xsl:value-of select="@token"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>rtf:</xsl:text>
<xsl:value-of select="@name"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
<xsl:if test="@array-count">