@@ -265,6 +265,80 @@ toc:lower-roman
265265 </x : scenario >
266266 <!-- End Chris's refsect work -->
267267
268+ <!-- Begin Chris's Equation Work select="(//h:a[@data-type='xref'])[1]" -->
269+ <x : scenario label =" When an XREF points to a formal equation with a caption" >
270+ <x : context mode =" xref-to" select =" (//h:div[@data-type='equation'])[2]" >
271+ <section data-type =" chapter" >
272+ <div data-type =" equation" id =" formal_equation" >
273+ <h5 >I am a caption!</h5 >
274+ <p data-type =" tex" >$2 + 2 = 4$</p >
275+ </div >
276+ <div data-type =" equation" id =" formal_equation2" >
277+ <h5 >I am a caption!</h5 >
278+ <p data-type =" tex" >$2 + 2 = 4$</p >
279+ </div >
280+ </section >
281+ </x : context >
282+ <x : expect label =" Gentext should be created for the xref" >Equation 1-2</x : expect >
283+ </x : scenario >
284+
285+ <x : scenario label =" When an XREF points to a informal equation" >
286+ <x : context mode =" xref-to" select =" (//h:div[@data-type='equation'])[1]" >
287+ <section data-type =" chapter" >
288+ <div data-type =" equation" >
289+ <p data-type =" tex" >$2 + 2 = 4$</p >
290+ </div >
291+ </section >
292+ </x : context >
293+ <x : expect label =" Gentext should be created for the xref" >???</x : expect >
294+ </x : scenario >
295+
296+ <x : scenario label =" When an XREF points to a formal equation with a caption" >
297+ <x : context mode =" xref-to" select =" (//h:div[@data-type='equation'])[1]" >
298+ <section data-type =" chapter" >
299+ <div data-type =" equation" id =" formal_equation" >
300+ <h5 />
301+ <p data-type =" tex" >$2 + 2 = 4$</p >
302+ </div >
303+ </section >
304+ </x : context >
305+ <x : expect label =" Gentext should be created for the xref" >Equation 1-1</x : expect >
306+ </x : scenario >
307+
308+ <!-- Equation in a preface -->
309+ <x : scenario label =" When an XREF points to a formal equation with a caption" >
310+ <x : context mode =" xref-to" select =" (//h:div[@data-type='equation'])[1]" >
311+ <section data-type =" preface" >
312+ <div data-type =" equation" id =" formal_equation" >
313+ <h5 />
314+ <p data-type =" tex" >$2 + 2 = 4$</p >
315+ </div >
316+ </section >
317+ </x : context >
318+ <x : expect label =" Gentext should be created for the xref" >Equation P-1</x : expect >
319+ </x : scenario >
320+
321+ <!-- Equation in an appendix -->
322+ <x : scenario label =" When an XREF points to a formal equation with a caption" >
323+ <x : context mode =" xref-to" select =" (//h:div[@data-type='equation'])[3]" >
324+ <section data-type =" appendix" >
325+ <div data-type =" equation" id =" formal_equation" >
326+ <h5 />
327+ <p data-type =" tex" >$2 + 2 = 4$</p >
328+ </div >
329+ <div data-type =" equation" id =" formal_equation2" >
330+ <p data-type =" tex" >$2 + 2 = 4$</p >
331+ </div >
332+ <div data-type =" equation" id =" formal_equation3" >
333+ <h5 />
334+ <p data-type =" tex" >$2 + 2 = 4$</p >
335+ </div >
336+ </section >
337+ </x : context >
338+ <x : expect label =" Gentext should be created for the xref" >Equation A-2</x : expect >
339+ </x : scenario >
340+ <!-- Begin Chris's Equation work -->
341+
268342 <!-- Tests for text nodes of <a> elements that do not have data-type="xref" -->
269343 <x : scenario label =" If an 'a' element does not contain data-type='xref'" >
270344 <x : context >
0 commit comments