From e882f3385dfbd64a56b93c4848f9b462de7cf065 Mon Sep 17 00:00:00 2001 From: Sanders Kleinfeld Date: Mon, 16 Mar 2015 15:15:34 -0400 Subject: [PATCH 1/4] For footnotes, nest in (rather than vice versa) for better results in CSS styling. --- htmlbook-xsl/elements.xsl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htmlbook-xsl/elements.xsl b/htmlbook-xsl/elements.xsl index 2efedc64..493f0fae 100755 --- a/htmlbook-xsl/elements.xsl +++ b/htmlbook-xsl/elements.xsl @@ -288,6 +288,7 @@ + @@ -296,14 +297,13 @@ - - + @@ -322,18 +322,18 @@ + - - + @@ -403,19 +403,19 @@ + -marker - - +

From 06b9b2416387d6d7048e741a377e0a2298873787 Mon Sep 17 00:00:00 2001 From: Sanders Kleinfeld Date: Mon, 16 Mar 2015 15:31:33 -0400 Subject: [PATCH 2/4] Updated XSpec tests for updated footnote nesting. --- htmlbook-xsl/xspec/elements.xspec | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/htmlbook-xsl/xspec/elements.xspec b/htmlbook-xsl/xspec/elements.xspec index 1236aead..86f0fde1 100755 --- a/htmlbook-xsl/xspec/elements.xspec +++ b/htmlbook-xsl/xspec/elements.xspec @@ -1454,9 +1454,9 @@ sect5:1 - - 1 - + + 1 + @@ -1502,9 +1502,9 @@ sect5:1 - - 4 - + + 4 + @@ -1514,9 +1514,9 @@ sect5:1 - - 2 - + + 2 + @@ -1527,7 +1527,7 @@ sect5:1

- 4 Footnote #2 in Chapter #2

+ 4 Footnote #2 in Chapter #2

@@ -1538,7 +1538,7 @@ sect5:1

- 2 Footnote #2 in Chapter #2

+ 2 Footnote #2 in Chapter #2

@@ -1548,9 +1548,9 @@ sect5:1 - - 8 - + + 8 + @@ -1560,9 +1560,9 @@ sect5:1 - - 2 - + + 2 + @@ -1659,9 +1659,9 @@ sect5:1 - - 2 - + + 2 + From 0843438f4cc800d63319205176a8f67dc1202951 Mon Sep 17 00:00:00 2001 From: Sanders Kleinfeld Date: Mon, 16 Mar 2015 16:09:50 -0400 Subject: [PATCH 3/4] Modified footnoteref handling when process.footnotes is disabled (e.g., PDF Paged Media output) to output the footnote number in a . --- htmlbook-xsl/elements.xsl | 81 ++++++++++++++++--------------- htmlbook-xsl/xspec/elements.xspec | 4 +- 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/htmlbook-xsl/elements.xsl b/htmlbook-xsl/elements.xsl index 493f0fae..b347d8ae 100755 --- a/htmlbook-xsl/elements.xsl +++ b/htmlbook-xsl/elements.xsl @@ -310,49 +310,54 @@ + + + + + + - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - Error: Could not find footnote referenced by footnoteref link - - . Footnote marker will not be generated. - - - - + + + + + + + + + + + + + + + + - - - + + + + + Error: Could not find footnote referenced by footnoteref link + + . Footnote marker will not be generated. + + diff --git a/htmlbook-xsl/xspec/elements.xspec b/htmlbook-xsl/xspec/elements.xspec index 86f0fde1..1a117998 100755 --- a/htmlbook-xsl/xspec/elements.xspec +++ b/htmlbook-xsl/xspec/elements.xspec @@ -1649,8 +1649,8 @@ sect5:1 - - + + 2 From bf4f7f519d15c1105f668a662beca9d5bb5c901c Mon Sep 17 00:00:00 2001 From: Sanders Kleinfeld Date: Mon, 16 Mar 2015 16:30:32 -0400 Subject: [PATCH 4/4] Adding epub.xspec, and fixing schema validation errors in ncx.xspec and opf.xspec. --- htmlbook-xsl/xspec/epub.xspec | 29 +++++++++++++++++++++++++++++ htmlbook-xsl/xspec/ncx.xspec | 25 +++++++++++++------------ htmlbook-xsl/xspec/opf.xspec | 13 +++++++------ 3 files changed, 49 insertions(+), 18 deletions(-) create mode 100755 htmlbook-xsl/xspec/epub.xspec diff --git a/htmlbook-xsl/xspec/epub.xspec b/htmlbook-xsl/xspec/epub.xspec new file mode 100755 index 00000000..ed08c02f --- /dev/null +++ b/htmlbook-xsl/xspec/epub.xspec @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + diff --git a/htmlbook-xsl/xspec/ncx.xspec b/htmlbook-xsl/xspec/ncx.xspec index 24fb0465..08b1ab35 100755 --- a/htmlbook-xsl/xspec/ncx.xspec +++ b/htmlbook-xsl/xspec/ncx.xspec @@ -38,6 +38,14 @@ sect5:none ... + + + + + + @@ -63,14 +71,7 @@ sect5:none - - - - - - + @@ -155,6 +156,10 @@ sect5:none + + + @@ -186,10 +191,6 @@ sect5:none test="not(exists(ncx:navPoint/ncx:navLabel/ncx:text/*))"/> - - - diff --git a/htmlbook-xsl/xspec/opf.xspec b/htmlbook-xsl/xspec/opf.xspec index c5a62ec7..b1b1e651 100755 --- a/htmlbook-xsl/xspec/opf.xspec +++ b/htmlbook-xsl/xspec/opf.xspec @@ -58,12 +58,7 @@ UbuntuMono-Regular.otf - - - - - - + + + + + + +