Skip to content

Commit a60cc9c

Browse files
author
Lloyd McKenzie
committed
Improved layout of vocabulary, fixed messages for missing name and description
1 parent cbf6454 commit a60cc9c

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

layouts/layout-valueset.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@
55
<!--ReleaseHeader--><p id="publish-box">Publish Box goes here</p><!--EndReleaseHeader-->
66
<a name="root"> </a>
77
<h2 id="root">{{site.data.pages[page.path].title}}</h2>
8-
{% assign intro = site.data.pages[page.path].intro %}
9-
{% if site.data.pages[page.path].intro != null %}
10-
<div style="display:inline-block">
11-
{% include {{intro}} %}
12-
</div>
13-
{% endif %}
148
<p>
159
<b>Summary</b>
1610
</p>
17-
1811
{%include {{[type]}}-{{[id]}}-summary.xhtml%}
1912

13+
<p>
14+
<b>References</b>
15+
</p>
2016
{%include {{[type]}}-{{[id]}}-xref.xhtml%}
2117

18+
{% assign intro = site.data.pages[page.path].intro %}
19+
{% if site.data.pages[page.path].intro != null %}
20+
<div style="display:inline-block">
21+
{% include {{intro}} %}
22+
</div>
23+
{% endif %}
24+
2225
<a name="definition"> </a>
2326
<h3 id="definition">Content Logical Definition</h3>
2427

scripts/onGenerate.qa.xslt

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@
99
<xsl:apply-templates select="f:definition/f:resource"/>
1010
</xsl:template>
1111
<xsl:template match="@*|node()"/>
12-
<xsl:template match="f:definition/f:resource[not(f:name)]">
13-
<xsl:call-template name="raiseIssue">
14-
<xsl:with-param name="severity">error</xsl:with-param>
15-
<xsl:with-param name="code">required</xsl:with-param>
16-
<xsl:with-param name="details">Unable to find name for the resource. Names are mandatory to allow proper population of the artifact list.</xsl:with-param>
17-
<xsl:with-param name="location" select="concat('ImplementationGuide.definition.resource[', count(preceding::f:resource), ']')"/>
18-
</xsl:call-template>
19-
</xsl:template>
20-
<xsl:template match="f:definition/f:resource[not(f:description)]">
21-
<xsl:call-template name="raiseIssue">
22-
<xsl:with-param name="severity">warning</xsl:with-param>
23-
<xsl:with-param name="code">invariant</xsl:with-param>
24-
<xsl:with-param name="details">Unable to find description for the resource. Descriptions are strongly encouraged to allow proper population of the artifact list.</xsl:with-param>
25-
<xsl:with-param name="location" select="concat('ImplementationGuide.definition.resource[', count(preceding::f:resource), ']')"/>
26-
</xsl:call-template>
12+
<xsl:template match="f:definition/f:resource">
13+
<xsl:if test="not(f:name)">
14+
<xsl:call-template name="raiseIssue">
15+
<xsl:with-param name="severity">error</xsl:with-param>
16+
<xsl:with-param name="code">required</xsl:with-param>
17+
<xsl:with-param name="details" select="concat('Unable to find name for the resource ', f:reference/f:reference/@value, '. Names are mandatory to allow proper population of the artifact list.')"/>
18+
<xsl:with-param name="location" select="concat('ImplementationGuide.definition.resource[', count(preceding::f:resource), ']')"/>
19+
</xsl:call-template>
20+
</xsl:if>
21+
<xsl:if test="not(f:description)">
22+
<xsl:call-template name="raiseIssue">
23+
<xsl:with-param name="severity">warning</xsl:with-param>
24+
<xsl:with-param name="code">invariant</xsl:with-param>
25+
<xsl:with-param name="details" select="concat('Unable to find description for the resource ', f:reference/f:reference/@value, '. Descriptions are strongly encouraged to allow proper population of the artifact list.')"/>
26+
<xsl:with-param name="location" select="concat('ImplementationGuide.definition.resource[', count(preceding::f:resource), ']')"/>
27+
</xsl:call-template>
28+
</xsl:if>
2729
</xsl:template>
2830
</xsl:stylesheet>

0 commit comments

Comments
 (0)