writerfilter07: handle stereotypes of <attributes> correctly, use @token in <attribute>
This commit is contained in:
parent
bbcda12bdb
commit
c48b54d421
1 changed files with 13 additions and 4 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue