Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tviegut committed Oct 24, 2024
1 parent 4313b5c commit 6e97850
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 28 deletions.
25 changes: 11 additions & 14 deletions CIMToolPlugin/builders/puml-xsd-l2r.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@
<xsl:if test="not(@hideInDiagrams = 'true')">
<list begin="" indent="" delim="" end="">
<item>' <xsl:value-of select="@name"/></item>
<list begin="{concat('class ', @name, ' &lt;&lt;docroot-style&gt;&gt; &lt;&lt;Document Root&gt;&gt; &lt;&lt;(R, #F3F3F3)&gt;&gt;', ' &#123;')}" indent=" " delim="" end="{concat('&#125;', '&#xD;', '&#xA;')}"/>
<list begin="{concat('class ', @name, ' &lt;&lt;docroot-style&gt;&gt; &lt;&lt;Document Root&gt;&gt; &lt;&lt;(R, #F3F3F3)&gt;&gt;', ' &#123;')}" indent=" " delim="" end="{concat('&#125;', '&#xD;', '&#xA;')}">
<item><xsl:value-of select="$baseURI"/></item>
</list>
<xsl:for-each select="a:Root">
<!-- Output the association -->
<xsl:variable name="targetRoleEndName" select="concat('+', @name)"/>
Expand All @@ -236,19 +238,14 @@
<item>FontSize 14</item>
<item>Font Bold</item>
</list>
<item>' Add a note towards the upper left corner of the diagram</item>
<list begin="note as NoteInfo #lightyellow" indent=" " delim="" end="end note">
<item>Profile: <xsl:value-of select="$envelope"/></item>
<item>Namespace: <xsl:value-of select="$baseURI"/></item>
<xsl:if test="$copyright-single-line and $copyright-single-line != ''">
<item>Copyright: <xsl:value-of select="$copyright-single-line" disable-output-escaping="yes"/></item>
</xsl:if>
<xsl:if test="a:Note and a:Note[string-length(.) > 0]">
<item></item>
<item>Profile Notes:</item>
<xsl:apply-templates select="a:Note" mode="profile-notes"/>
</xsl:if>
</list>
<xsl:if test="a:Note and a:Note[string-length(.) > 0]">
<item>&#xD;&#xA;</item> <!-- CR/LF -->
<item>' Add a note towards the upper left corner of the diagram</item>
<list begin="note as NoteInfo {$docRootClassesColor}" indent=" " delim="" end="end note">
<item>Profile Notes:</item>
<xsl:apply-templates select="a:Note" mode="profile-notes"/>
</list>
</xsl:if>
<item>&#xD;&#xA;</item> <!-- CR/LF -->
</xsl:if>
<xsl:apply-templates select="a:Root|a:ComplexType|a:EnumeratedType|a:CompoundType|a:SimpleType|a:PrimitiveType"/>
Expand Down
25 changes: 11 additions & 14 deletions CIMToolPlugin/builders/puml-xsd-t2b.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@
<xsl:if test="not(@hideInDiagrams = 'true')">
<list begin="" indent="" delim="" end="">
<item>' <xsl:value-of select="@name"/></item>
<list begin="{concat('class ', @name, ' &lt;&lt;docroot-style&gt;&gt; &lt;&lt;Document Root&gt;&gt; &lt;&lt;(R, #F3F3F3)&gt;&gt;', ' &#123;')}" indent=" " delim="" end="{concat('&#125;', '&#xD;', '&#xA;')}"/>
<list begin="{concat('class ', @name, ' &lt;&lt;docroot-style&gt;&gt; &lt;&lt;Document Root&gt;&gt; &lt;&lt;(R, #F3F3F3)&gt;&gt;', ' &#123;')}" indent=" " delim="" end="{concat('&#125;', '&#xD;', '&#xA;')}">
<item><xsl:value-of select="$baseURI"/></item>
</list>
<xsl:for-each select="a:Root">
<!-- Output the association -->
<xsl:variable name="targetRoleEndName" select="concat('+', @name)"/>
Expand All @@ -236,19 +238,14 @@
<item>FontSize 14</item>
<item>Font Bold</item>
</list>
<item>' Add a note towards the upper left corner of the diagram</item>
<list begin="note as NoteInfo #lightyellow" indent=" " delim="" end="end note">
<item>Profile: <xsl:value-of select="$envelope"/></item>
<item>Namespace: <xsl:value-of select="$baseURI"/></item>
<xsl:if test="$copyright-single-line and $copyright-single-line != ''">
<item>Copyright: <xsl:value-of select="$copyright-single-line" disable-output-escaping="yes"/></item>
</xsl:if>
<xsl:if test="a:Note and a:Note[string-length(.) > 0]">
<item></item>
<item>Profile Notes:</item>
<xsl:apply-templates select="a:Note" mode="profile-notes"/>
</xsl:if>
</list>
<xsl:if test="a:Note and a:Note[string-length(.) > 0]">
<item>&#xD;&#xA;</item> <!-- CR/LF -->
<item>' Add a note towards the upper left corner of the diagram</item>
<list begin="note as NoteInfo {$docRootClassesColor}" indent=" " delim="" end="end note">
<item>Profile Notes:</item>
<xsl:apply-templates select="a:Note" mode="profile-notes"/>
</list>
</xsl:if>
<item>&#xD;&#xA;</item> <!-- CR/LF -->
</xsl:if>
<xsl:apply-templates select="a:Root|a:ComplexType|a:EnumeratedType|a:CompoundType|a:SimpleType|a:PrimitiveType"/>
Expand Down

0 comments on commit 6e97850

Please sign in to comment.