File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
specifications/xpath-functions-40/style Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
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
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 >
You can’t perform that action at this time.
0 commit comments