scrub-literal-numbering-lists.xspec 891 Bytes
Newer Older
Alex Theg's avatar
Alex Theg committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" stylesheet="../scrub-literal-numbering-lists.xsl"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xsw="http://coko.foundation/xsweet">

  <x:scenario label="remove literal text numbering">
    <x:context>
      <div class="docx-body">
        <p>Not inside a list</p>
        <ol>
          <li><p>1. Here's a list.</p></li>
          <li><p>2. With a second item.</p></li>
          <li><p>3. And a third like like this.</p></li>
        </ol>
     </div>
    </x:context>
    <x:expect label="from text of ol lis">
      <div class="docx-body">
        <p>Not inside a list</p>
        <ol>
          <li>Here's a list.</li>
          <li>With a second item.</li>
          <li>And a third like like this.</li>
        </ol>
      </div>
    </x:expect>
  </x:scenario>
</x:description>