You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: htmlbook-xsl/xspec/xrefgen.xspec
+32
Original file line number
Diff line number
Diff line change
@@ -1322,6 +1322,13 @@ sidebar
1322
1322
<x:scenariolabel="When an XREF is matched with data-xrefstyle...">
1323
1323
<x:context>
1324
1324
<body>
1325
+
<divdata-type="part"id="awesome_part">
1326
+
<h1>I'm Part of the Solution!</h1>
1327
+
<sectiondata-type="appendix"id="awesome_app">
1328
+
<h1>Appendix Title</h1>
1329
+
<p>Some text</p>
1330
+
</section>
1331
+
</div>
1325
1332
<sectiondata-type="chapter"id="awesome_chap">
1326
1333
<h1>AWESOME CHAPTER</h1>
1327
1334
<p>Check out this pic:</p>
@@ -1336,6 +1343,8 @@ sidebar
1336
1343
</figure>
1337
1344
<p>See <ahref="#awesome_squared_fig"id="labelnumber-xref"data-type="xref"data-xrefstyle="select: labelnumber"/> for lots of awesomeness.</p>
1338
1345
<p>See <ahref="#awesome_chap"id="chap-num-title-xref"data-type="xref"data-xrefstyle="chap-num-title"/> for awesomeness.</p>
1346
+
<p>See <ahref="#awesome_app"id="app-num-title-xref"data-type="xref"data-xrefstyle="app-num-title"/> for app awesomeness.</p>
1347
+
<p>See <ahref="#awesome_part"id="part-num-title-xref"data-type="xref"data-xrefstyle="part-num-title"/> for part awesomeness.</p>
1339
1348
<p>See <ahref="#awesome_sect1"id="nopage-xref"data-type="xref"data-xrefstyle="select:nopage"/> for yet more awesomeness</p>
1340
1349
<sectionid="awesome_sect1"data-type="sect1">
1341
1350
<h1>AWESOME SUBSECTION</h1>
@@ -1355,6 +1364,16 @@ sidebar
1355
1364
<x:expectlabel="it should return chapter label, number, and title"><ahref="#awesome_chap"id="chap-num-title-xref"data-type="xref"data-xrefstyle="chap-num-title"data-xref-pagenum-style="...">Chapter 1, <em>AWESOME CHAPTER</em></a></x:expect>
<x:expectlabel="it should return appendix label, number, and title"><ahref="#awesome_app"id="app-num-title-xref"data-type="xref"data-xrefstyle="app-num-title"data-xref-pagenum-style="...">Appendix A, <em>Appendix Title</em></a></x:expect>
<x:expectlabel="it should return part label, number, and title"><ahref="#awesome_part"id="part-num-title-xref"data-type="xref"data-xrefstyle="part-num-title"data-xref-pagenum-style="...">Part I, <em>I'm Part of the Solution!</em></a></x:expect>
0 commit comments