summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-08-03 08:02:34 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-08-03 08:02:34 +0000
commit7d6a91ecb536d82c8c358a0fcd2102482626d1f8 (patch)
tree1a1875197cf3a20b52b421809977dfceca0d325f /tests
parentfc0c0125b09736d9051267dffc2832091d0acd7c (diff)
downloadlibxslt-7d6a91ecb536d82c8c358a0fcd2102482626d1f8.tar.gz
libxslt-7d6a91ecb536d82c8c358a0fcd2102482626d1f8.tar.bz2
libxslt-7d6a91ecb536d82c8c358a0fcd2102482626d1f8.zip
Bug 117552
Diffstat (limited to 'tests')
-rw-r--r--tests/docs/Makefile.am1
-rw-r--r--tests/docs/bug-125.xml118
-rw-r--r--tests/general/Makefile.am1
-rw-r--r--tests/general/bug-125.out352
-rw-r--r--tests/general/bug-125.xsl101
5 files changed, 573 insertions, 0 deletions
diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am
index 851b7115..9ca0715d 100644
--- a/tests/docs/Makefile.am
+++ b/tests/docs/Makefile.am
@@ -124,6 +124,7 @@ EXTRA_DIST = \
bug-122.xml \
bug-123.xml \
bug-124.xml \
+ bug-125.xml \
character.xml \
array.xml \
items.xml
diff --git a/tests/docs/bug-125.xml b/tests/docs/bug-125.xml
new file mode 100644
index 00000000..90b36d68
--- /dev/null
+++ b/tests/docs/bug-125.xml
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<errataset>
+ <errata page="28" paragraph="3" line="1" type="GRAMMAR" tracker="151902">
+ Replace "at once" with "both".
+ </errata>
+ <errata page="17" line="2" type="CLARIFICATION" tracker="151902">
+ Replace "the previous explanation of namespaces" with "the example of
+ namespaces in Example 2-1".
+ </errata>
+ <errata page="40" paragraph="1" line="5" type="CLARIFICATION"
+ tracker="151902">
+ Replace "content-encoding" with "content encoding".
+ <explanation>The hyphen implies the "Content-Encoding" HTTP header, and
+ here I am referring instead to the general concept of content
+ encoding.</explanation>
+ </errata>
+ <errata page="52" paragraph="3" type="UPDATE" tracker="151902">
+ As of this current errata update, the RPC::XMLSimple package has not yet
+ been released to CPAN. Until it is released, none of the examples using
+ this module can be run as presented.
+ </errata>
+ <errata page="47" line="33" type="CORRECTION" tracker="151902">
+ Replace "resolve_name" (in the error message) with "get_data".
+ </errata>
+ <errata page="186" line="32" type="CORRECTION" tracker="157190">
+ The last character of this line, ">", should be replaced with "/>" in
+ order to make it valid XML.
+ </errata>
+ <errata page="203" paragraph="2" line="3" type="CORRECTION" tracker="163134">
+ Replace "soap:address" with "http:address".
+ </errata>
+ <errata page="237" paragraph="1" line="6" type="GRAMMAR">
+ Replace "more" with "most".
+ </errata>
+ <errata page="245" paragraph="4" line="2" type="CORRECTION">
+ Replace "different" with "difference".
+ </errata>
+ <errata page="247" paragraph="4" line="5" type="CORRECTION">
+ Replace "out of hand" with "out-of-band".
+ </errata>
+ <errata page="251" paragraph="2" line="4" type="GRAMMAR">
+ Replace "sequence," with "sequence" (remove the comma).
+ </errata>
+ <errata page="297" line="1" type="CORRECTION">
+ Replace "Description" with "Definition".
+ </errata>
+ <errata page="53" line="24" type="CORRECTION">
+ The script should start with the line, "#!/usr/bin/perl -w" before the
+ first line of actual code.
+ </errata>
+ <errata page="59" line="16" type="CORRECTION">
+ The script should start with the line, "#!/usr/bin/perl -w" before the
+ first line of actual code.
+ </errata>
+ <errata page="68" line="4" type="CORRECTION">
+ The script should start with the line, "#!/usr/bin/perl -w" before the
+ first line of actual code.
+ </errata>
+ <errata page="115" line="20" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="120" line="30" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="146" line="10" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="151" line="27" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="157" line="16" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="165" line="26" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="166" line="25" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="168" line="20" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="170" line="1" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="171" line="18" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="172" line="20" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="174" line="9" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="175" line="6" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="176" line="23" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="232" line="3" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+ <errata page="253" line="24" type="CORRECTION">
+ Replace "#!perl" with "#!/usr/bin/perl".
+ <explanation>This and the identical changes later are for consistency with
+ other code examples.</explanation>
+ </errata>
+ <errata page="274" line="9" type="CORRECTION">
+ Replace "#!perl" with "#!/usr/bin/perl".
+ </errata>
+ <errata page="274" line="19" type="CORRECTION">
+ Replace "#!perl" with "#!/usr/bin/perl".
+ </errata>
+ <errata page="431" line="9" type="CORRECTION">
+ Append " -w" after "perl".
+ </errata>
+</errataset>
diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am
index dfdab8b8..982faa01 100644
--- a/tests/general/Makefile.am
+++ b/tests/general/Makefile.am
@@ -129,6 +129,7 @@ EXTRA_DIST = \
bug-122.out bug-122.xsl \
bug-123.out bug-123.xsl \
bug-124.out bug-124.xsl \
+ bug-125.out bug-125.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
diff --git a/tests/general/bug-125.out b/tests/general/bug-125.out
new file mode 100644
index 00000000..5e9ac4ba
--- /dev/null
+++ b/tests/general/bug-125.out
@@ -0,0 +1,352 @@
+<!-- Generated by $Id$ -->
+<div class="errataset">
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 17</td>
+<td style="width: 15%;" class="line">Line: 2</td>
+<td style="width: 70%;" class="type">CLARIFICATION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "the previous explanation of namespaces" with "the example of namespaces in Example 2-1".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 28</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 3</td>
+<td style="width: 15%;" class="line">Line: 1</td>
+<td style="width: 55%;" class="type">GRAMMAR</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "at once" with "both".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 40</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 1</td>
+<td style="width: 15%;" class="line">Line: 5</td>
+<td style="width: 55%;" class="type">CLARIFICATION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "content-encoding" with "content encoding".</p>
+<blockquote class="explanation">
+<p>
+The hyphen implies the "Content-Encoding" HTTP header, and here I am referring instead to the general concept of content encoding.
+</p>
+</blockquote>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 47</td>
+<td style="width: 15%;" class="line">Line: 33</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "resolve_name" (in the error message) with "get_data".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 52</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 3</td>
+<td style="width: 70%;" class="type">UPDATE</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">As of this current errata update, the RPC::XMLSimple package has not yet been released to CPAN. Until it is released, none of the examples using this module can be run as presented.</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 53</td>
+<td style="width: 15%;" class="line">Line: 24</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">The script should start with the line, "#!/usr/bin/perl -w" before the first line of actual code.</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 59</td>
+<td style="width: 15%;" class="line">Line: 16</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">The script should start with the line, "#!/usr/bin/perl -w" before the first line of actual code.</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 68</td>
+<td style="width: 15%;" class="line">Line: 4</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">The script should start with the line, "#!/usr/bin/perl -w" before the first line of actual code.</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 115</td>
+<td style="width: 15%;" class="line">Line: 20</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 120</td>
+<td style="width: 15%;" class="line">Line: 30</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 146</td>
+<td style="width: 15%;" class="line">Line: 10</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 151</td>
+<td style="width: 15%;" class="line">Line: 27</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 157</td>
+<td style="width: 15%;" class="line">Line: 16</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 165</td>
+<td style="width: 15%;" class="line">Line: 26</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 166</td>
+<td style="width: 15%;" class="line">Line: 25</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 168</td>
+<td style="width: 15%;" class="line">Line: 20</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 170</td>
+<td style="width: 15%;" class="line">Line: 1</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 171</td>
+<td style="width: 15%;" class="line">Line: 18</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 172</td>
+<td style="width: 15%;" class="line">Line: 20</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 174</td>
+<td style="width: 15%;" class="line">Line: 9</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 175</td>
+<td style="width: 15%;" class="line">Line: 6</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 176</td>
+<td style="width: 15%;" class="line">Line: 23</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 186</td>
+<td style="width: 15%;" class="line">Line: 32</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">The last character of this line, "&gt;", should be replaced with "/&gt;" in order to make it valid XML.</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 203</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 2</td>
+<td style="width: 15%;" class="line">Line: 3</td>
+<td style="width: 55%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "soap:address" with "http:address".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 232</td>
+<td style="width: 15%;" class="line">Line: 3</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 237</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 1</td>
+<td style="width: 15%;" class="line">Line: 6</td>
+<td style="width: 55%;" class="type">GRAMMAR</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "more" with "most".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 245</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 4</td>
+<td style="width: 15%;" class="line">Line: 2</td>
+<td style="width: 55%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "different" with "difference".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 247</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 4</td>
+<td style="width: 15%;" class="line">Line: 5</td>
+<td style="width: 55%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "out of hand" with "out-of-band".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr><td style="width: 15%;" class="page">Page: 251</td>
+<td style="width: 15%;" class="paragraph">Paragraph: 2</td>
+<td style="width: 15%;" class="line">Line: 4</td>
+<td style="width: 55%;" class="type">GRAMMAR</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "sequence," with "sequence" (remove the comma).</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 253</td>
+<td style="width: 15%;" class="line">Line: 24</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "#!perl" with "#!/usr/bin/perl".</p>
+<blockquote class="explanation">
+<p>
+This and the identical changes later are for consistency with other code examples.
+</p>
+</blockquote>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 274</td>
+<td style="width: 15%;" class="line">Line: 9</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "#!perl" with "#!/usr/bin/perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 274</td>
+<td style="width: 15%;" class="line">Line: 19</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "#!perl" with "#!/usr/bin/perl".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 297</td>
+<td style="width: 15%;" class="line">Line: 1</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Replace "Description" with "Definition".</p>
+</div>
+<div class="errata">
+<table class="location-type" cellspacing="0" cellpadding="2">
+<tr>
+<td style="width: 15%;" class="page">Page: 431</td>
+<td style="width: 15%;" class="line">Line: 9</td>
+<td style="width: 70%;" class="type">CORRECTION</td>
+</tr>
+</table>
+<p style="clear: both; padding: 3px;">Append " -w" after "perl".</p>
+</div>
+</div>
diff --git a/tests/general/bug-125.xsl b/tests/general/bug-125.xsl
new file mode 100644
index 00000000..2d48f894
--- /dev/null
+++ b/tests/general/bug-125.xsl
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:strip-space elements="*" />
+ <xsl:output method="html" indent="no"/>
+
+ <xsl:template match="/">
+ <xsl:comment> Generated by<![CDATA[ $Id$ ]]></xsl:comment>
+ <xsl:text>&#x0a;</xsl:text>
+ <div class="errataset">
+ <xsl:text>&#x0a;</xsl:text>
+ <xsl:for-each select="errataset/errata">
+ <xsl:sort select="@page" data-type="number" />
+ <xsl:sort select="@paragraph" data-type="number" />
+ <xsl:sort select="@line" data-type="number" />
+ <xsl:apply-templates select="." />
+ </xsl:for-each>
+ </div>
+ </xsl:template>
+
+ <xsl:template name="errata" match="errata">
+ <div class="errata"><xsl:text>&#x0a;</xsl:text>
+ <xsl:call-template name="show-attributes" />
+ <xsl:for-each select="*|text()">
+ <xsl:apply-templates select="."/>
+ </xsl:for-each>
+ </div><xsl:text>&#x0a;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="text()">
+ <xsl:if test="string-length(normalize-space(.))">
+ <p style="clear: both; padding: 3px;">
+ <xsl:value-of select="normalize-space(.)" />
+ </p>
+ <xsl:text>&#x0a;</xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="explanation" match="explanation">
+ <blockquote class="explanation"><xsl:text>&#x0a;</xsl:text>
+ <p><xsl:text>&#x0a;</xsl:text>
+ <xsl:value-of select="normalize-space(text())" />
+ <xsl:text>&#x0a;</xsl:text>
+ </p><xsl:text>&#x0a;</xsl:text>
+ </blockquote><xsl:text>&#x0a;</xsl:text>
+ </xsl:template>
+
+ <xsl:template name="show-attributes">
+ <table class="location-type" cellspacing="0" cellpadding="2">
+ <xsl:text>&#x0a;</xsl:text>
+ <xsl:choose>
+ <xsl:when test="@paragraph">
+ <xsl:choose>
+ <xsl:when test="@line">
+ <tr>
+ <td style="width: 15%;" class="page">Page: <xsl:value-of select="@page" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 15%;" class="paragraph">Paragraph: <xsl:value-of select="@paragraph" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 15%;" class="line">Line: <xsl:value-of select="@line" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 55%;" class="type"><xsl:value-of select="@type" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ </tr><xsl:text>&#x0a;</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td style="width: 15%;" class="page">Page: <xsl:value-of select="@page" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 15%;" class="paragraph">Paragraph: <xsl:value-of select="@paragraph" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 70%;" class="type"><xsl:value-of select="@type" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ </tr><xsl:text>&#x0a;</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="@line">
+ <tr><xsl:text>&#x0a;</xsl:text>
+ <td style="width: 15%;" class="page">Page: <xsl:value-of select="@page" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 15%;" class="line">Line: <xsl:value-of select="@line" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 70%;" class="type"><xsl:value-of select="@type" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ </tr><xsl:text>&#x0a;</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td style="width: 15%;" class="page">Page: <xsl:value-of select="@page" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ <td style="width: 85%;" class="type"><xsl:value-of select="@type" /></td>
+ <xsl:text>&#x0a;</xsl:text>
+ </tr><xsl:text>&#x0a;</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table><xsl:text>&#x0a;</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>