Skip to content

Commit facee45

Browse files
committed
Stylesheet handling of fos:result/@Narrative
1 parent 0d9df59 commit facee45

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

specifications/xpath-functions-40/style/generate-qt3-test-set.xsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@
130130
</xsl:otherwise>
131131
</xsl:choose>
132132
</xsl:when>
133+
<xsl:when test="fos:result[@narrative]">
134+
<!-- In this case the generated test must compile and execute, but the result is not tested -->
135+
<assert>true()</assert>
136+
</xsl:when>
133137
<xsl:when test="fos:result[@approx]">
134138
<assert>abs($result - {fos:result}) lt 1e-5</assert>
135139
</xsl:when>

specifications/xpath-functions-40/style/merge-function-specs.xsl

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@
203203
<xsl:if test="fos:use-two-column-format($fspec/fos:examples)">
204204
<thead>
205205
<tr>
206-
<th>Expression</th>
207-
<th>Result</th>
206+
<th>Expression</th>
207+
<th>Result</th>
208208
</tr>
209209
</thead>
210210
</xsl:if>
@@ -215,16 +215,6 @@
215215
</def>
216216
</gitem>
217217
</xsl:if>
218-
<!--<xsl:if test="$fspec/fos:history">
219-
<gitem>
220-
<label>History</label>
221-
<def role="example">
222-
<p>
223-
<xsl:apply-templates select="$fspec/fos:history/fos:version/node()"/>
224-
</p>
225-
</def>
226-
</gitem>
227-
</xsl:if>-->
228218
</glist>
229219
</xsl:template>
230220

@@ -553,6 +543,9 @@
553543

554544
<xsl:template match="fos:result">
555545
<xsl:choose>
546+
<xsl:when test="@narrative">
547+
<p><xsl:apply-templates/></p>
548+
</xsl:when>
556549
<xsl:when test="contains(., codepoints-to-string(10)) or ..//eg">
557550
<eg><xsl:value-of select="."/></eg>
558551
</xsl:when>

0 commit comments

Comments
 (0)