booky 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.pdf +0 -0
- data/README.textile +35 -8
- data/booky.gemspec +7 -2
- data/lib/booky.rb +40 -36
- data/lib/booky/ast.rb +10 -0
- data/lib/booky/exceptions.rb +1 -1
- data/lib/booky/layout.rb +103 -0
- data/lib/booky/layout/base.rb +70 -0
- data/lib/booky/layout/base/author.rb +15 -0
- data/lib/booky/layout/base/blockquote.rb +58 -0
- data/lib/booky/layout/base/chart.rb +26 -0
- data/lib/booky/layout/base/charts/bar.rb +164 -0
- data/lib/booky/layout/base/charts/base.rb +82 -0
- data/lib/booky/layout/base/charts/line.rb +249 -0
- data/lib/booky/layout/base/code.rb +185 -0
- data/lib/booky/layout/base/copyright.rb +16 -0
- data/lib/booky/layout/base/footnote.rb +10 -0
- data/lib/booky/layout/base/h0.rb +26 -0
- data/lib/booky/layout/base/h1.rb +29 -0
- data/lib/booky/layout/base/h2.rb +29 -0
- data/lib/booky/layout/base/h3.rb +29 -0
- data/lib/booky/layout/base/h4.rb +29 -0
- data/lib/booky/layout/base/image.rb +39 -0
- data/lib/booky/layout/base/import.rb +11 -0
- data/lib/booky/layout/base/numbered_list.rb +45 -0
- data/lib/booky/layout/base/outline.rb +21 -0
- data/lib/booky/layout/base/p.rb +15 -0
- data/lib/booky/layout/base/subtitle.rb +18 -0
- data/lib/booky/layout/base/table.rb +58 -0
- data/lib/booky/layout/base/title.rb +22 -0
- data/lib/booky/layout/base/toc.rb +131 -0
- data/lib/booky/layout/base/tof.rb +73 -0
- data/lib/booky/layout/base/unnumbered_list.rb +36 -0
- data/lib/booky/layout/element.rb +28 -0
- data/lib/booky/layout/helpers.rb +29 -0
- data/lib/booky/pdf.rb +12 -10
- data/lib/booky/textile.rb +6 -4
- data/lib/booky/textile/load.rb +1 -1
- data/lib/booky/textile/precompiler.rb +1 -0
- data/lib/booky/textile/source.rb +31 -5
- data/lib/booky/textile/table.rb +52 -0
- data/lib/booky/version.rb +1 -1
- data/pdfs/Rakefile +16 -0
- data/pdfs/blockquote_source.pdf +15641 -1
- data/pdfs/footnotes.pdf +1991 -0
- data/pdfs/link_image.pdf +0 -0
- data/pdfs/lists.pdf +706 -1
- data/pdfs/tables.pdf +2162 -0
- data/pdfs/title_subtitle.pdf +3454 -0
- data/spec/ast_spec.rb +12 -0
- data/{lib/fop/lib → spec/fixtures}/.DS_Store +0 -0
- data/spec/fixtures/bar_chart.json +35 -0
- data/spec/fixtures/blockquote_pagebreak.textile +27 -0
- data/spec/fixtures/blockquote_source.textile +35 -0
- data/spec/fixtures/chart.textile +9 -0
- data/spec/fixtures/footnotes.textile +57 -0
- data/spec/fixtures/footnotes_tables.textile +29 -0
- data/spec/fixtures/image_big.jpg +0 -0
- data/spec/fixtures/image_small.jpg +0 -0
- data/spec/fixtures/import.textile +7 -0
- data/spec/fixtures/line_chart.json +49 -0
- data/spec/fixtures/link_image.textile +18 -0
- data/spec/fixtures/lists.textile +98 -0
- data/spec/fixtures/request_flow.pdf +477 -0
- data/spec/fixtures/some_code.rb +138 -0
- data/spec/fixtures/some_text.txt +10 -0
- data/spec/fixtures/source_plain_text.textile +1 -0
- data/spec/fixtures/tables.textile +42 -0
- data/spec/fixtures/textile/basic.textile +3 -0
- data/spec/fixtures/textile/source/precompiled_index.textile +2 -2
- data/spec/fixtures/textile/tables/names.xls +0 -0
- data/spec/fixtures/textile/tables/request_limits_hardware.xls +0 -0
- data/spec/fixtures/title_subtitle.textile +110 -0
- data/spec/helpers.rb +2 -1
- data/spec/pdf_spec.rb +107 -0
- data/test.pdf +16657 -0
- metadata +152 -1551
- data/lib/booky/docbook.rb +0 -13
- data/lib/booky/fo.rb +0 -15
- data/lib/booky/fonts.rb +0 -104
- data/lib/custom_fonts.xml +0 -91
- data/lib/fop/KEYS +0 -248
- data/lib/fop/LICENSE +0 -202
- data/lib/fop/NOTICE +0 -10
- data/lib/fop/README +0 -286
- data/lib/fop/build/fop.jar +0 -0
- data/lib/fop/conf/fop.xconf +0 -464
- data/lib/fop/fop +0 -254
- data/lib/fop/fop.bat +0 -85
- data/lib/fop/fop.cmd +0 -75
- data/lib/fop/fop.js +0 -341
- data/lib/fop/lib/README.txt +0 -243
- data/lib/fop/lib/avalon-framework-4.2.0.jar +0 -0
- data/lib/fop/lib/avalon-framework.LICENSE.txt +0 -175
- data/lib/fop/lib/avalon-framework.NOTICE.TXT +0 -11
- data/lib/fop/lib/batik-all-1.7.jar +0 -0
- data/lib/fop/lib/batik.LICENSE.txt +0 -201
- data/lib/fop/lib/batik.NOTICE.txt +0 -18
- data/lib/fop/lib/commons-io-1.3.1.jar +0 -0
- data/lib/fop/lib/commons-io.LICENSE.txt +0 -203
- data/lib/fop/lib/commons-io.NOTICE.txt +0 -6
- data/lib/fop/lib/commons-logging-1.0.4.jar +0 -0
- data/lib/fop/lib/commons-logging.LICENSE.txt +0 -202
- data/lib/fop/lib/commons-logging.NOTICE.txt +0 -3
- data/lib/fop/lib/jeuclid-core-3.1.9.jar +0 -0
- data/lib/fop/lib/jeuclid-fop-3.1.9.jar +0 -0
- data/lib/fop/lib/serializer-2.7.0.jar +0 -0
- data/lib/fop/lib/serializer.LICENSE.txt +0 -201
- data/lib/fop/lib/serializer.NOTICE.txt +0 -15
- data/lib/fop/lib/xalan-2.7.0.jar +0 -0
- data/lib/fop/lib/xalan.BCEL.LICENSE.txt +0 -52
- data/lib/fop/lib/xalan.LICENSE.txt +0 -202
- data/lib/fop/lib/xalan.NOTICE.txt +0 -44
- data/lib/fop/lib/xalan.regexp.LICENSE.txt +0 -52
- data/lib/fop/lib/xalan.runtime.LICENSE.txt +0 -20
- data/lib/fop/lib/xerces.LICENSE.txt +0 -56
- data/lib/fop/lib/xercesImpl-2.7.1.jar +0 -0
- data/lib/fop/lib/xercesImpl.LICENSE.txt +0 -201
- data/lib/fop/lib/xercesImpl.NOTICE.txt +0 -14
- data/lib/fop/lib/xml-apis-1.3.04.jar +0 -0
- data/lib/fop/lib/xml-apis-ext-1.3.04.jar +0 -0
- data/lib/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt +0 -73
- data/lib/fop/lib/xml-apis-ext.LICENSE.dom-software.txt +0 -61
- data/lib/fop/lib/xml-apis-ext.LICENSE.sac.html +0 -75
- data/lib/fop/lib/xml-apis-ext.LICENSE.txt +0 -202
- data/lib/fop/lib/xml-apis-ext.NOTICE.txt +0 -16
- data/lib/fop/lib/xml-apis-ext.README.dom.txt +0 -56
- data/lib/fop/lib/xml-apis.LICENSE-SAX.html +0 -17
- data/lib/fop/lib/xml-apis.LICENSE.DOM-documentation.html +0 -74
- data/lib/fop/lib/xml-apis.LICENSE.DOM-software.html +0 -66
- data/lib/fop/lib/xml-apis.LICENSE.txt +0 -201
- data/lib/fop/lib/xml-apis.NOTICE.txt +0 -13
- data/lib/fop/lib/xmlgraphics-commons-1.4.jar +0 -0
- data/lib/fop/lib/xmlgraphics-commons.LICENSE.txt +0 -202
- data/lib/fop/lib/xmlgraphics-commons.NOTICE.txt +0 -5
- data/lib/fop/lib/xslthl-2.0.2.jar +0 -0
- data/lib/fop/status.xml +0 -1809
- data/lib/params.pdf +0 -0
- data/lib/stylesheets/.CatalogManager.properties.example +0 -61
- data/lib/stylesheets/.urilist +0 -1
- data/lib/stylesheets/AUTHORS +0 -4
- data/lib/stylesheets/BUGS +0 -21
- data/lib/stylesheets/COPYING +0 -47
- data/lib/stylesheets/INSTALL +0 -88
- data/lib/stylesheets/Makefile +0 -89
- data/lib/stylesheets/NEWS +0 -139
- data/lib/stylesheets/NEWS.html +0 -25
- data/lib/stylesheets/NEWS.xml +0 -145
- data/lib/stylesheets/README +0 -166
- data/lib/stylesheets/RELEASE-NOTES.html +0 -8353
- data/lib/stylesheets/RELEASE-NOTES.pdf +6 -24345
- data/lib/stylesheets/RELEASE-NOTES.txt +0 -8575
- data/lib/stylesheets/RELEASE-NOTES.xml +0 -10327
- data/lib/stylesheets/TODO +0 -23
- data/lib/stylesheets/VERSION +0 -115
- data/lib/stylesheets/catalog.xml +0 -8
- data/lib/stylesheets/common/addns.xsl +0 -118
- data/lib/stylesheets/common/af.xml +0 -1229
- data/lib/stylesheets/common/am.xml +0 -1229
- data/lib/stylesheets/common/ar.xml +0 -1229
- data/lib/stylesheets/common/as.xml +0 -660
- data/lib/stylesheets/common/ast.xml +0 -660
- data/lib/stylesheets/common/autoidx-kimber.xsl +0 -45
- data/lib/stylesheets/common/autoidx-kosek.xsl +0 -155
- data/lib/stylesheets/common/az.xml +0 -672
- data/lib/stylesheets/common/bg.xml +0 -724
- data/lib/stylesheets/common/bn.xml +0 -1229
- data/lib/stylesheets/common/bn_in.xml +0 -660
- data/lib/stylesheets/common/bs.xml +0 -662
- data/lib/stylesheets/common/ca.xml +0 -660
- data/lib/stylesheets/common/charmap.xml +0 -185
- data/lib/stylesheets/common/charmap.xsl +0 -222
- data/lib/stylesheets/common/common.xml +0 -622
- data/lib/stylesheets/common/common.xsl +0 -2040
- data/lib/stylesheets/common/cs.xml +0 -700
- data/lib/stylesheets/common/cy.xml +0 -1245
- data/lib/stylesheets/common/da.xml +0 -664
- data/lib/stylesheets/common/de.xml +0 -666
- data/lib/stylesheets/common/el.xml +0 -729
- data/lib/stylesheets/common/en.xml +0 -1230
- data/lib/stylesheets/common/entities.ent +0 -67
- data/lib/stylesheets/common/eo.xml +0 -1229
- data/lib/stylesheets/common/es.xml +0 -676
- data/lib/stylesheets/common/et.xml +0 -1229
- data/lib/stylesheets/common/eu.xml +0 -1229
- data/lib/stylesheets/common/fa.xml +0 -660
- data/lib/stylesheets/common/fi.xml +0 -670
- data/lib/stylesheets/common/fr.xml +0 -690
- data/lib/stylesheets/common/ga.xml +0 -1229
- data/lib/stylesheets/common/gentext.xsl +0 -840
- data/lib/stylesheets/common/gl.xml +0 -1229
- data/lib/stylesheets/common/gu.xml +0 -660
- data/lib/stylesheets/common/he.xml +0 -1229
- data/lib/stylesheets/common/hi.xml +0 -660
- data/lib/stylesheets/common/hr.xml +0 -662
- data/lib/stylesheets/common/hu.xml +0 -678
- data/lib/stylesheets/common/id.xml +0 -1229
- data/lib/stylesheets/common/insertfile.xsl +0 -113
- data/lib/stylesheets/common/is.xml +0 -672
- data/lib/stylesheets/common/it.xml +0 -1229
- data/lib/stylesheets/common/ja.xml +0 -660
- data/lib/stylesheets/common/ka.xml +0 -700
- data/lib/stylesheets/common/kn.xml +0 -1229
- data/lib/stylesheets/common/ko.xml +0 -1229
- data/lib/stylesheets/common/ky.xml +0 -732
- data/lib/stylesheets/common/l10n.dtd +0 -64
- data/lib/stylesheets/common/l10n.xml +0 -77
- data/lib/stylesheets/common/l10n.xsl +0 -594
- data/lib/stylesheets/common/la.xml +0 -1229
- data/lib/stylesheets/common/labels.xsl +0 -888
- data/lib/stylesheets/common/lt.xml +0 -678
- data/lib/stylesheets/common/lv.xml +0 -1229
- data/lib/stylesheets/common/ml.xml +0 -660
- data/lib/stylesheets/common/mn.xml +0 -730
- data/lib/stylesheets/common/mr.xml +0 -660
- data/lib/stylesheets/common/nb.xml +0 -1229
- data/lib/stylesheets/common/nds.xml +0 -666
- data/lib/stylesheets/common/nl.xml +0 -660
- data/lib/stylesheets/common/nn.xml +0 -1229
- data/lib/stylesheets/common/olink.xsl +0 -1227
- data/lib/stylesheets/common/or.xml +0 -1229
- data/lib/stylesheets/common/pa.xml +0 -660
- data/lib/stylesheets/common/pi.xml +0 -168
- data/lib/stylesheets/common/pi.xsl +0 -347
- data/lib/stylesheets/common/pl.xml +0 -678
- data/lib/stylesheets/common/pt.xml +0 -1229
- data/lib/stylesheets/common/pt_br.xml +0 -1229
- data/lib/stylesheets/common/refentry.xml +0 -781
- data/lib/stylesheets/common/refentry.xsl +0 -1353
- data/lib/stylesheets/common/ro.xml +0 -1229
- data/lib/stylesheets/common/ru.xml +0 -726
- data/lib/stylesheets/common/sk.xml +0 -1229
- data/lib/stylesheets/common/sl.xml +0 -1229
- data/lib/stylesheets/common/sq.xml +0 -1229
- data/lib/stylesheets/common/sr.xml +0 -720
- data/lib/stylesheets/common/sr_Latn.xml +0 -679
- data/lib/stylesheets/common/subtitles.xsl +0 -156
- data/lib/stylesheets/common/sv.xml +0 -664
- data/lib/stylesheets/common/ta.xml +0 -660
- data/lib/stylesheets/common/table.xsl +0 -515
- data/lib/stylesheets/common/targetdatabase.dtd +0 -49
- data/lib/stylesheets/common/targets.xsl +0 -334
- data/lib/stylesheets/common/te.xml +0 -660
- data/lib/stylesheets/common/th.xml +0 -1229
- data/lib/stylesheets/common/titles.xsl +0 -806
- data/lib/stylesheets/common/tl.xml +0 -1229
- data/lib/stylesheets/common/tr.xml +0 -666
- data/lib/stylesheets/common/uk.xml +0 -726
- data/lib/stylesheets/common/utility.xml +0 -259
- data/lib/stylesheets/common/utility.xsl +0 -291
- data/lib/stylesheets/common/vi.xml +0 -1229
- data/lib/stylesheets/common/xh.xml +0 -1229
- data/lib/stylesheets/common/zh.xml +0 -660
- data/lib/stylesheets/common/zh_cn.xml +0 -660
- data/lib/stylesheets/common/zh_tw.xml +0 -660
- data/lib/stylesheets/docsrc/authors.xml +0 -10
- data/lib/stylesheets/docsrc/copyright.xml +0 -18
- data/lib/stylesheets/docsrc/license.xml +0 -23
- data/lib/stylesheets/docsrc/page.png +0 -0
- data/lib/stylesheets/docsrc/reference.css +0 -79
- data/lib/stylesheets/docsrc/reference.xml +0 -229
- data/lib/stylesheets/docsrc/reference.xml.included +0 -33905
- data/lib/stylesheets/docsrc/warranty.xml +0 -11
- data/lib/stylesheets/eclipse/eclipse.xsl +0 -294
- data/lib/stylesheets/eclipse/eclipse3.xsl +0 -112
- data/lib/stylesheets/eclipse/profile-eclipse.xsl +0 -268
- data/lib/stylesheets/epub/README +0 -88
- data/lib/stylesheets/epub/bin/dbtoepub +0 -76
- data/lib/stylesheets/epub/bin/lib/docbook.rb +0 -227
- data/lib/stylesheets/epub/bin/xslt/obfuscate.xsl +0 -14
- data/lib/stylesheets/epub/docbook.xsl +0 -1678
- data/lib/stylesheets/extensions/LICENSE.txt +0 -264
- data/lib/stylesheets/extensions/NOTICE.txt +0 -12
- data/lib/stylesheets/extensions/README.LIBXSLT +0 -52
- data/lib/stylesheets/extensions/README.txt +0 -4
- data/lib/stylesheets/extensions/docbook.py +0 -239
- data/lib/stylesheets/extensions/lucene-analyzers-3.0.0.jar +0 -0
- data/lib/stylesheets/extensions/lucene-core-3.0.0.jar +0 -0
- data/lib/stylesheets/extensions/saxon65.jar +0 -0
- data/lib/stylesheets/extensions/webhelpindexer.jar +0 -0
- data/lib/stylesheets/extensions/xalan27.jar +0 -0
- data/lib/stylesheets/extensions/xslt.py +0 -84
- data/lib/stylesheets/fo/admon.xsl +0 -132
- data/lib/stylesheets/fo/annotations.xsl +0 -20
- data/lib/stylesheets/fo/autoidx-kimber.xsl +0 -173
- data/lib/stylesheets/fo/autoidx-kosek.xsl +0 -140
- data/lib/stylesheets/fo/autoidx-ng.xsl +0 -22
- data/lib/stylesheets/fo/autoidx.xsl +0 -1331
- data/lib/stylesheets/fo/autotoc.xsl +0 -917
- data/lib/stylesheets/fo/axf.xsl +0 -112
- data/lib/stylesheets/fo/biblio-iso690.xsl +0 -1302
- data/lib/stylesheets/fo/biblio.xsl +0 -1171
- data/lib/stylesheets/fo/block.xsl +0 -656
- data/lib/stylesheets/fo/callout.xsl +0 -232
- data/lib/stylesheets/fo/component.xsl +0 -900
- data/lib/stylesheets/fo/division.xsl +0 -614
- data/lib/stylesheets/fo/docbook.xsl +0 -333
- data/lib/stylesheets/fo/ebnf.xsl +0 -326
- data/lib/stylesheets/fo/fo-rtf.xsl +0 -155
- data/lib/stylesheets/fo/fo.xsl +0 -120
- data/lib/stylesheets/fo/footnote.xsl +0 -221
- data/lib/stylesheets/fo/fop.xsl +0 -95
- data/lib/stylesheets/fo/fop1.xsl +0 -225
- data/lib/stylesheets/fo/formal.xsl +0 -644
- data/lib/stylesheets/fo/glossary.xsl +0 -1170
- data/lib/stylesheets/fo/graphics.xsl +0 -649
- data/lib/stylesheets/fo/highlight.xsl +0 -78
- data/lib/stylesheets/fo/htmltbl.xsl +0 -427
- data/lib/stylesheets/fo/index.xsl +0 -486
- data/lib/stylesheets/fo/info.xsl +0 -36
- data/lib/stylesheets/fo/inline.xsl +0 -1289
- data/lib/stylesheets/fo/keywords.xsl +0 -23
- data/lib/stylesheets/fo/lists.xsl +0 -1395
- data/lib/stylesheets/fo/math.xsl +0 -141
- data/lib/stylesheets/fo/pagesetup.xsl +0 -2571
- data/lib/stylesheets/fo/param.xml +0 -12445
- data/lib/stylesheets/fo/param.xsl +0 -969
- data/lib/stylesheets/fo/passivetex.xsl +0 -38
- data/lib/stylesheets/fo/pdf2index +0 -140
- data/lib/stylesheets/fo/pi.xml +0 -1002
- data/lib/stylesheets/fo/pi.xsl +0 -1093
- data/lib/stylesheets/fo/profile-docbook.xsl +0 -288
- data/lib/stylesheets/fo/ptc.xsl +0 -79
- data/lib/stylesheets/fo/qandaset.xsl +0 -397
- data/lib/stylesheets/fo/refentry.xsl +0 -640
- data/lib/stylesheets/fo/sections.xsl +0 -766
- data/lib/stylesheets/fo/spaces.xsl +0 -276
- data/lib/stylesheets/fo/synop.xsl +0 -1009
- data/lib/stylesheets/fo/table.xml +0 -135
- data/lib/stylesheets/fo/table.xsl +0 -1682
- data/lib/stylesheets/fo/task.xsl +0 -93
- data/lib/stylesheets/fo/titlepage.templates.xml +0 -1354
- data/lib/stylesheets/fo/titlepage.templates.xsl +0 -5186
- data/lib/stylesheets/fo/titlepage.xsl +0 -769
- data/lib/stylesheets/fo/toc.xsl +0 -334
- data/lib/stylesheets/fo/verbatim.xsl +0 -466
- data/lib/stylesheets/fo/xep.xsl +0 -182
- data/lib/stylesheets/fo/xref.xsl +0 -1539
- data/lib/stylesheets/highlighting/README +0 -16
- data/lib/stylesheets/highlighting/c-hl.xml +0 -101
- data/lib/stylesheets/highlighting/common.xsl +0 -121
- data/lib/stylesheets/highlighting/cpp-hl.xml +0 -150
- data/lib/stylesheets/highlighting/csharp-hl.xml +0 -187
- data/lib/stylesheets/highlighting/delphi-hl.xml +0 -200
- data/lib/stylesheets/highlighting/ini-hl.xml +0 -45
- data/lib/stylesheets/highlighting/java-hl.xml +0 -117
- data/lib/stylesheets/highlighting/javascript-hl.xml +0 -147
- data/lib/stylesheets/highlighting/m2-hl.xml +0 -90
- data/lib/stylesheets/highlighting/myxml-hl.xml +0 -116
- data/lib/stylesheets/highlighting/perl-hl.xml +0 -120
- data/lib/stylesheets/highlighting/php-hl.xml +0 -149
- data/lib/stylesheets/highlighting/python-hl.xml +0 -100
- data/lib/stylesheets/highlighting/ruby-hl.xml +0 -109
- data/lib/stylesheets/highlighting/tcl-hl.xml +0 -180
- data/lib/stylesheets/highlighting/xslthl-config.xml +0 -46
- data/lib/stylesheets/html/admon.xsl +0 -136
- data/lib/stylesheets/html/annotations.xsl +0 -171
- data/lib/stylesheets/html/autoidx-kimber.xsl +0 -166
- data/lib/stylesheets/html/autoidx-kosek.xsl +0 -121
- data/lib/stylesheets/html/autoidx-ng.xsl +0 -22
- data/lib/stylesheets/html/autoidx.xsl +0 -740
- data/lib/stylesheets/html/autotoc.xsl +0 -709
- data/lib/stylesheets/html/biblio-iso690.xsl +0 -1302
- data/lib/stylesheets/html/biblio.xsl +0 -1255
- data/lib/stylesheets/html/block.xsl +0 -540
- data/lib/stylesheets/html/callout.xsl +0 -202
- data/lib/stylesheets/html/changebars.xsl +0 -123
- data/lib/stylesheets/html/chunk-changebars.xsl +0 -100
- data/lib/stylesheets/html/chunk-code.xsl +0 -672
- data/lib/stylesheets/html/chunk-common.xsl +0 -1921
- data/lib/stylesheets/html/chunk.xsl +0 -53
- data/lib/stylesheets/html/chunker.xsl +0 -440
- data/lib/stylesheets/html/chunkfast.xsl +0 -73
- data/lib/stylesheets/html/chunktoc.xsl +0 -541
- data/lib/stylesheets/html/component.xsl +0 -427
- data/lib/stylesheets/html/division.xsl +0 -219
- data/lib/stylesheets/html/docbook.css.xml +0 -109
- data/lib/stylesheets/html/docbook.xsl +0 -468
- data/lib/stylesheets/html/ebnf.xsl +0 -330
- data/lib/stylesheets/html/footnote.xsl +0 -314
- data/lib/stylesheets/html/formal.xsl +0 -427
- data/lib/stylesheets/html/glossary.xsl +0 -493
- data/lib/stylesheets/html/graphics.xsl +0 -1516
- data/lib/stylesheets/html/highlight.xsl +0 -87
- data/lib/stylesheets/html/html-rtf.xsl +0 -336
- data/lib/stylesheets/html/html.xsl +0 -614
- data/lib/stylesheets/html/htmltbl.xsl +0 -137
- data/lib/stylesheets/html/index.xsl +0 -290
- data/lib/stylesheets/html/info.xsl +0 -45
- data/lib/stylesheets/html/inline.xsl +0 -1491
- data/lib/stylesheets/html/keywords.xsl +0 -37
- data/lib/stylesheets/html/lists.xsl +0 -1185
- data/lib/stylesheets/html/maketoc.xsl +0 -87
- data/lib/stylesheets/html/manifest.xsl +0 -23
- data/lib/stylesheets/html/math.xsl +0 -271
- data/lib/stylesheets/html/oldchunker.xsl +0 -203
- data/lib/stylesheets/html/onechunk.xsl +0 -38
- data/lib/stylesheets/html/param.xml +0 -10905
- data/lib/stylesheets/html/param.xsl +0 -436
- data/lib/stylesheets/html/pi.xml +0 -1113
- data/lib/stylesheets/html/pi.xsl +0 -1264
- data/lib/stylesheets/html/profile-chunk-code.xsl +0 -614
- data/lib/stylesheets/html/profile-chunk.xsl +0 -53
- data/lib/stylesheets/html/profile-docbook.xsl +0 -412
- data/lib/stylesheets/html/profile-onechunk.xsl +0 -38
- data/lib/stylesheets/html/qandaset.xsl +0 -438
- data/lib/stylesheets/html/refentry.xsl +0 -301
- data/lib/stylesheets/html/sections.xsl +0 -617
- data/lib/stylesheets/html/synop.xsl +0 -1556
- data/lib/stylesheets/html/table.xsl +0 -1201
- data/lib/stylesheets/html/task.xsl +0 -78
- data/lib/stylesheets/html/titlepage.templates.xml +0 -708
- data/lib/stylesheets/html/titlepage.templates.xsl +0 -3818
- data/lib/stylesheets/html/titlepage.xsl +0 -1049
- data/lib/stylesheets/html/toc.xsl +0 -352
- data/lib/stylesheets/html/verbatim.xsl +0 -411
- data/lib/stylesheets/html/xref.xsl +0 -1378
- data/lib/stylesheets/htmlhelp/htmlhelp-common.xsl +0 -1108
- data/lib/stylesheets/htmlhelp/htmlhelp.xsl +0 -23
- data/lib/stylesheets/htmlhelp/profile-htmlhelp-common.xsl +0 -1082
- data/lib/stylesheets/htmlhelp/profile-htmlhelp.xsl +0 -23
- data/lib/stylesheets/images/annot-close.png +0 -0
- data/lib/stylesheets/images/annot-open.png +0 -0
- data/lib/stylesheets/images/blank.png +0 -0
- data/lib/stylesheets/images/callouts/1.gif +0 -0
- data/lib/stylesheets/images/callouts/1.png +0 -0
- data/lib/stylesheets/images/callouts/1.svg +0 -15
- data/lib/stylesheets/images/callouts/10.gif +0 -0
- data/lib/stylesheets/images/callouts/10.png +0 -0
- data/lib/stylesheets/images/callouts/10.svg +0 -18
- data/lib/stylesheets/images/callouts/11.gif +0 -0
- data/lib/stylesheets/images/callouts/11.png +0 -0
- data/lib/stylesheets/images/callouts/11.svg +0 -16
- data/lib/stylesheets/images/callouts/12.gif +0 -0
- data/lib/stylesheets/images/callouts/12.png +0 -0
- data/lib/stylesheets/images/callouts/12.svg +0 -18
- data/lib/stylesheets/images/callouts/13.gif +0 -0
- data/lib/stylesheets/images/callouts/13.png +0 -0
- data/lib/stylesheets/images/callouts/13.svg +0 -20
- data/lib/stylesheets/images/callouts/14.gif +0 -0
- data/lib/stylesheets/images/callouts/14.png +0 -0
- data/lib/stylesheets/images/callouts/14.svg +0 -17
- data/lib/stylesheets/images/callouts/15.gif +0 -0
- data/lib/stylesheets/images/callouts/15.png +0 -0
- data/lib/stylesheets/images/callouts/15.svg +0 -19
- data/lib/stylesheets/images/callouts/16.svg +0 -20
- data/lib/stylesheets/images/callouts/17.svg +0 -17
- data/lib/stylesheets/images/callouts/18.svg +0 -21
- data/lib/stylesheets/images/callouts/19.svg +0 -20
- data/lib/stylesheets/images/callouts/2.gif +0 -0
- data/lib/stylesheets/images/callouts/2.png +0 -0
- data/lib/stylesheets/images/callouts/2.svg +0 -17
- data/lib/stylesheets/images/callouts/20.svg +0 -20
- data/lib/stylesheets/images/callouts/21.svg +0 -18
- data/lib/stylesheets/images/callouts/22.svg +0 -20
- data/lib/stylesheets/images/callouts/23.svg +0 -22
- data/lib/stylesheets/images/callouts/24.svg +0 -19
- data/lib/stylesheets/images/callouts/25.svg +0 -21
- data/lib/stylesheets/images/callouts/26.svg +0 -22
- data/lib/stylesheets/images/callouts/27.svg +0 -19
- data/lib/stylesheets/images/callouts/28.svg +0 -23
- data/lib/stylesheets/images/callouts/29.svg +0 -22
- data/lib/stylesheets/images/callouts/3.gif +0 -0
- data/lib/stylesheets/images/callouts/3.png +0 -0
- data/lib/stylesheets/images/callouts/3.svg +0 -19
- data/lib/stylesheets/images/callouts/30.svg +0 -22
- data/lib/stylesheets/images/callouts/4.gif +0 -0
- data/lib/stylesheets/images/callouts/4.png +0 -0
- data/lib/stylesheets/images/callouts/4.svg +0 -16
- data/lib/stylesheets/images/callouts/5.gif +0 -0
- data/lib/stylesheets/images/callouts/5.png +0 -0
- data/lib/stylesheets/images/callouts/5.svg +0 -18
- data/lib/stylesheets/images/callouts/6.gif +0 -0
- data/lib/stylesheets/images/callouts/6.png +0 -0
- data/lib/stylesheets/images/callouts/6.svg +0 -19
- data/lib/stylesheets/images/callouts/7.gif +0 -0
- data/lib/stylesheets/images/callouts/7.png +0 -0
- data/lib/stylesheets/images/callouts/7.svg +0 -16
- data/lib/stylesheets/images/callouts/8.gif +0 -0
- data/lib/stylesheets/images/callouts/8.png +0 -0
- data/lib/stylesheets/images/callouts/8.svg +0 -20
- data/lib/stylesheets/images/callouts/9.gif +0 -0
- data/lib/stylesheets/images/callouts/9.png +0 -0
- data/lib/stylesheets/images/callouts/9.svg +0 -19
- data/lib/stylesheets/images/caution.gif +0 -0
- data/lib/stylesheets/images/caution.png +0 -0
- data/lib/stylesheets/images/caution.svg +0 -25
- data/lib/stylesheets/images/caution.tif +0 -0
- data/lib/stylesheets/images/colorsvg/caution.svg +0 -141
- data/lib/stylesheets/images/colorsvg/home.svg +0 -498
- data/lib/stylesheets/images/colorsvg/important.svg +0 -239
- data/lib/stylesheets/images/colorsvg/next.svg +0 -338
- data/lib/stylesheets/images/colorsvg/note.svg +0 -200
- data/lib/stylesheets/images/colorsvg/prev.svg +0 -338
- data/lib/stylesheets/images/colorsvg/tip.svg +0 -367
- data/lib/stylesheets/images/colorsvg/up.svg +0 -338
- data/lib/stylesheets/images/colorsvg/warning.svg +0 -232
- data/lib/stylesheets/images/draft.png +0 -0
- data/lib/stylesheets/images/home.gif +0 -0
- data/lib/stylesheets/images/home.png +0 -0
- data/lib/stylesheets/images/home.svg +0 -26
- data/lib/stylesheets/images/important.gif +0 -0
- data/lib/stylesheets/images/important.png +0 -0
- data/lib/stylesheets/images/important.svg +0 -25
- data/lib/stylesheets/images/important.tif +0 -0
- data/lib/stylesheets/images/next.gif +0 -0
- data/lib/stylesheets/images/next.png +0 -0
- data/lib/stylesheets/images/next.svg +0 -19
- data/lib/stylesheets/images/note.gif +0 -0
- data/lib/stylesheets/images/note.png +0 -0
- data/lib/stylesheets/images/note.svg +0 -33
- data/lib/stylesheets/images/note.tif +0 -0
- data/lib/stylesheets/images/prev.gif +0 -0
- data/lib/stylesheets/images/prev.png +0 -0
- data/lib/stylesheets/images/prev.svg +0 -19
- data/lib/stylesheets/images/tip.gif +0 -0
- data/lib/stylesheets/images/tip.png +0 -0
- data/lib/stylesheets/images/tip.svg +0 -31
- data/lib/stylesheets/images/tip.tif +0 -0
- data/lib/stylesheets/images/toc-blank.png +0 -0
- data/lib/stylesheets/images/toc-minus.png +0 -0
- data/lib/stylesheets/images/toc-plus.png +0 -0
- data/lib/stylesheets/images/up.gif +0 -0
- data/lib/stylesheets/images/up.png +0 -0
- data/lib/stylesheets/images/up.svg +0 -19
- data/lib/stylesheets/images/warning.gif +0 -0
- data/lib/stylesheets/images/warning.png +0 -0
- data/lib/stylesheets/images/warning.svg +0 -23
- data/lib/stylesheets/images/warning.tif +0 -0
- data/lib/stylesheets/install.sh +0 -977
- data/lib/stylesheets/javahelp/javahelp.xsl +0 -613
- data/lib/stylesheets/javahelp/profile-javahelp.xsl +0 -548
- data/lib/stylesheets/lib/lib.xsl +0 -482
- data/lib/stylesheets/manpages/ChangeLog.20020917 +0 -195
- data/lib/stylesheets/manpages/block.xsl +0 -412
- data/lib/stylesheets/manpages/charmap.groff.xsl +0 -6014
- data/lib/stylesheets/manpages/docbook.xsl +0 -302
- data/lib/stylesheets/manpages/endnotes.xsl +0 -587
- data/lib/stylesheets/manpages/html-synop.xsl +0 -1569
- data/lib/stylesheets/manpages/info.xsl +0 -801
- data/lib/stylesheets/manpages/inline.xsl +0 -221
- data/lib/stylesheets/manpages/lists.xsl +0 -606
- data/lib/stylesheets/manpages/other.xsl +0 -889
- data/lib/stylesheets/manpages/param.xml +0 -3220
- data/lib/stylesheets/manpages/param.xsl +0 -195
- data/lib/stylesheets/manpages/pi.xml +0 -70
- data/lib/stylesheets/manpages/pi.xsl +0 -80
- data/lib/stylesheets/manpages/profile-docbook.xsl +0 -282
- data/lib/stylesheets/manpages/refentry.xsl +0 -321
- data/lib/stylesheets/manpages/synop.xsl +0 -433
- data/lib/stylesheets/manpages/table.xsl +0 -633
- data/lib/stylesheets/manpages/utility.xsl +0 -556
- data/lib/stylesheets/params/abstract.notitle.enabled.xml +0 -22
- data/lib/stylesheets/params/abstract.properties.xml +0 -32
- data/lib/stylesheets/params/abstract.title.properties.xml +0 -39
- data/lib/stylesheets/params/active.toc.xml +0 -29
- data/lib/stylesheets/params/ade.extensions.xml +0 -32
- data/lib/stylesheets/params/admon.graphics.extension.xml +0 -27
- data/lib/stylesheets/params/admon.graphics.path.xml +0 -27
- data/lib/stylesheets/params/admon.graphics.xml +0 -29
- data/lib/stylesheets/params/admon.style.xml +0 -31
- data/lib/stylesheets/params/admon.textlabel.xml +0 -32
- data/lib/stylesheets/params/admonition.properties.xml +0 -25
- data/lib/stylesheets/params/admonition.title.properties.xml +0 -32
- data/lib/stylesheets/params/alignment.xml +0 -41
- data/lib/stylesheets/params/annotate.toc.xml +0 -28
- data/lib/stylesheets/params/annotation.css.xml +0 -71
- data/lib/stylesheets/params/annotation.graphic.close.xml +0 -31
- data/lib/stylesheets/params/annotation.graphic.open.xml +0 -28
- data/lib/stylesheets/params/annotation.js.xml +0 -33
- data/lib/stylesheets/params/annotation.support.xml +0 -29
- data/lib/stylesheets/params/appendix.autolabel.xml +0 -73
- data/lib/stylesheets/params/arbortext.extensions.xml +0 -30
- data/lib/stylesheets/params/article.appendix.title.properties.xml +0 -33
- data/lib/stylesheets/params/author.othername.in.middle.xml +0 -31
- data/lib/stylesheets/params/autolayout-file.xml +0 -29
- data/lib/stylesheets/params/autotoc.label.in.hyperlink.xml +0 -29
- data/lib/stylesheets/params/autotoc.label.separator.xml +0 -27
- data/lib/stylesheets/params/axf.extensions.xml +0 -33
- data/lib/stylesheets/params/banner.before.navigation.xml +0 -25
- data/lib/stylesheets/params/base.dir.xml +0 -29
- data/lib/stylesheets/params/biblioentry.item.separator.xml +0 -26
- data/lib/stylesheets/params/biblioentry.properties.xml +0 -28
- data/lib/stylesheets/params/bibliography.collection.xml +0 -104
- data/lib/stylesheets/params/bibliography.numbered.xml +0 -27
- data/lib/stylesheets/params/bibliography.style.xml +0 -35
- data/lib/stylesheets/params/blockquote.properties.xml +0 -34
- data/lib/stylesheets/params/blurb.on.titlepage.enabled.xml +0 -31
- data/lib/stylesheets/params/body.attributes.xml +0 -31
- data/lib/stylesheets/params/body.bg.color.xml +0 -28
- data/lib/stylesheets/params/body.end.indent.xml +0 -37
- data/lib/stylesheets/params/body.font.family.xml +0 -32
- data/lib/stylesheets/params/body.font.master.xml +0 -30
- data/lib/stylesheets/params/body.font.size.xml +0 -31
- data/lib/stylesheets/params/body.margin.bottom.xml +0 -29
- data/lib/stylesheets/params/body.margin.top.xml +0 -28
- data/lib/stylesheets/params/body.start.indent.xml +0 -64
- data/lib/stylesheets/params/bookmarks.collapse.xml +0 -31
- data/lib/stylesheets/params/bridgehead.in.toc.xml +0 -28
- data/lib/stylesheets/params/bullet.image.xml +0 -28
- data/lib/stylesheets/params/callout.defaultcolumn.xml +0 -30
- data/lib/stylesheets/params/callout.graphics.extension.xml +0 -33
- data/lib/stylesheets/params/callout.graphics.number.limit.xml +0 -34
- data/lib/stylesheets/params/callout.graphics.path.xml +0 -31
- data/lib/stylesheets/params/callout.graphics.xml +0 -30
- data/lib/stylesheets/params/callout.icon.size.xml +0 -28
- data/lib/stylesheets/params/callout.list.table.xml +0 -32
- data/lib/stylesheets/params/callout.unicode.font.xml +0 -29
- data/lib/stylesheets/params/callout.unicode.number.limit.xml +0 -35
- data/lib/stylesheets/params/callout.unicode.start.character.xml +0 -33
- data/lib/stylesheets/params/callout.unicode.xml +0 -26
- data/lib/stylesheets/params/callouts.extension.xml +0 -30
- data/lib/stylesheets/params/chapter.autolabel.xml +0 -71
- data/lib/stylesheets/params/chunk.append.xml +0 -30
- data/lib/stylesheets/params/chunk.first.sections.xml +0 -31
- data/lib/stylesheets/params/chunk.quietly.xml +0 -30
- data/lib/stylesheets/params/chunk.section.depth.xml +0 -27
- data/lib/stylesheets/params/chunk.sections.xml +0 -30
- data/lib/stylesheets/params/chunk.separate.lots.xml +0 -36
- data/lib/stylesheets/params/chunk.toc.xml +0 -30
- data/lib/stylesheets/params/chunk.tocs.and.lots.has.title.xml +0 -28
- data/lib/stylesheets/params/chunk.tocs.and.lots.xml +0 -32
- data/lib/stylesheets/params/chunker.output.cdata-section-elements.xml +0 -30
- data/lib/stylesheets/params/chunker.output.doctype-public.xml +0 -31
- data/lib/stylesheets/params/chunker.output.doctype-system.xml +0 -31
- data/lib/stylesheets/params/chunker.output.encoding.xml +0 -31
- data/lib/stylesheets/params/chunker.output.indent.xml +0 -30
- data/lib/stylesheets/params/chunker.output.media-type.xml +0 -35
- data/lib/stylesheets/params/chunker.output.method.xml +0 -32
- data/lib/stylesheets/params/chunker.output.omit-xml-declaration.xml +0 -30
- data/lib/stylesheets/params/chunker.output.standalone.xml +0 -31
- data/lib/stylesheets/params/citerefentry.link.xml +0 -29
- data/lib/stylesheets/params/collect.xref.targets.xml +0 -33
- data/lib/stylesheets/params/column.count.back.xml +0 -27
- data/lib/stylesheets/params/column.count.body.xml +0 -27
- data/lib/stylesheets/params/column.count.front.xml +0 -27
- data/lib/stylesheets/params/column.count.index.xml +0 -27
- data/lib/stylesheets/params/column.count.lot.xml +0 -28
- data/lib/stylesheets/params/column.count.titlepage.xml +0 -27
- data/lib/stylesheets/params/column.gap.back.xml +0 -28
- data/lib/stylesheets/params/column.gap.body.xml +0 -28
- data/lib/stylesheets/params/column.gap.front.xml +0 -28
- data/lib/stylesheets/params/column.gap.index.xml +0 -28
- data/lib/stylesheets/params/column.gap.lot.xml +0 -28
- data/lib/stylesheets/params/column.gap.titlepage.xml +0 -29
- data/lib/stylesheets/params/compact.list.item.spacing.xml +0 -28
- data/lib/stylesheets/params/component.label.includes.part.label.xml +0 -39
- data/lib/stylesheets/params/component.title.properties.xml +0 -40
- data/lib/stylesheets/params/component.titlepage.properties.xml +0 -33
- data/lib/stylesheets/params/contrib.inline.enabled.xml +0 -26
- data/lib/stylesheets/params/crop.mark.bleed.xml +0 -28
- data/lib/stylesheets/params/crop.mark.offset.xml +0 -28
- data/lib/stylesheets/params/crop.mark.width.xml +0 -28
- data/lib/stylesheets/params/crop.marks.xml +0 -28
- data/lib/stylesheets/params/css.decoration.xml +0 -33
- data/lib/stylesheets/params/css.stylesheet.dir.xml +0 -33
- data/lib/stylesheets/params/css.stylesheet.xml +0 -29
- data/lib/stylesheets/params/current.docid.xml +0 -27
- data/lib/stylesheets/params/currentpage.marker.xml +0 -25
- data/lib/stylesheets/params/custom.css.source.xml +0 -119
- data/lib/stylesheets/params/default.float.class.xml +0 -34
- data/lib/stylesheets/params/default.image.width.xml +0 -30
- data/lib/stylesheets/params/default.table.frame.xml +0 -28
- data/lib/stylesheets/params/default.table.rules.xml +0 -76
- data/lib/stylesheets/params/default.table.width.xml +0 -26
- data/lib/stylesheets/params/default.units.xml +0 -37
- data/lib/stylesheets/params/dingbat.font.family.xml +0 -33
- data/lib/stylesheets/params/docbook.css.link.xml +0 -42
- data/lib/stylesheets/params/docbook.css.source.xml +0 -83
- data/lib/stylesheets/params/double.sided.xml +0 -31
- data/lib/stylesheets/params/draft.mode.xml +0 -36
- data/lib/stylesheets/params/draft.watermark.image.xml +0 -27
- data/lib/stylesheets/params/dry-run.xml +0 -27
- data/lib/stylesheets/params/dynamic.toc.xml +0 -29
- data/lib/stylesheets/params/ebnf.assignment.xml +0 -39
- data/lib/stylesheets/params/ebnf.statement.terminator.xml +0 -32
- data/lib/stylesheets/params/ebnf.table.bgcolor.xml +0 -30
- data/lib/stylesheets/params/ebnf.table.border.xml +0 -26
- data/lib/stylesheets/params/eclipse.autolabel.xml +0 -28
- data/lib/stylesheets/params/eclipse.plugin.id.xml +0 -28
- data/lib/stylesheets/params/eclipse.plugin.name.xml +0 -27
- data/lib/stylesheets/params/eclipse.plugin.provider.xml +0 -27
- data/lib/stylesheets/params/editedby.enabled.xml +0 -27
- data/lib/stylesheets/params/email.delimiters.enabled.xml +0 -34
- data/lib/stylesheets/params/email.mailto.enabled.xml +0 -29
- data/lib/stylesheets/params/emphasis.propagates.style.xml +0 -26
- data/lib/stylesheets/params/entry.propagates.style.xml +0 -30
- data/lib/stylesheets/params/epub.autolabel.xml +0 -28
- data/lib/stylesheets/params/equation.number.properties.xml +0 -28
- data/lib/stylesheets/params/equation.properties.xml +0 -27
- data/lib/stylesheets/params/example.properties.xml +0 -27
- data/lib/stylesheets/params/exsl.node.set.available.xml +0 -44
- data/lib/stylesheets/params/feedback.href.xml +0 -28
- data/lib/stylesheets/params/feedback.link.text.xml +0 -28
- data/lib/stylesheets/params/feedback.with.ids.xml +0 -27
- data/lib/stylesheets/params/figure.properties.xml +0 -27
- data/lib/stylesheets/params/filename-prefix.xml +0 -28
- data/lib/stylesheets/params/firstterm.only.link.xml +0 -29
- data/lib/stylesheets/params/foil.properties.xml +0 -37
- data/lib/stylesheets/params/foil.subtitle.properties.xml +0 -36
- data/lib/stylesheets/params/foil.title.master.xml +0 -29
- data/lib/stylesheets/params/foil.title.size.xml +0 -32
- data/lib/stylesheets/params/foilgroup.properties.xml +0 -31
- data/lib/stylesheets/params/foilgroup.toc.xml +0 -29
- data/lib/stylesheets/params/footer.column.widths.xml +0 -80
- data/lib/stylesheets/params/footer.content.properties.xml +0 -34
- data/lib/stylesheets/params/footer.hr.xml +0 -26
- data/lib/stylesheets/params/footer.rule.xml +0 -27
- data/lib/stylesheets/params/footer.table.height.xml +0 -32
- data/lib/stylesheets/params/footer.table.properties.xml +0 -30
- data/lib/stylesheets/params/footers.on.blank.pages.xml +0 -27
- data/lib/stylesheets/params/footnote.font.size.xml +0 -28
- data/lib/stylesheets/params/footnote.mark.properties.xml +0 -41
- data/lib/stylesheets/params/footnote.number.format.xml +0 -33
- data/lib/stylesheets/params/footnote.number.symbols.xml +0 -39
- data/lib/stylesheets/params/footnote.properties.xml +0 -43
- data/lib/stylesheets/params/footnote.sep.leader.properties.xml +0 -39
- data/lib/stylesheets/params/fop.extensions.xml +0 -36
- data/lib/stylesheets/params/fop1.extensions.xml +0 -34
- data/lib/stylesheets/params/formal.object.properties.xml +0 -36
- data/lib/stylesheets/params/formal.procedures.xml +0 -28
- data/lib/stylesheets/params/formal.title.placement.xml +0 -41
- data/lib/stylesheets/params/formal.title.properties.xml +0 -34
- data/lib/stylesheets/params/funcsynopsis.decoration.xml +0 -30
- data/lib/stylesheets/params/funcsynopsis.style.xml +0 -31
- data/lib/stylesheets/params/function.parens.xml +0 -29
- data/lib/stylesheets/params/generate.css.header.xml +0 -40
- data/lib/stylesheets/params/generate.id.attributes.xml +0 -59
- data/lib/stylesheets/params/generate.index.xml +0 -25
- data/lib/stylesheets/params/generate.legalnotice.link.xml +0 -72
- data/lib/stylesheets/params/generate.manifest.xml +0 -27
- data/lib/stylesheets/params/generate.meta.abstract.xml +0 -29
- data/lib/stylesheets/params/generate.revhistory.link.xml +0 -50
- data/lib/stylesheets/params/generate.section.toc.level.xml +0 -35
- data/lib/stylesheets/params/generate.toc.xml +0 -108
- data/lib/stylesheets/params/glossary.as.blocks.xml +0 -38
- data/lib/stylesheets/params/glossary.collection.xml +0 -252
- data/lib/stylesheets/params/glossary.sort.xml +0 -32
- data/lib/stylesheets/params/glossdef.block.properties.xml +0 -32
- data/lib/stylesheets/params/glossdef.list.properties.xml +0 -30
- data/lib/stylesheets/params/glossentry.list.item.properties.xml +0 -32
- data/lib/stylesheets/params/glossentry.show.acronym.xml +0 -37
- data/lib/stylesheets/params/glosslist.as.blocks.xml +0 -27
- data/lib/stylesheets/params/glossterm.auto.link.xml +0 -33
- data/lib/stylesheets/params/glossterm.block.properties.xml +0 -35
- data/lib/stylesheets/params/glossterm.list.properties.xml +0 -30
- data/lib/stylesheets/params/glossterm.separation.xml +0 -31
- data/lib/stylesheets/params/glossterm.width.xml +0 -28
- data/lib/stylesheets/params/graphic.default.extension.xml +0 -29
- data/lib/stylesheets/params/graphical.admonition.properties.xml +0 -42
- data/lib/stylesheets/params/graphics.dir.xml +0 -33
- data/lib/stylesheets/params/graphicsize.extension.xml +0 -30
- data/lib/stylesheets/params/graphicsize.use.img.src.path.xml +0 -30
- data/lib/stylesheets/params/header.column.widths.xml +0 -80
- data/lib/stylesheets/params/header.content.properties.xml +0 -34
- data/lib/stylesheets/params/header.hr.xml +0 -26
- data/lib/stylesheets/params/header.rule.xml +0 -27
- data/lib/stylesheets/params/header.table.height.xml +0 -32
- data/lib/stylesheets/params/header.table.properties.xml +0 -30
- data/lib/stylesheets/params/headers.on.blank.pages.xml +0 -27
- data/lib/stylesheets/params/hidetoc.image.xml +0 -29
- data/lib/stylesheets/params/highlight.default.language.xml +0 -27
- data/lib/stylesheets/params/highlight.source.xml +0 -82
- data/lib/stylesheets/params/highlight.xslthl.config.xml +0 -33
- data/lib/stylesheets/params/home.image.xml +0 -27
- data/lib/stylesheets/params/html.append.xml +0 -30
- data/lib/stylesheets/params/html.base.xml +0 -30
- data/lib/stylesheets/params/html.cellpadding.xml +0 -29
- data/lib/stylesheets/params/html.cellspacing.xml +0 -29
- data/lib/stylesheets/params/html.cleanup.xml +0 -34
- data/lib/stylesheets/params/html.ext.xml +0 -29
- data/lib/stylesheets/params/html.extra.head.links.xml +0 -31
- data/lib/stylesheets/params/html.head.legalnotice.link.multiple.xml +0 -44
- data/lib/stylesheets/params/html.head.legalnotice.link.types.xml +0 -75
- data/lib/stylesheets/params/html.longdesc.link.xml +0 -39
- data/lib/stylesheets/params/html.longdesc.xml +0 -28
- data/lib/stylesheets/params/html.stylesheet.type.xml +0 -26
- data/lib/stylesheets/params/html.stylesheet.xml +0 -36
- data/lib/stylesheets/params/htmlhelp.alias.file.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.autolabel.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.button.back.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.forward.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.hideshow.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.home.url.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.home.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.jump1.title.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.jump1.url.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.jump1.xml +0 -23
- data/lib/stylesheets/params/htmlhelp.button.jump2.title.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.jump2.url.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.jump2.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.locate.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.button.next.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.options.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.button.prev.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.button.print.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.button.refresh.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.button.stop.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.button.zoom.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.chm.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.default.topic.xml +0 -37
- data/lib/stylesheets/params/htmlhelp.display.progress.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.encoding.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.enhanced.decompilation.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.enumerate.images.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.force.map.and.alias.xml +0 -26
- data/lib/stylesheets/params/htmlhelp.hhc.binary.xml +0 -29
- data/lib/stylesheets/params/htmlhelp.hhc.folders.instead.books.xml +0 -31
- data/lib/stylesheets/params/htmlhelp.hhc.section.depth.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.hhc.show.root.xml +0 -29
- data/lib/stylesheets/params/htmlhelp.hhc.width.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.hhc.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.hhk.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.hhp.tail.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.hhp.window.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.hhp.windows.xml +0 -29
- data/lib/stylesheets/params/htmlhelp.hhp.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.map.file.xml +0 -25
- data/lib/stylesheets/params/htmlhelp.only.xml +0 -32
- data/lib/stylesheets/params/htmlhelp.remember.window.position.xml +0 -27
- data/lib/stylesheets/params/htmlhelp.show.advanced.search.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.show.favorities.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.show.menu.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.show.toolbar.text.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.title.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.use.hhk.xml +0 -28
- data/lib/stylesheets/params/htmlhelp.window.geometry.xml +0 -30
- data/lib/stylesheets/params/hyphenate.verbatim.characters.xml +0 -30
- data/lib/stylesheets/params/hyphenate.verbatim.xml +0 -45
- data/lib/stylesheets/params/hyphenate.xml +0 -29
- data/lib/stylesheets/params/id.warnings.xml +0 -25
- data/lib/stylesheets/params/ignore.image.scaling.xml +0 -28
- data/lib/stylesheets/params/img.src.path.xml +0 -40
- data/lib/stylesheets/params/index.div.title.properties.xml +0 -39
- data/lib/stylesheets/params/index.entry.properties.xml +0 -33
- data/lib/stylesheets/params/index.links.to.section.xml +0 -76
- data/lib/stylesheets/params/index.method.xml +0 -162
- data/lib/stylesheets/params/index.number.separator.xml +0 -54
- data/lib/stylesheets/params/index.on.role.xml +0 -48
- data/lib/stylesheets/params/index.on.type.xml +0 -52
- data/lib/stylesheets/params/index.page.number.properties.xml +0 -31
- data/lib/stylesheets/params/index.prefer.titleabbrev.xml +0 -29
- data/lib/stylesheets/params/index.preferred.page.properties.xml +0 -32
- data/lib/stylesheets/params/index.range.separator.xml +0 -57
- data/lib/stylesheets/params/index.term.separator.xml +0 -54
- data/lib/stylesheets/params/informal.object.properties.xml +0 -29
- data/lib/stylesheets/params/informalequation.properties.xml +0 -27
- data/lib/stylesheets/params/informalexample.properties.xml +0 -27
- data/lib/stylesheets/params/informalfigure.properties.xml +0 -27
- data/lib/stylesheets/params/informaltable.properties.xml +0 -32
- data/lib/stylesheets/params/inherit.keywords.xml +0 -31
- data/lib/stylesheets/params/insert.link.page.number.xml +0 -69
- data/lib/stylesheets/params/insert.olink.page.number.xml +0 -83
- data/lib/stylesheets/params/insert.olink.pdf.frag.xml +0 -68
- data/lib/stylesheets/params/insert.xref.page.number.xml +0 -60
- data/lib/stylesheets/params/itemizedlist.label.properties.xml +0 -26
- data/lib/stylesheets/params/itemizedlist.label.width.xml +0 -28
- data/lib/stylesheets/params/itemizedlist.properties.xml +0 -23
- data/lib/stylesheets/params/javahelp.encoding.xml +0 -31
- data/lib/stylesheets/params/keep.relative.image.uris.xml +0 -34
- data/lib/stylesheets/params/keyboard.nav.xml +0 -29
- data/lib/stylesheets/params/l10n.gentext.default.language.xml +0 -30
- data/lib/stylesheets/params/l10n.gentext.language.xml +0 -33
- data/lib/stylesheets/params/l10n.gentext.use.xref.language.xml +0 -53
- data/lib/stylesheets/params/l10n.lang.value.rfc.compliant.xml +0 -57
- data/lib/stylesheets/params/label.from.part.xml +0 -38
- data/lib/stylesheets/params/line-height.xml +0 -27
- data/lib/stylesheets/params/linenumbering.everyNth.xml +0 -29
- data/lib/stylesheets/params/linenumbering.extension.xml +0 -30
- data/lib/stylesheets/params/linenumbering.separator.xml +0 -30
- data/lib/stylesheets/params/linenumbering.width.xml +0 -29
- data/lib/stylesheets/params/link.mailto.url.xml +0 -29
- data/lib/stylesheets/params/list.block.properties.xml +0 -25
- data/lib/stylesheets/params/list.block.spacing.xml +0 -29
- data/lib/stylesheets/params/list.item.spacing.xml +0 -26
- data/lib/stylesheets/params/make.clean.html.xml +0 -51
- data/lib/stylesheets/params/make.graphic.viewport.xml +0 -35
- data/lib/stylesheets/params/make.index.markup.xml +0 -73
- data/lib/stylesheets/params/make.single.year.ranges.xml +0 -28
- data/lib/stylesheets/params/make.valid.html.xml +0 -35
- data/lib/stylesheets/params/make.year.ranges.xml +0 -32
- data/lib/stylesheets/params/man.authors.section.enabled.xml +0 -46
- data/lib/stylesheets/params/man.base.url.for.relative.links.xml +0 -76
- data/lib/stylesheets/params/man.break.after.slash.xml +0 -46
- data/lib/stylesheets/params/man.charmap.enabled.xml +0 -55
- data/lib/stylesheets/params/man.charmap.subset.profile.english.xml +0 -80
- data/lib/stylesheets/params/man.charmap.subset.profile.xml +0 -297
- data/lib/stylesheets/params/man.charmap.uri.xml +0 -42
- data/lib/stylesheets/params/man.charmap.use.subset.xml +0 -80
- data/lib/stylesheets/params/man.copyright.section.enabled.xml +0 -46
- data/lib/stylesheets/params/man.endnotes.are.numbered.xml +0 -106
- data/lib/stylesheets/params/man.endnotes.list.enabled.xml +0 -105
- data/lib/stylesheets/params/man.endnotes.list.heading.xml +0 -36
- data/lib/stylesheets/params/man.font.funcprototype.xml +0 -30
- data/lib/stylesheets/params/man.font.funcsynopsisinfo.xml +0 -30
- data/lib/stylesheets/params/man.font.links.xml +0 -64
- data/lib/stylesheets/params/man.font.table.headings.xml +0 -30
- data/lib/stylesheets/params/man.font.table.title.xml +0 -30
- data/lib/stylesheets/params/man.funcsynopsis.style.xml +0 -26
- data/lib/stylesheets/params/man.hyphenate.computer.inlines.xml +0 -53
- data/lib/stylesheets/params/man.hyphenate.filenames.xml +0 -47
- data/lib/stylesheets/params/man.hyphenate.urls.xml +0 -46
- data/lib/stylesheets/params/man.hyphenate.xml +0 -59
- data/lib/stylesheets/params/man.indent.blurbs.xml +0 -33
- data/lib/stylesheets/params/man.indent.lists.xml +0 -35
- data/lib/stylesheets/params/man.indent.refsect.xml +0 -70
- data/lib/stylesheets/params/man.indent.verbatims.xml +0 -33
- data/lib/stylesheets/params/man.indent.width.xml +0 -39
- data/lib/stylesheets/params/man.justify.xml +0 -52
- data/lib/stylesheets/params/man.output.base.dir.xml +0 -39
- data/lib/stylesheets/params/man.output.better.ps.enabled.xml +0 -61
- data/lib/stylesheets/params/man.output.encoding.xml +0 -53
- data/lib/stylesheets/params/man.output.in.separate.dir.xml +0 -32
- data/lib/stylesheets/params/man.output.lang.in.name.enabled.xml +0 -50
- data/lib/stylesheets/params/man.output.manifest.enabled.xml +0 -27
- data/lib/stylesheets/params/man.output.manifest.filename.xml +0 -29
- data/lib/stylesheets/params/man.output.quietly.xml +0 -37
- data/lib/stylesheets/params/man.output.subdirs.enabled.xml +0 -40
- data/lib/stylesheets/params/man.segtitle.suppress.xml +0 -28
- data/lib/stylesheets/params/man.string.subst.map.local.post.xml +0 -34
- data/lib/stylesheets/params/man.string.subst.map.local.pre.xml +0 -34
- data/lib/stylesheets/params/man.string.subst.map.xml +0 -162
- data/lib/stylesheets/params/man.subheading.divider.enabled.xml +0 -37
- data/lib/stylesheets/params/man.subheading.divider.xml +0 -37
- data/lib/stylesheets/params/man.table.footnotes.divider.xml +0 -29
- data/lib/stylesheets/params/man.th.extra1.suppress.xml +0 -32
- data/lib/stylesheets/params/man.th.extra2.max.length.xml +0 -43
- data/lib/stylesheets/params/man.th.extra2.suppress.xml +0 -44
- data/lib/stylesheets/params/man.th.extra3.max.length.xml +0 -42
- data/lib/stylesheets/params/man.th.extra3.suppress.xml +0 -34
- data/lib/stylesheets/params/man.th.title.max.length.xml +0 -63
- data/lib/stylesheets/params/manifest.in.base.dir.xml +0 -29
- data/lib/stylesheets/params/manifest.xml +0 -29
- data/lib/stylesheets/params/manual.toc.xml +0 -29
- data/lib/stylesheets/params/margin.note.float.type.xml +0 -77
- data/lib/stylesheets/params/margin.note.properties.xml +0 -54
- data/lib/stylesheets/params/margin.note.title.properties.xml +0 -32
- data/lib/stylesheets/params/margin.note.width.xml +0 -35
- data/lib/stylesheets/params/marker.section.level.xml +0 -50
- data/lib/stylesheets/params/menuchoice.menu.separator.xml +0 -42
- data/lib/stylesheets/params/menuchoice.separator.xml +0 -32
- data/lib/stylesheets/params/minus.image.xml +0 -29
- data/lib/stylesheets/params/monospace.font.family.xml +0 -29
- data/lib/stylesheets/params/monospace.properties.xml +0 -38
- data/lib/stylesheets/params/monospace.verbatim.font.width.xml +0 -40
- data/lib/stylesheets/params/monospace.verbatim.properties.xml +0 -27
- data/lib/stylesheets/params/multiframe.bottom.bgcolor.xml +0 -28
- data/lib/stylesheets/params/multiframe.navigation.height.xml +0 -28
- data/lib/stylesheets/params/multiframe.top.bgcolor.xml +0 -28
- data/lib/stylesheets/params/multiframe.xml +0 -31
- data/lib/stylesheets/params/nav.separator.xml +0 -28
- data/lib/stylesheets/params/nav.table.summary.xml +0 -27
- data/lib/stylesheets/params/navbgcolor.xml +0 -26
- data/lib/stylesheets/params/navbodywidth.xml +0 -26
- data/lib/stylesheets/params/navig.graphics.extension.xml +0 -28
- data/lib/stylesheets/params/navig.graphics.path.xml +0 -30
- data/lib/stylesheets/params/navig.graphics.xml +0 -31
- data/lib/stylesheets/params/navig.showtitles.xml +0 -32
- data/lib/stylesheets/params/navtocwidth.xml +0 -26
- data/lib/stylesheets/params/next.image.xml +0 -27
- data/lib/stylesheets/params/no.home.image.xml +0 -27
- data/lib/stylesheets/params/no.next.image.xml +0 -27
- data/lib/stylesheets/params/no.prev.image.xml +0 -27
- data/lib/stylesheets/params/no.toc.image.xml +0 -27
- data/lib/stylesheets/params/no.up.image.xml +0 -27
- data/lib/stylesheets/params/nominal.image.depth.xml +0 -27
- data/lib/stylesheets/params/nominal.image.width.xml +0 -43
- data/lib/stylesheets/params/nominal.table.width.xml +0 -30
- data/lib/stylesheets/params/nongraphical.admonition.properties.xml +0 -41
- data/lib/stylesheets/params/normal.para.spacing.xml +0 -26
- data/lib/stylesheets/params/olink.base.uri.xml +0 -35
- data/lib/stylesheets/params/olink.debug.xml +0 -36
- data/lib/stylesheets/params/olink.doctitle.xml +0 -146
- data/lib/stylesheets/params/olink.fragid.xml +0 -23
- data/lib/stylesheets/params/olink.lang.fallback.sequence.xml +0 -83
- data/lib/stylesheets/params/olink.outline.ext.xml +0 -28
- data/lib/stylesheets/params/olink.properties.xml +0 -33
- data/lib/stylesheets/params/olink.pubid.xml +0 -27
- data/lib/stylesheets/params/olink.resolver.xml +0 -23
- data/lib/stylesheets/params/olink.sysid.xml +0 -27
- data/lib/stylesheets/params/orderedlist.label.properties.xml +0 -26
- data/lib/stylesheets/params/orderedlist.label.width.xml +0 -28
- data/lib/stylesheets/params/orderedlist.properties.xml +0 -24
- data/lib/stylesheets/params/othercredit.like.author.enabled.xml +0 -31
- data/lib/stylesheets/params/output-root.xml +0 -28
- data/lib/stylesheets/params/output.indent.xml +0 -32
- data/lib/stylesheets/params/overlay.js.xml +0 -28
- data/lib/stylesheets/params/overlay.logo.xml +0 -28
- data/lib/stylesheets/params/overlay.xml +0 -32
- data/lib/stylesheets/params/page.height.portrait.xml +0 -69
- data/lib/stylesheets/params/page.height.xml +0 -37
- data/lib/stylesheets/params/page.margin.bottom.xml +0 -29
- data/lib/stylesheets/params/page.margin.inner.xml +0 -56
- data/lib/stylesheets/params/page.margin.outer.xml +0 -53
- data/lib/stylesheets/params/page.margin.top.xml +0 -28
- data/lib/stylesheets/params/page.orientation.xml +0 -32
- data/lib/stylesheets/params/page.width.portrait.xml +0 -67
- data/lib/stylesheets/params/page.width.xml +0 -36
- data/lib/stylesheets/params/pages.template.xml +0 -29
- data/lib/stylesheets/params/paper.type.xml +0 -73
- data/lib/stylesheets/params/para.propagates.style.xml +0 -29
- data/lib/stylesheets/params/part.autolabel.xml +0 -73
- data/lib/stylesheets/params/passivetex.extensions.xml +0 -37
- data/lib/stylesheets/params/pgwide.properties.xml +0 -52
- data/lib/stylesheets/params/phrase.propagates.style.xml +0 -29
- data/lib/stylesheets/params/pixels.per.inch.xml +0 -31
- data/lib/stylesheets/params/plus.image.xml +0 -29
- data/lib/stylesheets/params/points.per.em.xml +0 -29
- data/lib/stylesheets/params/preface.autolabel.xml +0 -71
- data/lib/stylesheets/params/prefer.internal.olink.xml +0 -78
- data/lib/stylesheets/params/preferred.mediaobject.role.xml +0 -40
- data/lib/stylesheets/params/prev.image.xml +0 -27
- data/lib/stylesheets/params/procedure.properties.xml +0 -29
- data/lib/stylesheets/params/process.empty.source.toc.xml +0 -39
- data/lib/stylesheets/params/process.source.toc.xml +0 -39
- data/lib/stylesheets/params/profile.arch.xml +0 -39
- data/lib/stylesheets/params/profile.attribute.xml +0 -34
- data/lib/stylesheets/params/profile.audience.xml +0 -38
- data/lib/stylesheets/params/profile.condition.xml +0 -38
- data/lib/stylesheets/params/profile.conformance.xml +0 -38
- data/lib/stylesheets/params/profile.lang.xml +0 -38
- data/lib/stylesheets/params/profile.os.xml +0 -38
- data/lib/stylesheets/params/profile.revision.xml +0 -38
- data/lib/stylesheets/params/profile.revisionflag.xml +0 -38
- data/lib/stylesheets/params/profile.role.xml +0 -54
- data/lib/stylesheets/params/profile.security.xml +0 -38
- data/lib/stylesheets/params/profile.separator.xml +0 -27
- data/lib/stylesheets/params/profile.status.xml +0 -38
- data/lib/stylesheets/params/profile.userlevel.xml +0 -38
- data/lib/stylesheets/params/profile.value.xml +0 -41
- data/lib/stylesheets/params/profile.vendor.xml +0 -38
- data/lib/stylesheets/params/profile.wordsize.xml +0 -38
- data/lib/stylesheets/params/punct.honorific.xml +0 -28
- data/lib/stylesheets/params/qanda.defaultlabel.xml +0 -86
- data/lib/stylesheets/params/qanda.in.toc.xml +0 -34
- data/lib/stylesheets/params/qanda.inherit.numeration.xml +0 -30
- data/lib/stylesheets/params/qanda.nested.in.toc.xml +0 -29
- data/lib/stylesheets/params/qanda.title.level1.properties.xml +0 -32
- data/lib/stylesheets/params/qanda.title.level2.properties.xml +0 -32
- data/lib/stylesheets/params/qanda.title.level3.properties.xml +0 -32
- data/lib/stylesheets/params/qanda.title.level4.properties.xml +0 -32
- data/lib/stylesheets/params/qanda.title.level5.properties.xml +0 -32
- data/lib/stylesheets/params/qanda.title.level6.properties.xml +0 -34
- data/lib/stylesheets/params/qanda.title.properties.xml +0 -37
- data/lib/stylesheets/params/qandadiv.autolabel.xml +0 -26
- data/lib/stylesheets/params/rebuild-all.xml +0 -33
- data/lib/stylesheets/params/refclass.suppress.xml +0 -28
- data/lib/stylesheets/params/refentry.date.profile.enabled.xml +0 -46
- data/lib/stylesheets/params/refentry.date.profile.xml +0 -38
- data/lib/stylesheets/params/refentry.generate.name.xml +0 -33
- data/lib/stylesheets/params/refentry.generate.title.xml +0 -33
- data/lib/stylesheets/params/refentry.manual.fallback.profile.xml +0 -48
- data/lib/stylesheets/params/refentry.manual.profile.enabled.xml +0 -47
- data/lib/stylesheets/params/refentry.manual.profile.xml +0 -72
- data/lib/stylesheets/params/refentry.meta.get.quietly.xml +0 -37
- data/lib/stylesheets/params/refentry.pagebreak.xml +0 -33
- data/lib/stylesheets/params/refentry.separator.xml +0 -29
- data/lib/stylesheets/params/refentry.source.fallback.profile.xml +0 -49
- data/lib/stylesheets/params/refentry.source.name.profile.enabled.xml +0 -48
- data/lib/stylesheets/params/refentry.source.name.profile.xml +0 -89
- data/lib/stylesheets/params/refentry.source.name.suppress.xml +0 -42
- data/lib/stylesheets/params/refentry.title.properties.xml +0 -59
- data/lib/stylesheets/params/refentry.version.profile.enabled.xml +0 -47
- data/lib/stylesheets/params/refentry.version.profile.xml +0 -41
- data/lib/stylesheets/params/refentry.version.suppress.xml +0 -43
- data/lib/stylesheets/params/refentry.xref.manvolnum.xml +0 -31
- data/lib/stylesheets/params/reference.autolabel.xml +0 -67
- data/lib/stylesheets/params/region.after.extent.xml +0 -29
- data/lib/stylesheets/params/region.before.extent.xml +0 -29
- data/lib/stylesheets/params/revhistory.table.cell.properties.xml +0 -28
- data/lib/stylesheets/params/revhistory.table.properties.xml +0 -28
- data/lib/stylesheets/params/revhistory.title.properties.xml +0 -28
- data/lib/stylesheets/params/root.filename.xml +0 -29
- data/lib/stylesheets/params/root.properties.xml +0 -46
- data/lib/stylesheets/params/rootid.xml +0 -33
- data/lib/stylesheets/params/runinhead.default.title.end.punct.xml +0 -27
- data/lib/stylesheets/params/runinhead.title.end.punct.xml +0 -32
- data/lib/stylesheets/params/running.foot.properties.xml +0 -34
- data/lib/stylesheets/params/sans.font.family.xml +0 -29
- data/lib/stylesheets/params/saxon.callouts.xml +0 -30
- data/lib/stylesheets/params/saxon.character.representation.xml +0 -38
- data/lib/stylesheets/params/saxon.linenumbering.xml +0 -32
- data/lib/stylesheets/params/saxon.tablecolumns.xml +0 -30
- data/lib/stylesheets/params/script.dir.xml +0 -33
- data/lib/stylesheets/params/section.autolabel.max.depth.xml +0 -32
- data/lib/stylesheets/params/section.autolabel.xml +0 -26
- data/lib/stylesheets/params/section.container.element.xml +0 -62
- data/lib/stylesheets/params/section.label.includes.component.label.xml +0 -27
- data/lib/stylesheets/params/section.level1.properties.xml +0 -43
- data/lib/stylesheets/params/section.level2.properties.xml +0 -43
- data/lib/stylesheets/params/section.level3.properties.xml +0 -43
- data/lib/stylesheets/params/section.level4.properties.xml +0 -43
- data/lib/stylesheets/params/section.level5.properties.xml +0 -43
- data/lib/stylesheets/params/section.level6.properties.xml +0 -43
- data/lib/stylesheets/params/section.properties.xml +0 -35
- data/lib/stylesheets/params/section.title.level1.properties.xml +0 -32
- data/lib/stylesheets/params/section.title.level2.properties.xml +0 -33
- data/lib/stylesheets/params/section.title.level3.properties.xml +0 -32
- data/lib/stylesheets/params/section.title.level4.properties.xml +0 -32
- data/lib/stylesheets/params/section.title.level5.properties.xml +0 -32
- data/lib/stylesheets/params/section.title.level6.properties.xml +0 -33
- data/lib/stylesheets/params/section.title.properties.xml +0 -39
- data/lib/stylesheets/params/segmentedlist.as.table.xml +0 -28
- data/lib/stylesheets/params/sequential.links.xml +0 -25
- data/lib/stylesheets/params/shade.verbatim.style.xml +0 -36
- data/lib/stylesheets/params/shade.verbatim.xml +0 -30
- data/lib/stylesheets/params/show.comments.xml +0 -32
- data/lib/stylesheets/params/show.foil.number.xml +0 -28
- data/lib/stylesheets/params/show.revisionflag.xml +0 -42
- data/lib/stylesheets/params/showtoc.image.xml +0 -29
- data/lib/stylesheets/params/side.float.properties.xml +0 -50
- data/lib/stylesheets/params/sidebar.float.type.xml +0 -90
- data/lib/stylesheets/params/sidebar.float.width.xml +0 -35
- data/lib/stylesheets/params/sidebar.properties.xml +0 -42
- data/lib/stylesheets/params/sidebar.title.properties.xml +0 -32
- data/lib/stylesheets/params/simplesect.in.toc.xml +0 -26
- data/lib/stylesheets/params/slide.font.family.xml +0 -31
- data/lib/stylesheets/params/slide.title.font.family.xml +0 -31
- data/lib/stylesheets/params/slides.js.xml +0 -28
- data/lib/stylesheets/params/slides.properties.xml +0 -31
- data/lib/stylesheets/params/spacing.paras.xml +0 -30
- data/lib/stylesheets/params/speakernote.properties.xml +0 -32
- data/lib/stylesheets/params/subscript.properties.xml +0 -29
- data/lib/stylesheets/params/superscript.properties.xml +0 -29
- data/lib/stylesheets/params/suppress.footer.navigation.xml +0 -26
- data/lib/stylesheets/params/suppress.header.navigation.xml +0 -27
- data/lib/stylesheets/params/suppress.homepage.title.xml +0 -25
- data/lib/stylesheets/params/suppress.navigation.xml +0 -28
- data/lib/stylesheets/params/symbol.font.family.xml +0 -45
- data/lib/stylesheets/params/table.borders.with.css.xml +0 -28
- data/lib/stylesheets/params/table.cell.border.color.xml +0 -39
- data/lib/stylesheets/params/table.cell.border.style.xml +0 -42
- data/lib/stylesheets/params/table.cell.border.thickness.xml +0 -35
- data/lib/stylesheets/params/table.cell.padding.xml +0 -32
- data/lib/stylesheets/params/table.entry.padding.xml +0 -27
- data/lib/stylesheets/params/table.footnote.number.format.xml +0 -33
- data/lib/stylesheets/params/table.footnote.number.symbols.xml +0 -39
- data/lib/stylesheets/params/table.footnote.properties.xml +0 -39
- data/lib/stylesheets/params/table.frame.border.color.xml +0 -28
- data/lib/stylesheets/params/table.frame.border.style.xml +0 -37
- data/lib/stylesheets/params/table.frame.border.thickness.xml +0 -27
- data/lib/stylesheets/params/table.properties.xml +0 -34
- data/lib/stylesheets/params/table.spacer.image.xml +0 -26
- data/lib/stylesheets/params/table.table.properties.xml +0 -36
- data/lib/stylesheets/params/tablecolumns.extension.xml +0 -30
- data/lib/stylesheets/params/target.database.document.xml +0 -37
- data/lib/stylesheets/params/targets.filename.xml +0 -32
- data/lib/stylesheets/params/template.xml +0 -27
- data/lib/stylesheets/params/tex.math.delims.xml +0 -47
- data/lib/stylesheets/params/tex.math.file.xml +0 -42
- data/lib/stylesheets/params/tex.math.in.alt.xml +0 -76
- data/lib/stylesheets/params/text.home.xml +0 -27
- data/lib/stylesheets/params/text.next.xml +0 -27
- data/lib/stylesheets/params/text.prev.xml +0 -27
- data/lib/stylesheets/params/text.toc.xml +0 -27
- data/lib/stylesheets/params/text.up.xml +0 -27
- data/lib/stylesheets/params/textbgcolor.xml +0 -26
- data/lib/stylesheets/params/textdata.default.encoding.xml +0 -32
- data/lib/stylesheets/params/textinsert.extension.xml +0 -62
- data/lib/stylesheets/params/title.font.family.xml +0 -33
- data/lib/stylesheets/params/title.margin.left.xml +0 -65
- data/lib/stylesheets/params/titlefoil.html.xml +0 -27
- data/lib/stylesheets/params/toc.bg.color.xml +0 -27
- data/lib/stylesheets/params/toc.blank.graphic.xml +0 -28
- data/lib/stylesheets/params/toc.blank.image.xml +0 -27
- data/lib/stylesheets/params/toc.blank.text.xml +0 -27
- data/lib/stylesheets/params/toc.hide.show.xml +0 -33
- data/lib/stylesheets/params/toc.html.xml +0 -27
- data/lib/stylesheets/params/toc.image.xml +0 -27
- data/lib/stylesheets/params/toc.indent.width.xml +0 -34
- data/lib/stylesheets/params/toc.line.properties.xml +0 -44
- data/lib/stylesheets/params/toc.list.type.xml +0 -30
- data/lib/stylesheets/params/toc.margin.properties.xml +0 -33
- data/lib/stylesheets/params/toc.max.depth.xml +0 -25
- data/lib/stylesheets/params/toc.pointer.graphic.xml +0 -28
- data/lib/stylesheets/params/toc.pointer.image.xml +0 -27
- data/lib/stylesheets/params/toc.pointer.text.xml +0 -27
- data/lib/stylesheets/params/toc.row.height.xml +0 -33
- data/lib/stylesheets/params/toc.section.depth.xml +0 -28
- data/lib/stylesheets/params/toc.spacer.graphic.xml +0 -28
- data/lib/stylesheets/params/toc.spacer.image.xml +0 -27
- data/lib/stylesheets/params/toc.spacer.text.xml +0 -27
- data/lib/stylesheets/params/toc.width.xml +0 -28
- data/lib/stylesheets/params/ua.js.xml +0 -28
- data/lib/stylesheets/params/ulink.footnotes.xml +0 -34
- data/lib/stylesheets/params/ulink.hyphenate.chars.xml +0 -37
- data/lib/stylesheets/params/ulink.hyphenate.xml +0 -35
- data/lib/stylesheets/params/ulink.show.xml +0 -37
- data/lib/stylesheets/params/ulink.target.xml +0 -29
- data/lib/stylesheets/params/up.image.xml +0 -27
- data/lib/stylesheets/params/use.embed.for.svg.xml +0 -33
- data/lib/stylesheets/params/use.extensions.xml +0 -31
- data/lib/stylesheets/params/use.id.as.filename.xml +0 -30
- data/lib/stylesheets/params/use.id.function.xml +0 -32
- data/lib/stylesheets/params/use.local.olink.style.xml +0 -28
- data/lib/stylesheets/params/use.role.as.xrefstyle.xml +0 -93
- data/lib/stylesheets/params/use.role.for.mediaobject.xml +0 -56
- data/lib/stylesheets/params/use.svg.xml +0 -30
- data/lib/stylesheets/params/variablelist.as.blocks.xml +0 -62
- data/lib/stylesheets/params/variablelist.as.table.xml +0 -54
- data/lib/stylesheets/params/variablelist.max.termlength.xml +0 -46
- data/lib/stylesheets/params/variablelist.term.break.after.xml +0 -39
- data/lib/stylesheets/params/variablelist.term.properties.xml +0 -29
- data/lib/stylesheets/params/variablelist.term.separator.xml +0 -40
- data/lib/stylesheets/params/verbatim.properties.xml +0 -38
- data/lib/stylesheets/params/wordml.template.xml +0 -29
- data/lib/stylesheets/params/writing.mode.xml +0 -83
- data/lib/stylesheets/params/xbCollapsibleLists.js.xml +0 -28
- data/lib/stylesheets/params/xbDOM.js.xml +0 -28
- data/lib/stylesheets/params/xbLibrary.js.xml +0 -28
- data/lib/stylesheets/params/xbStyle.js.xml +0 -28
- data/lib/stylesheets/params/xep.extensions.xml +0 -31
- data/lib/stylesheets/params/xep.index.item.properties.xml +0 -36
- data/lib/stylesheets/params/xref.label-page.separator.xml +0 -38
- data/lib/stylesheets/params/xref.label-title.separator.xml +0 -36
- data/lib/stylesheets/params/xref.properties.xml +0 -29
- data/lib/stylesheets/params/xref.title-page.separator.xml +0 -36
- data/lib/stylesheets/params/xref.with.number.and.title.xml +0 -30
- data/lib/stylesheets/profiling/profile-mode.xsl +0 -239
- data/lib/stylesheets/profiling/profile.xsl +0 -58
- data/lib/stylesheets/profiling/strip-attributes.xsl +0 -27
- data/lib/stylesheets/profiling/xsl2profile.xsl +0 -159
- data/lib/stylesheets/roundtrip/blocks-spec.xml +0 -11
- data/lib/stylesheets/roundtrip/blocks2dbk.dtd +0 -76
- data/lib/stylesheets/roundtrip/blocks2dbk.xsl +0 -1734
- data/lib/stylesheets/roundtrip/dbk2ooo.xsl +0 -178
- data/lib/stylesheets/roundtrip/dbk2pages.xsl +0 -442
- data/lib/stylesheets/roundtrip/dbk2wordml.xsl +0 -402
- data/lib/stylesheets/roundtrip/dbk2wp.xsl +0 -1376
- data/lib/stylesheets/roundtrip/normalise-common.xsl +0 -39
- data/lib/stylesheets/roundtrip/normalise2sections.xsl +0 -1270
- data/lib/stylesheets/roundtrip/pages2normalise.xsl +0 -352
- data/lib/stylesheets/roundtrip/param.xml +0 -105
- data/lib/stylesheets/roundtrip/param.xsl +0 -20
- data/lib/stylesheets/roundtrip/sections-spec.xml +0 -38
- data/lib/stylesheets/roundtrip/sections2blocks.xsl +0 -263
- data/lib/stylesheets/roundtrip/specifications.xml +0 -1420
- data/lib/stylesheets/roundtrip/template-pages.xml +0 -2
- data/lib/stylesheets/roundtrip/template.dot +0 -0
- data/lib/stylesheets/roundtrip/template.xml +0 -3
- data/lib/stylesheets/roundtrip/wordml2normalise.xsl +0 -446
- data/lib/stylesheets/slides/browser/CTOCWidget.js +0 -169
- data/lib/stylesheets/slides/browser/overlay.js +0 -142
- data/lib/stylesheets/slides/browser/slides-default.css +0 -9
- data/lib/stylesheets/slides/browser/slides-frames.css +0 -73
- data/lib/stylesheets/slides/browser/slides-plain.css +0 -1
- data/lib/stylesheets/slides/browser/slides-table.css +0 -41
- data/lib/stylesheets/slides/browser/slides-w3c.css +0 -1
- data/lib/stylesheets/slides/browser/slides.css +0 -119
- data/lib/stylesheets/slides/browser/slides.js +0 -120
- data/lib/stylesheets/slides/browser/ua.js +0 -135
- data/lib/stylesheets/slides/browser/xbCollapsibleLists.js +0 -537
- data/lib/stylesheets/slides/browser/xbDOM.js +0 -374
- data/lib/stylesheets/slides/browser/xbDebug.js +0 -311
- data/lib/stylesheets/slides/browser/xbLibrary.js +0 -80
- data/lib/stylesheets/slides/browser/xbStyle-css.js +0 -791
- data/lib/stylesheets/slides/browser/xbStyle-nn4.js +0 -485
- data/lib/stylesheets/slides/browser/xbStyle-not-supported.js +0 -77
- data/lib/stylesheets/slides/browser/xbStyle.js +0 -295
- data/lib/stylesheets/slides/fo/param.xml +0 -356
- data/lib/stylesheets/slides/fo/param.xsl +0 -74
- data/lib/stylesheets/slides/fo/plain-titlepage.xml +0 -79
- data/lib/stylesheets/slides/fo/plain-titlepage.xsl +0 -187
- data/lib/stylesheets/slides/fo/plain.xsl +0 -528
- data/lib/stylesheets/slides/graphics/active/arr-next.png +0 -0
- data/lib/stylesheets/slides/graphics/active/arr-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/active/but-fforward.png +0 -0
- data/lib/stylesheets/slides/graphics/active/but-info.png +0 -0
- data/lib/stylesheets/slides/graphics/active/but-next.png +0 -0
- data/lib/stylesheets/slides/graphics/active/but-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/active/but-rewind.png +0 -0
- data/lib/stylesheets/slides/graphics/active/nav-home.png +0 -0
- data/lib/stylesheets/slides/graphics/active/nav-next.png +0 -0
- data/lib/stylesheets/slides/graphics/active/nav-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/active/nav-toc.png +0 -0
- data/lib/stylesheets/slides/graphics/active/nav-up.png +0 -0
- data/lib/stylesheets/slides/graphics/active/w3c-next.png +0 -0
- data/lib/stylesheets/slides/graphics/active/w3c-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/active/w3c-toc.png +0 -0
- data/lib/stylesheets/slides/graphics/arrow.gif +0 -0
- data/lib/stylesheets/slides/graphics/blank.gif +0 -0
- data/lib/stylesheets/slides/graphics/blank.png +0 -0
- data/lib/stylesheets/slides/graphics/hidetoc.gif +0 -0
- data/lib/stylesheets/slides/graphics/inactive/but-fforward.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/but-info.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/but-next.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/but-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/but-rewind.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/nav-home.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/nav-next.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/nav-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/nav-toc.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/nav-up.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/w3c-next.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/w3c-prev.png +0 -0
- data/lib/stylesheets/slides/graphics/inactive/w3c-toc.png +0 -0
- data/lib/stylesheets/slides/graphics/plus.gif +0 -0
- data/lib/stylesheets/slides/graphics/pointer.png +0 -0
- data/lib/stylesheets/slides/graphics/showtoc.gif +0 -0
- data/lib/stylesheets/slides/graphics/toc/bullet.png +0 -0
- data/lib/stylesheets/slides/graphics/toc/closed.png +0 -0
- data/lib/stylesheets/slides/graphics/toc/open.png +0 -0
- data/lib/stylesheets/slides/html/css.xsl +0 -46
- data/lib/stylesheets/slides/html/default.xsl +0 -261
- data/lib/stylesheets/slides/html/flat.xsl +0 -70
- data/lib/stylesheets/slides/html/frames.xsl +0 -2016
- data/lib/stylesheets/slides/html/graphics.xsl +0 -151
- data/lib/stylesheets/slides/html/jscript.xsl +0 -127
- data/lib/stylesheets/slides/html/param.xml +0 -1376
- data/lib/stylesheets/slides/html/param.xsl +0 -68
- data/lib/stylesheets/slides/html/plain.xsl +0 -472
- data/lib/stylesheets/slides/html/slides-common.xsl +0 -1541
- data/lib/stylesheets/slides/html/tables.xsl +0 -336
- data/lib/stylesheets/slides/html/vslides.xsl +0 -667
- data/lib/stylesheets/slides/html/w3c.xsl +0 -376
- data/lib/stylesheets/slides/htmlhelp/htmlhelp.xsl +0 -89
- data/lib/stylesheets/slides/keynote/default.xsl +0 -600
- data/lib/stylesheets/slides/keynote/xsltsl/cmp.xsl +0 -348
- data/lib/stylesheets/slides/keynote/xsltsl/date-time.xsl +0 -1524
- data/lib/stylesheets/slides/keynote/xsltsl/example.xsl +0 -90
- data/lib/stylesheets/slides/keynote/xsltsl/markup.xsl +0 -789
- data/lib/stylesheets/slides/keynote/xsltsl/math.xsl +0 -704
- data/lib/stylesheets/slides/keynote/xsltsl/node.xsl +0 -229
- data/lib/stylesheets/slides/keynote/xsltsl/stdlib.xsl +0 -340
- data/lib/stylesheets/slides/keynote/xsltsl/string.xsl +0 -1233
- data/lib/stylesheets/slides/keynote/xsltsl/svg.xsl +0 -177
- data/lib/stylesheets/slides/keynote/xsltsl/uri.xsl +0 -580
- data/lib/stylesheets/slides/svg/default.xsl +0 -686
- data/lib/stylesheets/slides/xhtml/css.xsl +0 -47
- data/lib/stylesheets/slides/xhtml/default.xsl +0 -246
- data/lib/stylesheets/slides/xhtml/flat.xsl +0 -71
- data/lib/stylesheets/slides/xhtml/frames.xsl +0 -1982
- data/lib/stylesheets/slides/xhtml/graphics.xsl +0 -152
- data/lib/stylesheets/slides/xhtml/jscript.xsl +0 -128
- data/lib/stylesheets/slides/xhtml/param.xsl +0 -70
- data/lib/stylesheets/slides/xhtml/plain.xsl +0 -470
- data/lib/stylesheets/slides/xhtml/slides-common.xsl +0 -1534
- data/lib/stylesheets/slides/xhtml/tables.xsl +0 -334
- data/lib/stylesheets/slides/xhtml/vslides.xsl +0 -652
- data/lib/stylesheets/slides/xhtml/w3c.xsl +0 -358
- data/lib/stylesheets/template/titlepage.xml +0 -478
- data/lib/stylesheets/template/titlepage.xsl +0 -1355
- data/lib/stylesheets/tests/refentry.007.ns.xml +0 -325
- data/lib/stylesheets/tests/refentry.007.xml +0 -340
- data/lib/stylesheets/tools/bin/docbook-xsl-update +0 -53
- data/lib/stylesheets/tools/make/Makefile.DocBook +0 -698
- data/lib/stylesheets/tools/make/Makefile.combine +0 -182
- data/lib/stylesheets/tools/make/Makefile.docParam +0 -59
- data/lib/stylesheets/webhelp/LICENSE +0 -1
- data/lib/stylesheets/webhelp/build.properties +0 -43
- data/lib/stylesheets/webhelp/build.xml +0 -112
- data/lib/stylesheets/webhelp/docs/common/css/positioning.css +0 -109
- data/lib/stylesheets/webhelp/docs/common/images/header-bg.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/images/highlight-blue.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/images/highlight-yellow.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/images/loading.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/images/logo.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/images/showHideTreeIcons.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/jquery-1.4.2.min.js +0 -154
- data/lib/stylesheets/webhelp/docs/common/jquery/jquery-ui-1.8.2.custom.min.js +0 -321
- data/lib/stylesheets/webhelp/docs/common/jquery/jquery.cookie.js +0 -93
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-anim_basic_16x16.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css +0 -398
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/file.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder-closed.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder-closed2.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder2.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/minus.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/plus.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-black-line.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-black.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-default-line.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-default.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-famfamfam-line.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-famfamfam.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-gray-line.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-gray.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-red-line.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-red.gif +0 -0
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.async.js +0 -72
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.css +0 -85
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.js +0 -255
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.min.js +0 -16
- data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.pack.js +0 -16
- data/lib/stylesheets/webhelp/docs/common/main.js +0 -161
- data/lib/stylesheets/webhelp/docs/content/ch01.html +0 -61
- data/lib/stylesheets/webhelp/docs/content/ch02.html +0 -32
- data/lib/stylesheets/webhelp/docs/content/ch02s01.html +0 -117
- data/lib/stylesheets/webhelp/docs/content/ch02s02.html +0 -102
- data/lib/stylesheets/webhelp/docs/content/ch02s03.html +0 -36
- data/lib/stylesheets/webhelp/docs/content/ch02s04.html +0 -42
- data/lib/stylesheets/webhelp/docs/content/ch03.html +0 -37
- data/lib/stylesheets/webhelp/docs/content/ch03s01.html +0 -62
- data/lib/stylesheets/webhelp/docs/content/ch03s02.html +0 -124
- data/lib/stylesheets/webhelp/docs/content/index.html +0 -71
- data/lib/stylesheets/webhelp/docs/content/search/htmlFileInfoList.js +0 -10
- data/lib/stylesheets/webhelp/docs/content/search/htmlFileList.js +0 -11
- data/lib/stylesheets/webhelp/docs/content/search/index-1.js +0 -224
- data/lib/stylesheets/webhelp/docs/content/search/index-2.js +0 -223
- data/lib/stylesheets/webhelp/docs/content/search/index-3.js +0 -221
- data/lib/stylesheets/webhelp/docs/content/search/nwSearchFnt.js +0 -513
- data/lib/stylesheets/webhelp/docs/content/search/stemmers/en_stemmer.js +0 -187
- data/lib/stylesheets/webhelp/docs/favicon.ico +0 -0
- data/lib/stylesheets/webhelp/docs/index.html +0 -13
- data/lib/stylesheets/webhelp/docsrc/readme.xml +0 -891
- data/lib/stylesheets/webhelp/template/common/css/positioning.css +0 -109
- data/lib/stylesheets/webhelp/template/common/images/header-bg.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/images/highlight-blue.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/images/highlight-yellow.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/images/loading.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/images/logo.png +0 -0
- data/lib/stylesheets/webhelp/template/common/images/showHideTreeIcons.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/jquery-1.4.2.min.js +0 -154
- data/lib/stylesheets/webhelp/template/common/jquery/jquery-ui-1.8.2.custom.min.js +0 -321
- data/lib/stylesheets/webhelp/template/common/jquery/jquery.cookie.js +0 -93
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-anim_basic_16x16.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css +0 -398
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/file.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder-closed.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder-closed2.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder2.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/minus.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/plus.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-black-line.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-black.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-default-line.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-default.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-famfamfam-line.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-famfamfam.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-gray-line.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-gray.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-red-line.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-red.gif +0 -0
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.async.js +0 -72
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.css +0 -85
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.js +0 -255
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.min.js +0 -16
- data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.pack.js +0 -16
- data/lib/stylesheets/webhelp/template/common/main.js +0 -161
- data/lib/stylesheets/webhelp/template/content/search/default.props +0 -1
- data/lib/stylesheets/webhelp/template/content/search/en-us.props +0 -45
- data/lib/stylesheets/webhelp/template/content/search/es-es.props +0 -179
- data/lib/stylesheets/webhelp/template/content/search/ja-jp.props +0 -1
- data/lib/stylesheets/webhelp/template/content/search/nwSearchFnt.js +0 -513
- data/lib/stylesheets/webhelp/template/content/search/punctuation.props +0 -31
- data/lib/stylesheets/webhelp/template/content/search/stemmers/de_stemmer.js +0 -247
- data/lib/stylesheets/webhelp/template/content/search/stemmers/en_stemmer.js +0 -187
- data/lib/stylesheets/webhelp/template/content/search/stemmers/fr_stemmer.js +0 -299
- data/lib/stylesheets/webhelp/template/favicon.ico +0 -0
- data/lib/stylesheets/webhelp/xsl/webhelp.xsl +0 -772
- data/lib/stylesheets/website/autolayout.xsl +0 -258
- data/lib/stylesheets/website/chunk-common.xsl +0 -227
- data/lib/stylesheets/website/chunk-tabular.xsl +0 -12
- data/lib/stylesheets/website/chunk-website.xsl +0 -12
- data/lib/stylesheets/website/head.xsl +0 -316
- data/lib/stylesheets/website/makefile-dep.xsl +0 -143
- data/lib/stylesheets/website/olink.xsl +0 -297
- data/lib/stylesheets/website/param.xml +0 -788
- data/lib/stylesheets/website/param.xsl +0 -53
- data/lib/stylesheets/website/rss.xsl +0 -143
- data/lib/stylesheets/website/tabular.xsl +0 -213
- data/lib/stylesheets/website/toc-tabular.xsl +0 -480
- data/lib/stylesheets/website/toc.xsl +0 -286
- data/lib/stylesheets/website/website-common.xsl +0 -821
- data/lib/stylesheets/website/website-targets.xsl +0 -27
- data/lib/stylesheets/website/website.xsl +0 -132
- data/lib/stylesheets/website/xbel.xsl +0 -114
- data/lib/stylesheets/xhtml-1_1/admon.xsl +0 -135
- data/lib/stylesheets/xhtml-1_1/annotations.xsl +0 -160
- data/lib/stylesheets/xhtml-1_1/autoidx-kimber.xsl +0 -140
- data/lib/stylesheets/xhtml-1_1/autoidx-kosek.xsl +0 -110
- data/lib/stylesheets/xhtml-1_1/autoidx-ng.xsl +0 -23
- data/lib/stylesheets/xhtml-1_1/autoidx.xsl +0 -682
- data/lib/stylesheets/xhtml-1_1/autotoc.xsl +0 -665
- data/lib/stylesheets/xhtml-1_1/biblio-iso690.xsl +0 -1302
- data/lib/stylesheets/xhtml-1_1/biblio.xsl +0 -1242
- data/lib/stylesheets/xhtml-1_1/block.xsl +0 -537
- data/lib/stylesheets/xhtml-1_1/callout.xsl +0 -189
- data/lib/stylesheets/xhtml-1_1/changebars.xsl +0 -80
- data/lib/stylesheets/xhtml-1_1/chunk-changebars.xsl +0 -97
- data/lib/stylesheets/xhtml-1_1/chunk-code.xsl +0 -644
- data/lib/stylesheets/xhtml-1_1/chunk-common.xsl +0 -1562
- data/lib/stylesheets/xhtml-1_1/chunk.xsl +0 -53
- data/lib/stylesheets/xhtml-1_1/chunker.xsl +0 -303
- data/lib/stylesheets/xhtml-1_1/chunkfast.xsl +0 -70
- data/lib/stylesheets/xhtml-1_1/chunktoc.xsl +0 -527
- data/lib/stylesheets/xhtml-1_1/component.xsl +0 -397
- data/lib/stylesheets/xhtml-1_1/division.xsl +0 -219
- data/lib/stylesheets/xhtml-1_1/docbook.css.xml +0 -109
- data/lib/stylesheets/xhtml-1_1/docbook.xsl +0 -435
- data/lib/stylesheets/xhtml-1_1/ebnf.xsl +0 -329
- data/lib/stylesheets/xhtml-1_1/footnote.xsl +0 -306
- data/lib/stylesheets/xhtml-1_1/formal.xsl +0 -413
- data/lib/stylesheets/xhtml-1_1/glossary.xsl +0 -565
- data/lib/stylesheets/xhtml-1_1/graphics.xsl +0 -1437
- data/lib/stylesheets/xhtml-1_1/highlight.xsl +0 -89
- data/lib/stylesheets/xhtml-1_1/html-rtf.xsl +0 -321
- data/lib/stylesheets/xhtml-1_1/html.xsl +0 -600
- data/lib/stylesheets/xhtml-1_1/htmltbl.xsl +0 -104
- data/lib/stylesheets/xhtml-1_1/index.xsl +0 -266
- data/lib/stylesheets/xhtml-1_1/info.xsl +0 -46
- data/lib/stylesheets/xhtml-1_1/inline.xsl +0 -1452
- data/lib/stylesheets/xhtml-1_1/keywords.xsl +0 -38
- data/lib/stylesheets/xhtml-1_1/lists.xsl +0 -1090
- data/lib/stylesheets/xhtml-1_1/maketoc.xsl +0 -92
- data/lib/stylesheets/xhtml-1_1/manifest.xsl +0 -23
- data/lib/stylesheets/xhtml-1_1/math.xsl +0 -285
- data/lib/stylesheets/xhtml-1_1/oldchunker.xsl +0 -177
- data/lib/stylesheets/xhtml-1_1/onechunk.xsl +0 -37
- data/lib/stylesheets/xhtml-1_1/param.xsl +0 -438
- data/lib/stylesheets/xhtml-1_1/pi.xsl +0 -1204
- data/lib/stylesheets/xhtml-1_1/profile-chunk-code.xsl +0 -616
- data/lib/stylesheets/xhtml-1_1/profile-chunk.xsl +0 -53
- data/lib/stylesheets/xhtml-1_1/profile-docbook.xsl +0 -407
- data/lib/stylesheets/xhtml-1_1/profile-onechunk.xsl +0 -37
- data/lib/stylesheets/xhtml-1_1/qandaset.xsl +0 -421
- data/lib/stylesheets/xhtml-1_1/refentry.xsl +0 -301
- data/lib/stylesheets/xhtml-1_1/sections.xsl +0 -543
- data/lib/stylesheets/xhtml-1_1/synop.xsl +0 -1515
- data/lib/stylesheets/xhtml-1_1/table.xsl +0 -1169
- data/lib/stylesheets/xhtml-1_1/task.xsl +0 -75
- data/lib/stylesheets/xhtml-1_1/titlepage.templates.xsl +0 -3818
- data/lib/stylesheets/xhtml-1_1/titlepage.xsl +0 -1032
- data/lib/stylesheets/xhtml-1_1/toc.xsl +0 -332
- data/lib/stylesheets/xhtml-1_1/verbatim.xsl +0 -389
- data/lib/stylesheets/xhtml-1_1/xref.xsl +0 -1317
- data/lib/stylesheets/xhtml/admon.xsl +0 -137
- data/lib/stylesheets/xhtml/annotations.xsl +0 -160
- data/lib/stylesheets/xhtml/autoidx-kimber.xsl +0 -140
- data/lib/stylesheets/xhtml/autoidx-kosek.xsl +0 -110
- data/lib/stylesheets/xhtml/autoidx-ng.xsl +0 -23
- data/lib/stylesheets/xhtml/autoidx.xsl +0 -682
- data/lib/stylesheets/xhtml/autotoc.xsl +0 -665
- data/lib/stylesheets/xhtml/biblio-iso690.xsl +0 -1302
- data/lib/stylesheets/xhtml/biblio.xsl +0 -1242
- data/lib/stylesheets/xhtml/block.xsl +0 -537
- data/lib/stylesheets/xhtml/callout.xsl +0 -189
- data/lib/stylesheets/xhtml/changebars.xsl +0 -80
- data/lib/stylesheets/xhtml/chunk-changebars.xsl +0 -97
- data/lib/stylesheets/xhtml/chunk-code.xsl +0 -644
- data/lib/stylesheets/xhtml/chunk-common.xsl +0 -1562
- data/lib/stylesheets/xhtml/chunk.xsl +0 -53
- data/lib/stylesheets/xhtml/chunker.xsl +0 -303
- data/lib/stylesheets/xhtml/chunkfast.xsl +0 -70
- data/lib/stylesheets/xhtml/chunktoc.xsl +0 -527
- data/lib/stylesheets/xhtml/component.xsl +0 -397
- data/lib/stylesheets/xhtml/division.xsl +0 -219
- data/lib/stylesheets/xhtml/docbook.css.xml +0 -109
- data/lib/stylesheets/xhtml/docbook.xsl +0 -435
- data/lib/stylesheets/xhtml/ebnf.xsl +0 -329
- data/lib/stylesheets/xhtml/footnote.xsl +0 -306
- data/lib/stylesheets/xhtml/formal.xsl +0 -413
- data/lib/stylesheets/xhtml/glossary.xsl +0 -565
- data/lib/stylesheets/xhtml/graphics.xsl +0 -1437
- data/lib/stylesheets/xhtml/highlight.xsl +0 -89
- data/lib/stylesheets/xhtml/html-rtf.xsl +0 -321
- data/lib/stylesheets/xhtml/html.xsl +0 -600
- data/lib/stylesheets/xhtml/htmltbl.xsl +0 -104
- data/lib/stylesheets/xhtml/index.xsl +0 -266
- data/lib/stylesheets/xhtml/info.xsl +0 -46
- data/lib/stylesheets/xhtml/inline.xsl +0 -1452
- data/lib/stylesheets/xhtml/keywords.xsl +0 -38
- data/lib/stylesheets/xhtml/lists.xsl +0 -1123
- data/lib/stylesheets/xhtml/maketoc.xsl +0 -92
- data/lib/stylesheets/xhtml/manifest.xsl +0 -23
- data/lib/stylesheets/xhtml/math.xsl +0 -285
- data/lib/stylesheets/xhtml/oldchunker.xsl +0 -177
- data/lib/stylesheets/xhtml/onechunk.xsl +0 -37
- data/lib/stylesheets/xhtml/param.xsl +0 -438
- data/lib/stylesheets/xhtml/pi.xsl +0 -1204
- data/lib/stylesheets/xhtml/profile-chunk-code.xsl +0 -616
- data/lib/stylesheets/xhtml/profile-chunk.xsl +0 -53
- data/lib/stylesheets/xhtml/profile-docbook.xsl +0 -407
- data/lib/stylesheets/xhtml/profile-onechunk.xsl +0 -37
- data/lib/stylesheets/xhtml/qandaset.xsl +0 -421
- data/lib/stylesheets/xhtml/refentry.xsl +0 -301
- data/lib/stylesheets/xhtml/sections.xsl +0 -543
- data/lib/stylesheets/xhtml/synop.xsl +0 -1515
- data/lib/stylesheets/xhtml/table.xsl +0 -1169
- data/lib/stylesheets/xhtml/task.xsl +0 -75
- data/lib/stylesheets/xhtml/titlepage.templates.xsl +0 -3818
- data/lib/stylesheets/xhtml/titlepage.xsl +0 -1032
- data/lib/stylesheets/xhtml/toc.xsl +0 -332
- data/lib/stylesheets/xhtml/verbatim.xsl +0 -389
- data/lib/stylesheets/xhtml/xref.xsl +0 -1317
data/lib/stylesheets/epub/README
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
----------------------------------------------------------------------
|
2
|
-
README file for the DocBook XSL Stylesheets
|
3
|
-
----------------------------------------------------------------------
|
4
|
-
|
5
|
-
These are XSL stylesheets for transforming DocBook XML document
|
6
|
-
instances into .epub format.
|
7
|
-
|
8
|
-
.epub is an open standard of the The International Digital Publishing Forum (IDPF),
|
9
|
-
a the trade and standards association for the digital publishing industry.
|
10
|
-
|
11
|
-
An alpha-quality reference implementation (dbtoepub) for a DocBook to .epub
|
12
|
-
converter (written in Ruby) is available under bin/.
|
13
|
-
|
14
|
-
From http://idpf.org
|
15
|
-
What is EPUB, .epub, OPS/OCF & OEB?
|
16
|
-
|
17
|
-
".epub" is the file extension of an XML format for reflowable digital
|
18
|
-
books and publications. ".epub" is composed of three open standards,
|
19
|
-
the Open Publication Structure (OPS), Open Packaging Format (OPF) and
|
20
|
-
Open Container Format (OCF), produced by the IDPF. "EPUB" allows
|
21
|
-
publishers to produce and send a single digital publication file
|
22
|
-
through distribution and offers consumers interoperability between
|
23
|
-
software/hardware for unencrypted reflowable digital books and other
|
24
|
-
publications. The Open eBook Publication Structure or "OEB",
|
25
|
-
originally produced in 1999, is the precursor to OPS.
|
26
|
-
|
27
|
-
----------------------------------------------------------------------
|
28
|
-
.epub Constraints
|
29
|
-
----------------------------------------------------------------------
|
30
|
-
|
31
|
-
.epub does not support all of the image formats that DocBook supports.
|
32
|
-
When an image is available in an accepted format, it will be used. The
|
33
|
-
accepted @formats are: 'GIF','GIF87a','GIF89a','JPEG','JPG','PNG','SVG'
|
34
|
-
A mime-type for the image will be guessed from the file extension,
|
35
|
-
which may not work if your file extensions are non-standard.
|
36
|
-
|
37
|
-
Non-supported elements:
|
38
|
-
* <mediaobjectco>
|
39
|
-
* <inlinegraphic>, <graphic>, <textdata>, <imagedata> with text/XML
|
40
|
-
@filerefs
|
41
|
-
* <olink>
|
42
|
-
* <cmdsynopsis> in lists (generic XHTML rendering inability)
|
43
|
-
* <footnote><para><programlisting> (just make your programlistings
|
44
|
-
siblings, rather than descendents of paras)
|
45
|
-
|
46
|
-
----------------------------------------------------------------------
|
47
|
-
dbtoepub Reference Implementation
|
48
|
-
----------------------------------------------------------------------
|
49
|
-
|
50
|
-
An alpha-quality DocBook to .epub conversion program, dbtoepub, is provided
|
51
|
-
in bin/dbtoepub.
|
52
|
-
|
53
|
-
This tool requires:
|
54
|
-
- 'xsltproc' in your PATH
|
55
|
-
- 'zip' in your PATH
|
56
|
-
- Ruby 1.8.4+
|
57
|
-
|
58
|
-
Windows compatibility has not been extensively tested; bug reports encouraged.
|
59
|
-
[See http://www.zlatkovic.com/libxml.en.html and http://unxutils.sourceforge.net/]
|
60
|
-
|
61
|
-
$ dbtoepub --help
|
62
|
-
Usage: dbtoepub [OPTIONS] [DocBook Files]
|
63
|
-
|
64
|
-
dbtoepub converts DocBook <book> and <article>s into to .epub files.
|
65
|
-
|
66
|
-
.epub is defined by the IDPF at www.idpf.org and is made up of 3 standards:
|
67
|
-
- Open Publication Structure (OPS)
|
68
|
-
- Open Packaging Format (OPF)
|
69
|
-
- Open Container Format (OCF)
|
70
|
-
|
71
|
-
Specific options:
|
72
|
-
-d, --debug Show debugging output.
|
73
|
-
-h, --help Display usage info
|
74
|
-
-v, --verbose Make output verbose
|
75
|
-
|
76
|
-
|
77
|
-
----------------------------------------------------------------------
|
78
|
-
Validation
|
79
|
-
----------------------------------------------------------------------
|
80
|
-
|
81
|
-
The epubcheck project provides limited validation for .epub documents.
|
82
|
-
See http://code.google.com/p/epubcheck/ for details.
|
83
|
-
|
84
|
-
----------------------------------------------------------------------
|
85
|
-
Copyright information
|
86
|
-
----------------------------------------------------------------------
|
87
|
-
See the accompanying file named COPYING.
|
88
|
-
|
@@ -1,76 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This program converts DocBook documents into .epub files.
|
3
|
-
#
|
4
|
-
# Usage: dbtoepub [OPTIONS] [DocBook Files]
|
5
|
-
#
|
6
|
-
# .epub is defined by the IDPF at www.idpf.org and is made up of 3 standards:
|
7
|
-
# - Open Publication Structure (OPS)
|
8
|
-
# - Open Packaging Format (OPF)
|
9
|
-
# - Open Container Format (OCF)
|
10
|
-
#
|
11
|
-
# Specific options:
|
12
|
-
# -c, --css [FILE] Use FILE for CSS on generated XHTML.
|
13
|
-
# -d, --debug Show debugging output.
|
14
|
-
# -f, --font [OTF FILE] Embed OTF FILE in .epub.
|
15
|
-
# -h, --help Display usage info.
|
16
|
-
# -s, --stylesheet [XSL FILE] Use XSL FILE as a customization
|
17
|
-
# layer (imports epub/docbook.xsl).
|
18
|
-
# -v, --verbose Make output verbose.
|
19
|
-
|
20
|
-
lib = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
|
21
|
-
$LOAD_PATH.unshift(lib) if File.exist?(lib)
|
22
|
-
|
23
|
-
require 'fileutils'
|
24
|
-
require 'optparse'
|
25
|
-
require 'tmpdir'
|
26
|
-
|
27
|
-
require 'docbook'
|
28
|
-
|
29
|
-
verbose = false
|
30
|
-
debug = false
|
31
|
-
css_file = nil
|
32
|
-
otf_files = []
|
33
|
-
customization_layer = nil
|
34
|
-
output_file = nil
|
35
|
-
|
36
|
-
#$DEBUG=true
|
37
|
-
|
38
|
-
# Set up the OptionParser
|
39
|
-
opts = OptionParser.new
|
40
|
-
opts.banner = "Usage: #{File.basename($0)} [OPTIONS] [DocBook Files]
|
41
|
-
|
42
|
-
#{File.basename($0)} converts DocBook <book> and <article>s into to .epub files.
|
43
|
-
|
44
|
-
.epub is defined by the IDPF at www.idpf.org and is made up of 3 standards:
|
45
|
-
- Open Publication Structure (OPS)
|
46
|
-
- Open Packaging Format (OPF)
|
47
|
-
- Open Container Format (OCF)
|
48
|
-
|
49
|
-
Specific options:"
|
50
|
-
opts.on("-c", "--css [FILE]", "Use FILE for CSS on generated XHTML.") {|f| css_file = f}
|
51
|
-
opts.on("-d", "--debug", "Show debugging output.") {debug = true; verbose = true}
|
52
|
-
opts.on("-f", "--font [OTF FILE]", "Embed OTF FILE in .epub.") {|f| otf_files << f}
|
53
|
-
opts.on("-h", "--help", "Display usage info.") {puts opts.to_s; exit 0}
|
54
|
-
opts.on("-o", "--output [OUTPUT FILE]", "Output ePub file as OUTPUT FILE.") {|f| output_file = f}
|
55
|
-
opts.on("-s", "--stylesheet [XSL FILE]", "Use XSL FILE as a customization layer (imports epub/docbook.xsl).") {|f| customization_layer = f}
|
56
|
-
opts.on("-v", "--verbose", "Make output verbose.") {verbose = true}
|
57
|
-
|
58
|
-
db_files = opts.parse(ARGV)
|
59
|
-
if db_files.size == 0
|
60
|
-
puts opts.to_s
|
61
|
-
exit 0
|
62
|
-
end
|
63
|
-
|
64
|
-
db_files.each {|docbook_file|
|
65
|
-
dir = File.expand_path(File.join(Dir.tmpdir, ".epubtmp#{Time.now.to_f.to_s}"))
|
66
|
-
FileUtils.mkdir_p(dir)
|
67
|
-
e = DocBook::Epub.new(docbook_file, dir, css_file, customization_layer, otf_files)
|
68
|
-
|
69
|
-
if output_file
|
70
|
-
epub_file = output_file
|
71
|
-
else
|
72
|
-
epub_file = File.basename(docbook_file, ".xml") + ".epub"
|
73
|
-
end
|
74
|
-
puts "Rendering DocBook file #{docbook_file} to #{epub_file}" if verbose
|
75
|
-
e.render_to_file(epub_file)
|
76
|
-
}
|
@@ -1,227 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'rexml/parsers/pullparser'
|
3
|
-
|
4
|
-
module DocBook
|
5
|
-
|
6
|
-
class Epub
|
7
|
-
CHECKER = "epubcheck"
|
8
|
-
STYLESHEET = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', "docbook.xsl"))
|
9
|
-
CALLOUT_PATH = File.join('images', 'callouts')
|
10
|
-
CALLOUT_FULL_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', CALLOUT_PATH))
|
11
|
-
CALLOUT_LIMIT = 15
|
12
|
-
CALLOUT_EXT = ".png"
|
13
|
-
XSLT_PROCESSOR = "xsltproc"
|
14
|
-
OUTPUT_DIR = ".epubtmp#{Time.now.to_f.to_s}"
|
15
|
-
MIMETYPE = "application/epub+zip"
|
16
|
-
META_DIR = "META-INF"
|
17
|
-
OEBPS_DIR = "OEBPS"
|
18
|
-
ZIPPER = "zip"
|
19
|
-
|
20
|
-
attr_reader :output_dir
|
21
|
-
|
22
|
-
def initialize(docbook_file, output_dir=OUTPUT_DIR, css_file=nil, customization_layer=nil, embedded_fonts=[])
|
23
|
-
@docbook_file = docbook_file
|
24
|
-
@output_dir = output_dir
|
25
|
-
@meta_dir = File.join(@output_dir, META_DIR)
|
26
|
-
@oebps_dir = File.join(@output_dir, OEBPS_DIR)
|
27
|
-
@css_file = css_file ? File.expand_path(css_file) : css_file
|
28
|
-
@embedded_fonts = embedded_fonts
|
29
|
-
@to_delete = []
|
30
|
-
|
31
|
-
if customization_layer
|
32
|
-
@stylesheet = File.expand_path(customization_layer)
|
33
|
-
else
|
34
|
-
@stylesheet = STYLESHEET
|
35
|
-
end
|
36
|
-
|
37
|
-
unless File.exist?(@docbook_file)
|
38
|
-
raise ArgumentError.new("File #{@docbook_file} does not exist")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def render_to_file(output_file, verbose=false)
|
43
|
-
render_to_epub(output_file, verbose)
|
44
|
-
bundle_epub(output_file, verbose)
|
45
|
-
cleanup_files(@to_delete)
|
46
|
-
end
|
47
|
-
|
48
|
-
def self.invalid?(file)
|
49
|
-
# Obnoxiously, we can't just check for a non-zero output...
|
50
|
-
cmd = %Q(#{CHECKER} "#{file}")
|
51
|
-
output = `#{cmd} 2>&1`
|
52
|
-
|
53
|
-
if $?.to_i == 0
|
54
|
-
return false
|
55
|
-
else
|
56
|
-
STDERR.puts output if $DEBUG
|
57
|
-
return output
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
private
|
62
|
-
def render_to_epub(output_file, verbose)
|
63
|
-
@collapsed_docbook_file = collapse_docbook()
|
64
|
-
|
65
|
-
chunk_quietly = "--stringparam chunk.quietly " + (verbose ? '0' : '1')
|
66
|
-
callout_path = "--stringparam callout.graphics.path #{CALLOUT_PATH}/"
|
67
|
-
callout_limit = "--stringparam callout.graphics.number.limit #{CALLOUT_LIMIT}"
|
68
|
-
callout_ext = "--stringparam callout.graphics.extension #{CALLOUT_EXT}"
|
69
|
-
html_stylesheet = "--stringparam html.stylesheet #{File.basename(@css_file)}" if @css_file
|
70
|
-
base = "--stringparam base.dir #{OEBPS_DIR}/"
|
71
|
-
unless @embedded_fonts.empty?
|
72
|
-
embedded_fonts = @embedded_fonts.map {|f| File.basename(f)}.join(',')
|
73
|
-
font = "--stringparam epub.embedded.fonts \"#{embedded_fonts}\""
|
74
|
-
end
|
75
|
-
meta = "--stringparam epub.metainf.dir #{META_DIR}/"
|
76
|
-
oebps = "--stringparam epub.oebps.dir #{OEBPS_DIR}/"
|
77
|
-
options = [chunk_quietly,
|
78
|
-
callout_path,
|
79
|
-
callout_limit,
|
80
|
-
callout_ext,
|
81
|
-
base,
|
82
|
-
font,
|
83
|
-
meta,
|
84
|
-
oebps,
|
85
|
-
html_stylesheet,
|
86
|
-
].join(" ")
|
87
|
-
# Double-quote stylesheet & file to help Windows cmd.exe
|
88
|
-
db2epub_cmd = %Q(cd "#{@output_dir}" && #{XSLT_PROCESSOR} #{options} "#{@stylesheet}" "#{@collapsed_docbook_file}")
|
89
|
-
STDERR.puts db2epub_cmd if $DEBUG
|
90
|
-
success = system(db2epub_cmd)
|
91
|
-
raise "Could not render as .epub to #{output_file} (#{db2epub_cmd})" unless success
|
92
|
-
@to_delete << Dir["#{@meta_dir}/*"]
|
93
|
-
@to_delete << Dir["#{@oebps_dir}/*"]
|
94
|
-
end
|
95
|
-
|
96
|
-
def bundle_epub(output_file, verbose)
|
97
|
-
|
98
|
-
quiet = verbose ? "" : "-q"
|
99
|
-
mimetype_filename = write_mimetype()
|
100
|
-
meta = File.basename(@meta_dir)
|
101
|
-
oebps = File.basename(@oebps_dir)
|
102
|
-
images = copy_images()
|
103
|
-
csses = copy_csses()
|
104
|
-
fonts = copy_fonts()
|
105
|
-
callouts = copy_callouts()
|
106
|
-
# zip -X -r ../book.epub mimetype META-INF OEBPS
|
107
|
-
# Double-quote stylesheet & file to help Windows cmd.exe
|
108
|
-
zip_cmd = %Q(cd "#{@output_dir}" && #{ZIPPER} #{quiet} -X -r "#{File.expand_path(output_file)}" "#{mimetype_filename}" "#{meta}" "#{oebps}")
|
109
|
-
puts zip_cmd if $DEBUG
|
110
|
-
success = system(zip_cmd)
|
111
|
-
raise "Could not bundle into .epub file to #{output_file}" unless success
|
112
|
-
end
|
113
|
-
|
114
|
-
# Input must be collapsed because REXML couldn't find figures in files that
|
115
|
-
# were XIncluded or added by ENTITY
|
116
|
-
# http://sourceforge.net/tracker/?func=detail&aid=2750442&group_id=21935&atid=373747
|
117
|
-
def collapse_docbook
|
118
|
-
# Double-quote stylesheet & file to help Windows cmd.exe
|
119
|
-
collapsed_file = File.join(File.expand_path(File.dirname(@docbook_file)),
|
120
|
-
'.collapsed.' + File.basename(@docbook_file))
|
121
|
-
entity_collapse_command = %Q(xmllint --loaddtd --noent -o "#{collapsed_file}" "#{@docbook_file}")
|
122
|
-
entity_success = system(entity_collapse_command)
|
123
|
-
raise "Could not collapse named entites in #{@docbook_file}" unless entity_success
|
124
|
-
|
125
|
-
xinclude_collapse_command = %Q(xmllint --xinclude -o "#{collapsed_file}" "#{collapsed_file}")
|
126
|
-
xinclude_success = system(xinclude_collapse_command)
|
127
|
-
raise "Could not collapse XIncludes in #{@docbook_file}" unless xinclude_success
|
128
|
-
|
129
|
-
@to_delete << collapsed_file
|
130
|
-
return collapsed_file
|
131
|
-
end
|
132
|
-
|
133
|
-
def copy_callouts
|
134
|
-
new_callout_images = []
|
135
|
-
if has_callouts?
|
136
|
-
calloutglob = "#{CALLOUT_FULL_PATH}/*#{CALLOUT_EXT}"
|
137
|
-
Dir.glob(calloutglob).each {|img|
|
138
|
-
img_new_filename = File.join(@oebps_dir, CALLOUT_PATH, File.basename(img))
|
139
|
-
|
140
|
-
# TODO: What to rescue for these two?
|
141
|
-
FileUtils.mkdir_p(File.dirname(img_new_filename))
|
142
|
-
FileUtils.cp(img, img_new_filename)
|
143
|
-
@to_delete << img_new_filename
|
144
|
-
new_callout_images << img
|
145
|
-
}
|
146
|
-
end
|
147
|
-
return new_callout_images
|
148
|
-
end
|
149
|
-
|
150
|
-
def copy_fonts
|
151
|
-
new_fonts = []
|
152
|
-
@embedded_fonts.each {|font_file|
|
153
|
-
font_new_filename = File.join(@oebps_dir, File.basename(font_file))
|
154
|
-
FileUtils.cp(font_file, font_new_filename)
|
155
|
-
new_fonts << font_file
|
156
|
-
}
|
157
|
-
return new_fonts
|
158
|
-
end
|
159
|
-
|
160
|
-
def copy_csses
|
161
|
-
if @css_file
|
162
|
-
css_new_filename = File.join(@oebps_dir, File.basename(@css_file))
|
163
|
-
FileUtils.cp(@css_file, css_new_filename)
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
def copy_images
|
168
|
-
image_references = get_image_refs()
|
169
|
-
new_images = []
|
170
|
-
image_references.each {|img|
|
171
|
-
# TODO: It'd be cooler if we had a filetype lookup rather than just
|
172
|
-
# extension
|
173
|
-
if img =~ /\.(svg|png|gif|jpe?g|xml)/i
|
174
|
-
img_new_filename = File.join(@oebps_dir, img)
|
175
|
-
img_full = File.join(File.expand_path(File.dirname(@docbook_file)), img)
|
176
|
-
|
177
|
-
# TODO: What to rescue for these two?
|
178
|
-
FileUtils.mkdir_p(File.dirname(img_new_filename))
|
179
|
-
puts(img_full + ": " + img_new_filename) if $DEBUG
|
180
|
-
FileUtils.cp(img_full, img_new_filename)
|
181
|
-
@to_delete << img_new_filename
|
182
|
-
new_images << img_full
|
183
|
-
end
|
184
|
-
}
|
185
|
-
return new_images
|
186
|
-
end
|
187
|
-
|
188
|
-
def write_mimetype
|
189
|
-
mimetype_filename = File.join(@output_dir, "mimetype")
|
190
|
-
File.open(mimetype_filename, "w") {|f| f.print MIMETYPE}
|
191
|
-
@to_delete << mimetype_filename
|
192
|
-
return File.basename(mimetype_filename)
|
193
|
-
end
|
194
|
-
|
195
|
-
def cleanup_files(file_list)
|
196
|
-
file_list.flatten.each {|f|
|
197
|
-
# Yikes
|
198
|
-
FileUtils.rm_r(f, :force => true )
|
199
|
-
}
|
200
|
-
end
|
201
|
-
|
202
|
-
# Returns an Array of all of the (image) @filerefs in a document
|
203
|
-
def get_image_refs
|
204
|
-
parser = REXML::Parsers::PullParser.new(File.new(@collapsed_docbook_file))
|
205
|
-
image_refs = []
|
206
|
-
while parser.has_next?
|
207
|
-
el = parser.pull
|
208
|
-
if el.start_element? and (el[0] == "imagedata" or el[0] == "graphic")
|
209
|
-
image_refs << el[1]['fileref']
|
210
|
-
end
|
211
|
-
end
|
212
|
-
return image_refs.uniq
|
213
|
-
end
|
214
|
-
|
215
|
-
# Returns true if the document has code callouts
|
216
|
-
def has_callouts?
|
217
|
-
parser = REXML::Parsers::PullParser.new(File.new(@collapsed_docbook_file))
|
218
|
-
while parser.has_next?
|
219
|
-
el = parser.pull
|
220
|
-
if el.start_element? and (el[0] == "calloutlist" or el[0] == "co")
|
221
|
-
return true
|
222
|
-
end
|
223
|
-
end
|
224
|
-
return false
|
225
|
-
end
|
226
|
-
end
|
227
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<xsl:stylesheet exclude-result-prefixes="d"
|
3
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook"
|
4
|
-
version="2.0">
|
5
|
-
<xsl:output method="xml" omit-xml-declaration="no" doctype-public="-//OASIS//DTD DocBook XML V4.4//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" indent="no"/>
|
6
|
-
<xsl:template match="@*|*|comment()|processing-instruction()">
|
7
|
-
<xsl:copy>
|
8
|
-
<xsl:apply-templates select="@*|node()"/>
|
9
|
-
</xsl:copy>
|
10
|
-
</xsl:template>
|
11
|
-
<xsl:template match="text()">
|
12
|
-
<xsl:value-of select="replace(replace(., '[a-z]', 'x'), '[0-9]', 'd')"/>
|
13
|
-
</xsl:template>
|
14
|
-
</xsl:stylesheet>
|
@@ -1,1678 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<xsl:stylesheet
|
3
|
-
xmlns:db="http://docbook.org/ns/docbook"
|
4
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
5
|
-
xmlns:exsl="http://exslt.org/common"
|
6
|
-
xmlns:h="http://www.w3.org/1999/xhtml"
|
7
|
-
xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"
|
8
|
-
xmlns:ng="http://docbook.org/docbook-ng"
|
9
|
-
xmlns:opf="http://www.idpf.org/2007/opf"
|
10
|
-
xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory"
|
11
|
-
xmlns:str="http://exslt.org/strings"
|
12
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
13
|
-
xmlns:d="http://docbook.org/ns/docbook"
|
14
|
-
xmlns:xtext="xalan://com.nwalsh.xalan.Text"
|
15
|
-
|
16
|
-
extension-element-prefixes="stext xtext"
|
17
|
-
exclude-result-prefixes="exsl db dc h ncx ng opf stext str xtext d"
|
18
|
-
|
19
|
-
version="1.0">
|
20
|
-
|
21
|
-
<xsl:import href="../xhtml-1_1/docbook.xsl" />
|
22
|
-
<xsl:import href="../xhtml-1_1/chunk-common.xsl" />
|
23
|
-
<xsl:include href="../xhtml-1_1/chunk-code.xsl" />
|
24
|
-
|
25
|
-
|
26
|
-
<!-- We want a separate TOC file, please -->
|
27
|
-
<xsl:param name="chunk.tocs.and.lots">1</xsl:param>
|
28
|
-
<xsl:param name="toc.section.depth">2</xsl:param>
|
29
|
-
<xsl:param name="generate.toc">
|
30
|
-
book toc,title
|
31
|
-
</xsl:param>
|
32
|
-
|
33
|
-
<xsl:param name="ade.extensions" select="0"/>
|
34
|
-
<xsl:param name="epub.autolabel" select="'1'"/>
|
35
|
-
<xsl:param name="epub.ncx.depth">4</xsl:param> <!-- Not functional until http://code.google.com/p/epubcheck/issues/detail?id=70 is resolved -->
|
36
|
-
|
37
|
-
|
38
|
-
<xsl:param name="manifest.in.base.dir" select="'1'"/>
|
39
|
-
<xsl:param name="base.dir" select="$epub.oebps.dir"/>
|
40
|
-
|
41
|
-
<xsl:param name="epub.oebps.dir" select="'OEBPS/'"/>
|
42
|
-
<xsl:param name="epub.ncx.filename" select="'toc.ncx'"/>
|
43
|
-
<xsl:param name="epub.container.filename" select="'container.xml'"/>
|
44
|
-
<xsl:param name="epub.opf.filename" select="concat($epub.oebps.dir, 'content.opf')"/>
|
45
|
-
<xsl:param name="epub.cover.filename" select="concat($epub.oebps.dir, 'cover', $html.ext)"/>
|
46
|
-
<xsl:param name="epub.cover.id" select="'cover'"/>
|
47
|
-
<xsl:param name="epub.cover.html" select="'cover.html'" />
|
48
|
-
<xsl:param name="epub.cover.image.id" select="'cover-image'"/>
|
49
|
-
<xsl:param name="epub.cover.linear" select="0" />
|
50
|
-
<xsl:param name="epub.ncx.toc.id">ncxtoc</xsl:param>
|
51
|
-
<xsl:param name="epub.html.toc.id">htmltoc</xsl:param>
|
52
|
-
<xsl:param name="epub.metainf.dir" select="'META-INF/'"/>
|
53
|
-
|
54
|
-
<xsl:param name="epub.embedded.fonts"></xsl:param>
|
55
|
-
|
56
|
-
<!-- Turning this on crashes ADE, which is unbelievably awesome -->
|
57
|
-
<xsl:param name="formal.object.break.after">0</xsl:param>
|
58
|
-
|
59
|
-
|
60
|
-
<!-- Per Bob Stayton:
|
61
|
-
"""Process your documents with the css.decoration parameter set to zero.
|
62
|
-
That will avoid the use of style attributes in XHTML elements where they are not permitted."""
|
63
|
-
http://www.sagehill.net/docbookxsl/OtherOutputForms.html#StrictXhtmlValid -->
|
64
|
-
<xsl:param name="css.decoration" select="0"/>
|
65
|
-
<xsl:param name="custom.css.source"></xsl:param> <!-- FIXME: Align with current CSS parameter design -->
|
66
|
-
|
67
|
-
<xsl:param name="callout.graphics" select="1"/>
|
68
|
-
<xsl:param name="callout.graphics.extension">.png</xsl:param>
|
69
|
-
<xsl:param name="callout.graphics.number.limit" select="15"/>
|
70
|
-
<xsl:param name="callout.graphics.path" select="'images/callouts/'"/>
|
71
|
-
|
72
|
-
<!-- no navigation in .epub -->
|
73
|
-
<xsl:param name="suppress.navigation" select="'1'"/>
|
74
|
-
|
75
|
-
<xsl:variable name="toc.params">
|
76
|
-
<xsl:call-template name="find.path.params">
|
77
|
-
<xsl:with-param name="node" select="/*"/>
|
78
|
-
<xsl:with-param name="table" select="normalize-space($generate.toc)"/>
|
79
|
-
</xsl:call-template>
|
80
|
-
</xsl:variable>
|
81
|
-
<xsl:variable name="root.is.a.chunk">
|
82
|
-
<xsl:choose>
|
83
|
-
<xsl:when test="/*[not(self::d:book)][not(d:sect1) or not(d:section)]">
|
84
|
-
<xsl:text>1</xsl:text>
|
85
|
-
</xsl:when>
|
86
|
-
<xsl:when test="/d:book[*[last()][self::d:bookinfo]]|d:book[d:bookinfo]">
|
87
|
-
<xsl:text>1</xsl:text>
|
88
|
-
</xsl:when>
|
89
|
-
<xsl:when test="/d:book[*[last()][self::d:info]]|d:book[d:info]">
|
90
|
-
<xsl:text>1</xsl:text>
|
91
|
-
</xsl:when>
|
92
|
-
<xsl:when test="/d:bibliography">
|
93
|
-
<xsl:text>1</xsl:text>
|
94
|
-
</xsl:when>
|
95
|
-
<xsl:otherwise>
|
96
|
-
<xsl:text>0</xsl:text>
|
97
|
-
</xsl:otherwise>
|
98
|
-
</xsl:choose>
|
99
|
-
</xsl:variable>
|
100
|
-
|
101
|
-
<xsl:key name="image-filerefs" match="d:graphic|d:inlinegraphic|d:imagedata" use="@fileref"/>
|
102
|
-
|
103
|
-
<xsl:template match="/">
|
104
|
-
<!-- * Get a title for current doc so that we let the user -->
|
105
|
-
<!-- * know what document we are processing at this point. -->
|
106
|
-
<xsl:variable name="doc.title">
|
107
|
-
<xsl:call-template name="get.doc.title" />
|
108
|
-
</xsl:variable>
|
109
|
-
<xsl:choose>
|
110
|
-
|
111
|
-
<!-- include extra test for Xalan quirk -->
|
112
|
-
<xsl:when test="namespace-uri(*[1]) != 'http://docbook.org/ns/docbook'">
|
113
|
-
<xsl:call-template name="log.message">
|
114
|
-
<xsl:with-param name="level">Note</xsl:with-param>
|
115
|
-
<xsl:with-param name="source" select="$doc.title"/>
|
116
|
-
<xsl:with-param name="context-desc">
|
117
|
-
<xsl:text>namesp. add</xsl:text>
|
118
|
-
</xsl:with-param>
|
119
|
-
<xsl:with-param name="message">
|
120
|
-
<xsl:text>added namespace before processing</xsl:text>
|
121
|
-
</xsl:with-param>
|
122
|
-
</xsl:call-template>
|
123
|
-
<xsl:variable name="addns">
|
124
|
-
<xsl:apply-templates mode="addNS"/>
|
125
|
-
</xsl:variable>
|
126
|
-
<xsl:apply-templates select="exsl:node-set($addns)"/>
|
127
|
-
</xsl:when>
|
128
|
-
<xsl:otherwise>
|
129
|
-
<xsl:choose>
|
130
|
-
<xsl:when test="$rootid != ''">
|
131
|
-
<xsl:choose>
|
132
|
-
<xsl:when
|
133
|
-
test="count(key('id',$rootid)) = 0">
|
134
|
-
<xsl:message terminate="yes">
|
135
|
-
<xsl:text>ID '</xsl:text>
|
136
|
-
<xsl:value-of select="$rootid" />
|
137
|
-
<xsl:text>' not found in document.</xsl:text>
|
138
|
-
</xsl:message>
|
139
|
-
</xsl:when>
|
140
|
-
<xsl:otherwise>
|
141
|
-
<xsl:if
|
142
|
-
test="$collect.xref.targets = 'yes' or
|
143
|
-
$collect.xref.targets = 'only'">
|
144
|
-
<xsl:apply-templates
|
145
|
-
select="key('id', $rootid)" mode="collect.targets" />
|
146
|
-
</xsl:if>
|
147
|
-
<xsl:if
|
148
|
-
test="$collect.xref.targets != 'only'">
|
149
|
-
<xsl:message>
|
150
|
-
Formatting from
|
151
|
-
<xsl:value-of select="$rootid" />
|
152
|
-
</xsl:message>
|
153
|
-
<xsl:apply-templates
|
154
|
-
select="key('id',$rootid)" mode="process.root" />
|
155
|
-
<xsl:call-template name="ncx" />
|
156
|
-
</xsl:if>
|
157
|
-
</xsl:otherwise>
|
158
|
-
</xsl:choose>
|
159
|
-
</xsl:when>
|
160
|
-
<xsl:otherwise>
|
161
|
-
<xsl:if
|
162
|
-
test="$collect.xref.targets = 'yes' or
|
163
|
-
$collect.xref.targets = 'only'">
|
164
|
-
<xsl:apply-templates select="/"
|
165
|
-
mode="collect.targets" />
|
166
|
-
</xsl:if>
|
167
|
-
<xsl:if
|
168
|
-
test="$collect.xref.targets != 'only'">
|
169
|
-
<xsl:apply-templates select="/"
|
170
|
-
mode="process.root" />
|
171
|
-
<xsl:call-template name="ncx" />
|
172
|
-
<xsl:call-template name="opf" />
|
173
|
-
<xsl:call-template name="cover" />
|
174
|
-
<xsl:call-template name="container" />
|
175
|
-
</xsl:if>
|
176
|
-
</xsl:otherwise>
|
177
|
-
</xsl:choose>
|
178
|
-
</xsl:otherwise>
|
179
|
-
</xsl:choose>
|
180
|
-
</xsl:template>
|
181
|
-
|
182
|
-
<xsl:template name="package-identifier">
|
183
|
-
<xsl:choose>
|
184
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:biblioid">
|
185
|
-
<xsl:if test="/*/*[contains(name(.), 'info')][1]/d:biblioid[1][@class = 'doi' or
|
186
|
-
@class = 'isbn' or
|
187
|
-
@class = 'isrn' or
|
188
|
-
@class = 'issn']">
|
189
|
-
<xsl:text>urn:</xsl:text>
|
190
|
-
<xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:biblioid[1]/@class"/>
|
191
|
-
<xsl:text>:</xsl:text>
|
192
|
-
</xsl:if>
|
193
|
-
<xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:biblioid[1]"/>
|
194
|
-
</xsl:when>
|
195
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:isbn">
|
196
|
-
<xsl:text>urn:isbn:</xsl:text>
|
197
|
-
<xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:isbn[1]"/>
|
198
|
-
</xsl:when>
|
199
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:issn">
|
200
|
-
<xsl:text>urn:issn:</xsl:text>
|
201
|
-
<xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:issn[1]"/>
|
202
|
-
</xsl:when>
|
203
|
-
<xsl:otherwise>
|
204
|
-
<xsl:choose>
|
205
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:invpartnumber"> <xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:invpartnumber[1]"/> </xsl:when>
|
206
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:issuenum"> <xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:issuenum[1]"/> </xsl:when>
|
207
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:productnumber"> <xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:productnumber[1]"/> </xsl:when>
|
208
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:seriesvolnums"> <xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:seriesvolnums[1]"/> </xsl:when>
|
209
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:volumenum"> <xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:volumenum[1]"/> </xsl:when>
|
210
|
-
<!-- Deprecated -->
|
211
|
-
<xsl:when test="/*/*[contains(name(.), 'info')]/d:pubsnumber"> <xsl:value-of select="/*/*[contains(name(.), 'info')][1]/d:pubsnumber[1]"/> </xsl:when>
|
212
|
-
</xsl:choose>
|
213
|
-
<xsl:text>_</xsl:text>
|
214
|
-
<xsl:choose>
|
215
|
-
<xsl:when test="/*/@id">
|
216
|
-
<xsl:value-of select="/*/@id"/>
|
217
|
-
</xsl:when>
|
218
|
-
<xsl:when test="/*/@xml:id">
|
219
|
-
<xsl:value-of select="/*/@xml:id"/>
|
220
|
-
</xsl:when>
|
221
|
-
<xsl:otherwise>
|
222
|
-
<!-- TODO: Do UUIDs here -->
|
223
|
-
<xsl:value-of select="generate-id(/*)"/>
|
224
|
-
</xsl:otherwise>
|
225
|
-
</xsl:choose>
|
226
|
-
</xsl:otherwise>
|
227
|
-
</xsl:choose>
|
228
|
-
</xsl:template>
|
229
|
-
|
230
|
-
<xsl:template name="opf">
|
231
|
-
<xsl:variable name="package-identifier-id"><xsl:value-of select="concat(name(/*), 'id')"/></xsl:variable>
|
232
|
-
<xsl:variable name="doc.title">
|
233
|
-
<xsl:call-template name="get.doc.title" />
|
234
|
-
</xsl:variable>
|
235
|
-
<xsl:call-template name="write.chunk">
|
236
|
-
<xsl:with-param name="filename">
|
237
|
-
<xsl:value-of select="$epub.opf.filename" />
|
238
|
-
</xsl:with-param>
|
239
|
-
<xsl:with-param name="method" select="'xml'" />
|
240
|
-
<xsl:with-param name="encoding" select="'utf-8'" />
|
241
|
-
<xsl:with-param name="indent" select="'no'" />
|
242
|
-
<xsl:with-param name="quiet" select="$chunk.quietly" />
|
243
|
-
<xsl:with-param name="doctype-public" select="''"/> <!-- intentionally blank -->
|
244
|
-
<xsl:with-param name="doctype-system" select="''"/> <!-- intentionally blank -->
|
245
|
-
<xsl:with-param name="content">
|
246
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="package">
|
247
|
-
<xsl:attribute name="version">2.0</xsl:attribute>
|
248
|
-
<xsl:attribute name="unique-identifier"> <xsl:value-of select="$package-identifier-id"/> </xsl:attribute>
|
249
|
-
|
250
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="metadata">
|
251
|
-
<xsl:element name="dc:identifier">
|
252
|
-
<xsl:attribute name="id"><xsl:value-of select="$package-identifier-id"/></xsl:attribute>
|
253
|
-
<xsl:call-template name="package-identifier"/>
|
254
|
-
</xsl:element>
|
255
|
-
|
256
|
-
<xsl:element name="dc:title">
|
257
|
-
<xsl:value-of select="normalize-space($doc.title)"/>
|
258
|
-
</xsl:element>
|
259
|
-
|
260
|
-
<xsl:apply-templates select="/*/*[contains(name(.), 'info')]/*"
|
261
|
-
mode="opf.metadata"/>
|
262
|
-
<xsl:element name="dc:language">
|
263
|
-
<xsl:call-template name="l10n.language">
|
264
|
-
<xsl:with-param name="target" select="/*"/>
|
265
|
-
</xsl:call-template>
|
266
|
-
</xsl:element>
|
267
|
-
|
268
|
-
<xsl:if test="/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
269
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="meta">
|
270
|
-
<xsl:attribute name="name">cover</xsl:attribute>
|
271
|
-
<xsl:attribute name="content">
|
272
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
273
|
-
</xsl:attribute>
|
274
|
-
</xsl:element>
|
275
|
-
</xsl:if>
|
276
|
-
|
277
|
-
</xsl:element>
|
278
|
-
<xsl:call-template name="opf.manifest"/>
|
279
|
-
<xsl:call-template name="opf.spine"/>
|
280
|
-
<xsl:call-template name="opf.guide"/>
|
281
|
-
|
282
|
-
</xsl:element>
|
283
|
-
</xsl:with-param>
|
284
|
-
</xsl:call-template>
|
285
|
-
</xsl:template>
|
286
|
-
|
287
|
-
<xsl:template name="container">
|
288
|
-
<xsl:call-template name="write.chunk">
|
289
|
-
<xsl:with-param name="filename">
|
290
|
-
<xsl:value-of select="$epub.metainf.dir" />
|
291
|
-
<xsl:value-of select="$epub.container.filename" />
|
292
|
-
</xsl:with-param>
|
293
|
-
<xsl:with-param name="method" select="'xml'" />
|
294
|
-
<xsl:with-param name="encoding" select="'utf-8'" />
|
295
|
-
<xsl:with-param name="indent" select="'no'" />
|
296
|
-
<xsl:with-param name="quiet" select="$chunk.quietly" />
|
297
|
-
<xsl:with-param name="doctype-public" select="''"/> <!-- intentionally blank -->
|
298
|
-
<xsl:with-param name="doctype-system" select="''"/> <!-- intentionally blank -->
|
299
|
-
|
300
|
-
<xsl:with-param name="content">
|
301
|
-
<xsl:element namespace="urn:oasis:names:tc:opendocument:xmlns:container" name="container">
|
302
|
-
<xsl:attribute name="version">1.0</xsl:attribute>
|
303
|
-
<xsl:element namespace="urn:oasis:names:tc:opendocument:xmlns:container" name="rootfiles">
|
304
|
-
<xsl:element namespace="urn:oasis:names:tc:opendocument:xmlns:container" name="rootfile">
|
305
|
-
<xsl:attribute name="full-path">
|
306
|
-
<xsl:value-of select="$epub.opf.filename" />
|
307
|
-
</xsl:attribute>
|
308
|
-
<xsl:attribute name="media-type">
|
309
|
-
<xsl:text>application/oebps-package+xml</xsl:text>
|
310
|
-
</xsl:attribute>
|
311
|
-
</xsl:element>
|
312
|
-
</xsl:element>
|
313
|
-
</xsl:element>
|
314
|
-
</xsl:with-param>
|
315
|
-
</xsl:call-template>
|
316
|
-
</xsl:template>
|
317
|
-
|
318
|
-
<xsl:template name="ncx">
|
319
|
-
<xsl:call-template name="write.chunk">
|
320
|
-
<xsl:with-param name="filename">
|
321
|
-
<xsl:if test="$manifest.in.base.dir != 0">
|
322
|
-
<xsl:value-of select="$base.dir" />
|
323
|
-
</xsl:if>
|
324
|
-
<xsl:value-of select="$epub.ncx.filename" />
|
325
|
-
</xsl:with-param>
|
326
|
-
<xsl:with-param name="method" select="'xml'" />
|
327
|
-
<xsl:with-param name="encoding" select="'utf-8'" />
|
328
|
-
<xsl:with-param name="indent" select="'no'" />
|
329
|
-
<xsl:with-param name="quiet" select="$chunk.quietly" />
|
330
|
-
<xsl:with-param name="doctype-public" select="''"/> <!-- intentionally blank -->
|
331
|
-
<xsl:with-param name="doctype-system" select="''"/> <!-- intentionally blank -->
|
332
|
-
<xsl:with-param name="content">
|
333
|
-
<xsl:element name="ncx" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
334
|
-
<xsl:attribute name="version">2005-1</xsl:attribute>
|
335
|
-
|
336
|
-
<!-- Via Martin Goerner: On covers: the IDPF2.0 standard unfortunately does not have a provision for
|
337
|
-
covers. We had to add one and we did so in conjunction with the IDPF and
|
338
|
-
various publishers. The tag chosen to define the covers is:
|
339
|
-
<meta name="cover" content="-reference to a manifest item-">
|
340
|
-
Then, we also added a bit of logic to get rid cleanly of the HTML cover
|
341
|
-
people usually add because the logical cover is not specced by the IDPF. So,
|
342
|
-
if the HTML cover item is marked linear="no" AND there is a guide item of
|
343
|
-
type="cover" pointing to it AND there is a logical cover specified in a
|
344
|
-
<meta name="cover"> tag, THEN, the HTML cover is discarded. -->
|
345
|
-
<xsl:element name="head" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
346
|
-
<xsl:if test="/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
347
|
-
<xsl:element name="meta" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
348
|
-
<xsl:attribute name="name">cover</xsl:attribute>
|
349
|
-
<xsl:attribute name="content">
|
350
|
-
<xsl:value-of select="$epub.cover.id"/>
|
351
|
-
</xsl:attribute>
|
352
|
-
</xsl:element>
|
353
|
-
</xsl:if>
|
354
|
-
<xsl:element name="meta" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
355
|
-
<xsl:attribute name="name">dtb:uid</xsl:attribute>
|
356
|
-
<xsl:attribute name="content"><xsl:call-template name="package-identifier"/></xsl:attribute>
|
357
|
-
</xsl:element>
|
358
|
-
</xsl:element>
|
359
|
-
|
360
|
-
<xsl:choose>
|
361
|
-
<xsl:when test="$rootid != ''">
|
362
|
-
<xsl:variable name="title">
|
363
|
-
<xsl:if test="$epub.autolabel != 0">
|
364
|
-
<xsl:variable name="label.markup">
|
365
|
-
<xsl:apply-templates select="key('id',$rootid)" mode="label.markup" />
|
366
|
-
</xsl:variable>
|
367
|
-
<xsl:if test="normalize-space($label.markup)">
|
368
|
-
<xsl:value-of select="concat($label.markup,$autotoc.label.separator)" />
|
369
|
-
</xsl:if>
|
370
|
-
</xsl:if>
|
371
|
-
<xsl:apply-templates select="key('id',$rootid)" mode="title.markup" />
|
372
|
-
</xsl:variable>
|
373
|
-
<xsl:variable name="href">
|
374
|
-
<xsl:call-template name="href.target.with.base.dir">
|
375
|
-
<xsl:with-param name="object" select="key('id',$rootid)" />
|
376
|
-
</xsl:call-template>
|
377
|
-
</xsl:variable>
|
378
|
-
<xsl:element name="docTitle" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
379
|
-
<xsl:element name="text" namespace="http://www.daisy.org/z3986/2005/ncx/"><xsl:value-of select="normalize-space($title)" /> </xsl:element>
|
380
|
-
</xsl:element>
|
381
|
-
<xsl:element name="navMap" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
382
|
-
<xsl:apply-templates select="key('id',$rootid)/*" mode="ncx" />
|
383
|
-
</xsl:element>
|
384
|
-
</xsl:when>
|
385
|
-
<xsl:otherwise>
|
386
|
-
<xsl:variable name="title">
|
387
|
-
<xsl:if test="$epub.autolabel != 0">
|
388
|
-
<xsl:variable name="label.markup">
|
389
|
-
<xsl:apply-templates select="/*" mode="label.markup" />
|
390
|
-
</xsl:variable>
|
391
|
-
<xsl:if test="normalize-space($label.markup)">
|
392
|
-
<xsl:value-of select="concat($label.markup,$autotoc.label.separator)" />
|
393
|
-
</xsl:if>
|
394
|
-
</xsl:if>
|
395
|
-
<xsl:apply-templates select="/*" mode="title.markup" />
|
396
|
-
</xsl:variable>
|
397
|
-
<xsl:variable name="href">
|
398
|
-
<xsl:call-template name="href.target.with.base.dir">
|
399
|
-
<xsl:with-param name="object" select="/" />
|
400
|
-
</xsl:call-template>
|
401
|
-
</xsl:variable>
|
402
|
-
<xsl:element name="docTitle" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
403
|
-
<xsl:element name="text" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
404
|
-
<xsl:value-of select="normalize-space($title)" />
|
405
|
-
</xsl:element>
|
406
|
-
</xsl:element>
|
407
|
-
<xsl:element name="navMap" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
408
|
-
<xsl:choose>
|
409
|
-
<xsl:when test="$root.is.a.chunk != '0'">
|
410
|
-
<xsl:apply-templates select="/*" mode="ncx" />
|
411
|
-
</xsl:when>
|
412
|
-
<xsl:otherwise>
|
413
|
-
<xsl:apply-templates select="/*/*" mode="ncx" />
|
414
|
-
</xsl:otherwise>
|
415
|
-
</xsl:choose>
|
416
|
-
</xsl:element>
|
417
|
-
</xsl:otherwise>
|
418
|
-
|
419
|
-
</xsl:choose>
|
420
|
-
</xsl:element>
|
421
|
-
</xsl:with-param>
|
422
|
-
</xsl:call-template>
|
423
|
-
</xsl:template>
|
424
|
-
|
425
|
-
<xsl:template match="d:book|
|
426
|
-
d:article|
|
427
|
-
d:part|
|
428
|
-
d:reference|
|
429
|
-
d:preface|
|
430
|
-
d:chapter|
|
431
|
-
d:bibliography|
|
432
|
-
d:appendix|
|
433
|
-
d:glossary|
|
434
|
-
d:section|
|
435
|
-
d:sect1|
|
436
|
-
d:sect2|
|
437
|
-
d:sect3|
|
438
|
-
d:sect4|
|
439
|
-
d:sect5|
|
440
|
-
d:refentry|
|
441
|
-
d:colophon|
|
442
|
-
d:bibliodiv[d:title]|
|
443
|
-
d:setindex|
|
444
|
-
d:index"
|
445
|
-
mode="ncx">
|
446
|
-
<xsl:variable name="depth" select="count(ancestor::*)"/>
|
447
|
-
<xsl:variable name="title">
|
448
|
-
<xsl:if test="$epub.autolabel != 0">
|
449
|
-
<xsl:variable name="label.markup">
|
450
|
-
<xsl:apply-templates select="." mode="label.markup" />
|
451
|
-
</xsl:variable>
|
452
|
-
<xsl:if test="normalize-space($label.markup)">
|
453
|
-
<xsl:value-of
|
454
|
-
select="concat($label.markup,$autotoc.label.separator)" />
|
455
|
-
</xsl:if>
|
456
|
-
</xsl:if>
|
457
|
-
<xsl:apply-templates select="." mode="title.markup" />
|
458
|
-
</xsl:variable>
|
459
|
-
|
460
|
-
<xsl:variable name="href">
|
461
|
-
<xsl:call-template name="href.target.with.base.dir">
|
462
|
-
<xsl:with-param name="context" select="/" />
|
463
|
-
<!-- Generate links relative to the location of root file/toc.xml file -->
|
464
|
-
</xsl:call-template>
|
465
|
-
</xsl:variable>
|
466
|
-
|
467
|
-
<xsl:variable name="id">
|
468
|
-
<xsl:value-of select="generate-id(.)"/>
|
469
|
-
</xsl:variable>
|
470
|
-
<xsl:variable name="order">
|
471
|
-
<xsl:value-of select="$depth +
|
472
|
-
count(preceding::d:part|
|
473
|
-
preceding::d:reference|
|
474
|
-
preceding::d:book[parent::d:set]|
|
475
|
-
preceding::d:preface|
|
476
|
-
preceding::d:chapter|
|
477
|
-
preceding::d:bibliography|
|
478
|
-
preceding::d:appendix|
|
479
|
-
preceding::d:article|
|
480
|
-
preceding::d:glossary|
|
481
|
-
preceding::d:section[not(parent::d:partintro)]|
|
482
|
-
preceding::d:sect1[not(parent::d:partintro)]|
|
483
|
-
preceding::d:sect2[not(ancestor::d:partintro)]|
|
484
|
-
preceding::d:sect3[not(ancestor::d:partintro)]|
|
485
|
-
preceding::d:sect4[not(ancestor::d:partintro)]|
|
486
|
-
preceding::d:sect5[not(ancestor::d:partintro)]|
|
487
|
-
preceding::d:refentry|
|
488
|
-
preceding::d:colophon|
|
489
|
-
preceding::d:bibliodiv[d:title]|
|
490
|
-
preceding::d:index)"/>
|
491
|
-
</xsl:variable>
|
492
|
-
|
493
|
-
<xsl:element name="navPoint" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
494
|
-
<xsl:attribute name="id">
|
495
|
-
<xsl:value-of select="$id"/>
|
496
|
-
</xsl:attribute>
|
497
|
-
|
498
|
-
<xsl:attribute name="playOrder">
|
499
|
-
<xsl:choose>
|
500
|
-
<xsl:when test="/*[self::d:set]">
|
501
|
-
<xsl:value-of select="$order"/>
|
502
|
-
</xsl:when>
|
503
|
-
<xsl:when test="$root.is.a.chunk != '0'">
|
504
|
-
<xsl:value-of select="$order + 1"/>
|
505
|
-
</xsl:when>
|
506
|
-
<xsl:otherwise>
|
507
|
-
<xsl:value-of select="$order - 0"/>
|
508
|
-
</xsl:otherwise>
|
509
|
-
</xsl:choose>
|
510
|
-
</xsl:attribute>
|
511
|
-
<xsl:element name="navLabel" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
512
|
-
<xsl:element name="text" namespace="http://www.daisy.org/z3986/2005/ncx/"><xsl:value-of select="normalize-space($title)"/> </xsl:element>
|
513
|
-
</xsl:element>
|
514
|
-
<xsl:element name="content" namespace="http://www.daisy.org/z3986/2005/ncx/">
|
515
|
-
<xsl:attribute name="src">
|
516
|
-
<xsl:value-of select="$href"/>
|
517
|
-
</xsl:attribute>
|
518
|
-
</xsl:element>
|
519
|
-
<xsl:apply-templates select="d:book[parent::d:set]|d:part|d:reference|d:preface|d:chapter|d:bibliography|d:appendix|d:article|d:glossary|d:section|d:sect1|d:sect2|d:sect3|d:sect4|d:sect5|d:refentry|d:colophon|d:bibliodiv[d:title]|d:setindex|d:index" mode="ncx"/>
|
520
|
-
</xsl:element>
|
521
|
-
|
522
|
-
</xsl:template>
|
523
|
-
|
524
|
-
<xsl:template match="*" mode="opf.metadata">
|
525
|
-
<!-- override if you care -->
|
526
|
-
</xsl:template>
|
527
|
-
|
528
|
-
<xsl:template match="d:authorgroup" mode="opf.metadata">
|
529
|
-
<xsl:apply-templates select="d:author|d:corpauthor" mode="opf.metadata"/>
|
530
|
-
</xsl:template>
|
531
|
-
|
532
|
-
<xsl:template match="d:author|d:corpauthor" mode="opf.metadata">
|
533
|
-
<xsl:variable name="n">
|
534
|
-
<xsl:call-template name="person.name">
|
535
|
-
<xsl:with-param name="node" select="."/>
|
536
|
-
</xsl:call-template>
|
537
|
-
</xsl:variable>
|
538
|
-
<xsl:element name="dc:creator">
|
539
|
-
<xsl:attribute name="opf:file-as">
|
540
|
-
<xsl:call-template name="person.name.last-first">
|
541
|
-
<xsl:with-param name="node" select="."/>
|
542
|
-
</xsl:call-template>
|
543
|
-
</xsl:attribute>
|
544
|
-
<xsl:value-of select="normalize-space(string($n))"/>
|
545
|
-
</xsl:element>
|
546
|
-
</xsl:template>
|
547
|
-
|
548
|
-
<xsl:template match="d:date" mode="opf.metadata">
|
549
|
-
<xsl:element name="dc:date">
|
550
|
-
<xsl:value-of select="normalize-space(string(.))"/>
|
551
|
-
</xsl:element>
|
552
|
-
</xsl:template>
|
553
|
-
|
554
|
-
|
555
|
-
<!-- Space separate the compontents of the abstract (dropping the inline markup, sadly) -->
|
556
|
-
<xsl:template match="d:abstract" mode="opf.metadata">
|
557
|
-
<xsl:element name="dc:description">
|
558
|
-
<xsl:for-each select="d:formalpara|d:para|d:simpara|d:title">
|
559
|
-
<xsl:choose>
|
560
|
-
<xsl:when test="self::d:formalpara">
|
561
|
-
<xsl:value-of select="normalize-space(string(d:title))"/>
|
562
|
-
<xsl:text>: </xsl:text>
|
563
|
-
<xsl:value-of select="normalize-space(string(d:para))"/>
|
564
|
-
</xsl:when>
|
565
|
-
<xsl:otherwise>
|
566
|
-
<xsl:value-of select="normalize-space(string(.))"/>
|
567
|
-
</xsl:otherwise>
|
568
|
-
</xsl:choose>
|
569
|
-
<xsl:if test="self::d:title">
|
570
|
-
<xsl:text>:</xsl:text>
|
571
|
-
</xsl:if>
|
572
|
-
<xsl:if test="not(position() = last())">
|
573
|
-
<xsl:text> </xsl:text>
|
574
|
-
</xsl:if>
|
575
|
-
</xsl:for-each>
|
576
|
-
</xsl:element>
|
577
|
-
</xsl:template>
|
578
|
-
|
579
|
-
<xsl:template match="d:subjectset" mode="opf.metadata">
|
580
|
-
<xsl:apply-templates select="d:subject/d:subjectterm" mode="opf.metadata"/>
|
581
|
-
</xsl:template>
|
582
|
-
|
583
|
-
<xsl:template match="d:subjectterm" mode="opf.metadata">
|
584
|
-
<xsl:element name="dc:subject">
|
585
|
-
<xsl:value-of select="normalize-space(string(.))"/>
|
586
|
-
</xsl:element>
|
587
|
-
</xsl:template>
|
588
|
-
|
589
|
-
<xsl:template match="d:publisher" mode="opf.metadata">
|
590
|
-
<xsl:apply-templates select="d:publishername" mode="opf.metadata"/>
|
591
|
-
</xsl:template>
|
592
|
-
|
593
|
-
<xsl:template match="d:publishername" mode="opf.metadata">
|
594
|
-
<xsl:element name="dc:publisher">
|
595
|
-
<xsl:value-of select="normalize-space(string(.))"/>
|
596
|
-
</xsl:element>
|
597
|
-
</xsl:template>
|
598
|
-
|
599
|
-
<xsl:template match="d:copyright" mode="opf.metadata">
|
600
|
-
<xsl:variable name="copyright.date">
|
601
|
-
<xsl:call-template name="copyright.years">
|
602
|
-
<xsl:with-param name="years" select="d:year"/>
|
603
|
-
<xsl:with-param name="print.ranges" select="$make.year.ranges"/>
|
604
|
-
<xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
|
605
|
-
</xsl:call-template>
|
606
|
-
</xsl:variable>
|
607
|
-
<xsl:if test="not(../d:date)">
|
608
|
-
<xsl:element name="dc:date">
|
609
|
-
<xsl:call-template name="copyright.years">
|
610
|
-
<xsl:with-param name="years" select="d:year[last()]"/>
|
611
|
-
<xsl:with-param name="print.ranges" select="0"/>
|
612
|
-
<xsl:with-param name="single.year.ranges" select="0"/>
|
613
|
-
</xsl:call-template>
|
614
|
-
</xsl:element>
|
615
|
-
</xsl:if>
|
616
|
-
<xsl:element name="dc:rights">
|
617
|
-
<xsl:call-template name="gentext">
|
618
|
-
<xsl:with-param name="key" select="'Copyright'"/>
|
619
|
-
</xsl:call-template>
|
620
|
-
<xsl:call-template name="gentext.space"/>
|
621
|
-
<xsl:text>©</xsl:text>
|
622
|
-
<xsl:call-template name="gentext.space"/>
|
623
|
-
<xsl:value-of select="$copyright.date"/>
|
624
|
-
<xsl:call-template name="gentext.space"/>
|
625
|
-
<xsl:apply-templates select="d:holder" mode="titlepage.mode"/>
|
626
|
-
</xsl:element>
|
627
|
-
</xsl:template>
|
628
|
-
|
629
|
-
<xsl:template name="opf.guide">
|
630
|
-
<xsl:if test="contains($toc.params, 'toc') or
|
631
|
-
/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
632
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="guide">
|
633
|
-
<xsl:if test="/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
634
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="reference">
|
635
|
-
<xsl:attribute name="href">
|
636
|
-
<xsl:value-of select="$epub.cover.html" />
|
637
|
-
</xsl:attribute>
|
638
|
-
<xsl:attribute name="type">cover</xsl:attribute>
|
639
|
-
<xsl:attribute name="title">Cover</xsl:attribute>
|
640
|
-
</xsl:element>
|
641
|
-
</xsl:if>
|
642
|
-
|
643
|
-
<xsl:if test="contains($toc.params, 'toc')">
|
644
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="reference">
|
645
|
-
<xsl:attribute name="href">
|
646
|
-
<xsl:call-template name="toc-href">
|
647
|
-
<xsl:with-param name="node" select="/*"/>
|
648
|
-
</xsl:call-template>
|
649
|
-
</xsl:attribute>
|
650
|
-
<xsl:attribute name="type">toc</xsl:attribute>
|
651
|
-
<xsl:attribute name="title">Table of Contents</xsl:attribute>
|
652
|
-
</xsl:element>
|
653
|
-
</xsl:if>
|
654
|
-
</xsl:element>
|
655
|
-
</xsl:if>
|
656
|
-
</xsl:template>
|
657
|
-
|
658
|
-
<xsl:template name="opf.spine">
|
659
|
-
|
660
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="spine">
|
661
|
-
<xsl:attribute name="toc">
|
662
|
-
<xsl:value-of select="$epub.ncx.toc.id"/>
|
663
|
-
</xsl:attribute>
|
664
|
-
|
665
|
-
<xsl:if test="/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
666
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="itemref">
|
667
|
-
<xsl:attribute name="idref">
|
668
|
-
<xsl:value-of select="$epub.cover.id"/>
|
669
|
-
</xsl:attribute>
|
670
|
-
<xsl:attribute name="linear">
|
671
|
-
<xsl:choose>
|
672
|
-
<xsl:when test="$epub.cover.linear">
|
673
|
-
<xsl:text>yes</xsl:text>
|
674
|
-
</xsl:when>
|
675
|
-
<xsl:otherwise>no</xsl:otherwise>
|
676
|
-
</xsl:choose>
|
677
|
-
</xsl:attribute>
|
678
|
-
</xsl:element>
|
679
|
-
</xsl:if>
|
680
|
-
|
681
|
-
|
682
|
-
<xsl:if test="contains($toc.params, 'toc')">
|
683
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="itemref">
|
684
|
-
<xsl:attribute name="idref"> <xsl:value-of select="$epub.html.toc.id"/> </xsl:attribute>
|
685
|
-
<xsl:attribute name="linear">yes</xsl:attribute>
|
686
|
-
</xsl:element>
|
687
|
-
</xsl:if>
|
688
|
-
|
689
|
-
<!-- TODO: be nice to have a idref="titlepage" here -->
|
690
|
-
<xsl:choose>
|
691
|
-
<xsl:when test="$root.is.a.chunk != '0'">
|
692
|
-
<xsl:apply-templates select="/*" mode="opf.spine"/>
|
693
|
-
</xsl:when>
|
694
|
-
<xsl:otherwise>
|
695
|
-
<xsl:apply-templates select="/*/*" mode="opf.spine"/>
|
696
|
-
</xsl:otherwise>
|
697
|
-
</xsl:choose>
|
698
|
-
|
699
|
-
</xsl:element>
|
700
|
-
</xsl:template>
|
701
|
-
|
702
|
-
<xsl:template match="*" mode="opf.spine">
|
703
|
-
<xsl:variable name="is.chunk">
|
704
|
-
<xsl:call-template name="chunk">
|
705
|
-
<xsl:with-param name="node" select="."/>
|
706
|
-
</xsl:call-template>
|
707
|
-
</xsl:variable>
|
708
|
-
|
709
|
-
<xsl:if test="$is.chunk != 0">
|
710
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="itemref">
|
711
|
-
<xsl:attribute name="idref">
|
712
|
-
<xsl:value-of select="generate-id(.)"/>
|
713
|
-
</xsl:attribute>
|
714
|
-
</xsl:element>
|
715
|
-
<xsl:apply-templates select="*|.//d:refentry" mode="opf.spine"/>
|
716
|
-
</xsl:if>
|
717
|
-
</xsl:template>
|
718
|
-
|
719
|
-
<xsl:template name="opf.manifest">
|
720
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="manifest">
|
721
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
722
|
-
<xsl:attribute name="id"> <xsl:value-of select="$epub.ncx.toc.id"/> </xsl:attribute>
|
723
|
-
<xsl:attribute name="media-type">application/x-dtbncx+xml</xsl:attribute>
|
724
|
-
<xsl:attribute name="href"><xsl:value-of select="$epub.ncx.filename"/> </xsl:attribute>
|
725
|
-
</xsl:element>
|
726
|
-
|
727
|
-
<xsl:if test="contains($toc.params, 'toc')">
|
728
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
729
|
-
<xsl:attribute name="id"> <xsl:value-of select="$epub.html.toc.id"/> </xsl:attribute>
|
730
|
-
<xsl:attribute name="media-type">application/xhtml+xml</xsl:attribute>
|
731
|
-
<xsl:attribute name="href">
|
732
|
-
<xsl:call-template name="toc-href">
|
733
|
-
<xsl:with-param name="node" select="/*"/>
|
734
|
-
</xsl:call-template>
|
735
|
-
</xsl:attribute>
|
736
|
-
</xsl:element>
|
737
|
-
</xsl:if>
|
738
|
-
|
739
|
-
<xsl:if test="$html.stylesheet != ''">
|
740
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
741
|
-
<xsl:attribute name="media-type">text/css</xsl:attribute>
|
742
|
-
<xsl:attribute name="id">css</xsl:attribute>
|
743
|
-
<xsl:attribute name="href"><xsl:value-of select="$html.stylesheet"/></xsl:attribute>
|
744
|
-
</xsl:element>
|
745
|
-
</xsl:if>
|
746
|
-
|
747
|
-
<xsl:if test="/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
748
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
749
|
-
<xsl:attribute name="id"> <xsl:value-of select="$epub.cover.id"/> </xsl:attribute>
|
750
|
-
<xsl:attribute name="href">
|
751
|
-
<xsl:value-of select="$epub.cover.html"/>
|
752
|
-
</xsl:attribute>
|
753
|
-
<xsl:attribute name="media-type">application/xhtml+xml</xsl:attribute>
|
754
|
-
</xsl:element>
|
755
|
-
</xsl:if>
|
756
|
-
|
757
|
-
<xsl:choose>
|
758
|
-
<xsl:when test="$epub.embedded.fonts != '' and not(contains($epub.embedded.fonts, ','))">
|
759
|
-
<xsl:call-template name="embedded-font-item">
|
760
|
-
<xsl:with-param name="font.file" select="$epub.embedded.fonts"/> <!-- There is just one -->
|
761
|
-
</xsl:call-template>
|
762
|
-
</xsl:when>
|
763
|
-
<xsl:when test="$epub.embedded.fonts != ''">
|
764
|
-
<xsl:variable name="font.file.tokens" select="str:tokenize($epub.embedded.fonts, ',')"/>
|
765
|
-
<xsl:for-each select="exsl:node-set($font.file.tokens)">
|
766
|
-
<xsl:call-template name="embedded-font-item">
|
767
|
-
<xsl:with-param name="font.file" select="."/>
|
768
|
-
<xsl:with-param name="font.order" select="position()"/>
|
769
|
-
</xsl:call-template>
|
770
|
-
</xsl:for-each>
|
771
|
-
</xsl:when>
|
772
|
-
</xsl:choose>
|
773
|
-
|
774
|
-
<!-- TODO: be nice to have a id="titlepage" here -->
|
775
|
-
<xsl:apply-templates select="//d:part|
|
776
|
-
//d:book[*[last()][self::d:bookinfo]]|
|
777
|
-
//d:book[d:bookinfo]|
|
778
|
-
/d:set|
|
779
|
-
/d:set/d:book|
|
780
|
-
//d:reference|
|
781
|
-
//d:preface|
|
782
|
-
//d:chapter|
|
783
|
-
//d:bibliography|
|
784
|
-
//d:appendix|
|
785
|
-
//d:article|
|
786
|
-
//d:glossary|
|
787
|
-
//d:section|
|
788
|
-
//d:sect1|
|
789
|
-
//d:sect2|
|
790
|
-
//d:sect3|
|
791
|
-
//d:sect4|
|
792
|
-
//d:sect5|
|
793
|
-
//d:refentry|
|
794
|
-
//d:colophon|
|
795
|
-
//d:bibliodiv[d:title]|
|
796
|
-
//d:index|
|
797
|
-
//d:setindex|
|
798
|
-
//d:graphic|
|
799
|
-
//d:inlinegraphic|
|
800
|
-
//d:mediaobject|
|
801
|
-
//d:mediaobjectco|
|
802
|
-
//d:inlinemediaobject"
|
803
|
-
mode="opf.manifest"/>
|
804
|
-
<xsl:call-template name="opf.calloutlist"/>
|
805
|
-
</xsl:element>
|
806
|
-
</xsl:template>
|
807
|
-
|
808
|
-
<xsl:template name="opf.calloutlist">
|
809
|
-
<xsl:variable name="format">
|
810
|
-
<xsl:call-template name="guess-media-type">
|
811
|
-
<xsl:with-param name="ext" select="$callout.graphics.extension"/>
|
812
|
-
</xsl:call-template>
|
813
|
-
</xsl:variable>
|
814
|
-
<xsl:if test="(//d:calloutlist|//d:co)">
|
815
|
-
<xsl:call-template name="opf.reference.callout">
|
816
|
-
<xsl:with-param name="conum" select="1"/>
|
817
|
-
<xsl:with-param name="format" select="$format"/>
|
818
|
-
</xsl:call-template>
|
819
|
-
</xsl:if>
|
820
|
-
</xsl:template>
|
821
|
-
|
822
|
-
<xsl:template name="opf.reference.callout">
|
823
|
-
<xsl:param name="conum"/>
|
824
|
-
<xsl:param name="format"/>
|
825
|
-
|
826
|
-
<xsl:variable name="filename" select="concat($callout.graphics.path, $conum, $callout.graphics.extension)"/>
|
827
|
-
|
828
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
829
|
-
<xsl:attribute name="id"> <xsl:value-of select="concat(generate-id(.), 'callout', $conum)"/> </xsl:attribute>
|
830
|
-
<xsl:attribute name="href"> <xsl:value-of select="$filename"/> </xsl:attribute>
|
831
|
-
<xsl:attribute name="media-type">
|
832
|
-
<xsl:value-of select="$format"/>
|
833
|
-
</xsl:attribute>
|
834
|
-
</xsl:element>
|
835
|
-
<xsl:if test="($conum < $callout.graphics.number.limit)">
|
836
|
-
<xsl:call-template name="opf.reference.callout">
|
837
|
-
<xsl:with-param name="conum" select="$conum + 1"/>
|
838
|
-
<xsl:with-param name="format" select="$format"/>
|
839
|
-
</xsl:call-template>
|
840
|
-
</xsl:if>
|
841
|
-
</xsl:template>
|
842
|
-
|
843
|
-
<xsl:template name="guess-media-type">
|
844
|
-
<xsl:param name="ext"></xsl:param>
|
845
|
-
<xsl:choose>
|
846
|
-
<xsl:when test="contains($ext, '.gif')">
|
847
|
-
<xsl:text>image/gif</xsl:text>
|
848
|
-
</xsl:when>
|
849
|
-
<xsl:when test="contains($ext, 'GIF')">
|
850
|
-
<xsl:text>image/gif</xsl:text>
|
851
|
-
</xsl:when>
|
852
|
-
<xsl:when test="contains($ext, '.png')">
|
853
|
-
<xsl:text>image/png</xsl:text>
|
854
|
-
</xsl:when>
|
855
|
-
<xsl:when test="contains($ext, 'PNG')">
|
856
|
-
<xsl:text>image/png</xsl:text>
|
857
|
-
</xsl:when>
|
858
|
-
<xsl:when test="contains($ext, '.jpeg')">
|
859
|
-
<xsl:text>image/jpeg</xsl:text>
|
860
|
-
</xsl:when>
|
861
|
-
<xsl:when test="contains($ext, 'JPEG')">
|
862
|
-
<xsl:text>image/jpeg</xsl:text>
|
863
|
-
</xsl:when>
|
864
|
-
<xsl:when test="contains($ext, '.jpg')">
|
865
|
-
<xsl:text>image/jpeg</xsl:text>
|
866
|
-
</xsl:when>
|
867
|
-
<xsl:when test="contains($ext, 'JPG')">
|
868
|
-
<xsl:text>image/jpeg</xsl:text>
|
869
|
-
</xsl:when>
|
870
|
-
<xsl:when test="contains($ext, '.svg')">
|
871
|
-
<xsl:text>image/svg+xml</xsl:text>
|
872
|
-
</xsl:when>
|
873
|
-
<xsl:when test="contains($ext, 'SVG')">
|
874
|
-
<xsl:text>image/svg+xml</xsl:text>
|
875
|
-
</xsl:when>
|
876
|
-
<xsl:otherwise>
|
877
|
-
<!-- we failed -->
|
878
|
-
<xsl:text></xsl:text>
|
879
|
-
</xsl:otherwise>
|
880
|
-
</xsl:choose>
|
881
|
-
</xsl:template>
|
882
|
-
|
883
|
-
<xsl:template match="d:mediaobject|
|
884
|
-
d:mediaobjectco|
|
885
|
-
d:inlinemediaobject"
|
886
|
-
mode="opf.manifest">
|
887
|
-
|
888
|
-
<xsl:variable name="olist" select="d:imageobject|d:imageobjectco |d:videoobject|d:audioobject |d:textobject"/>
|
889
|
-
|
890
|
-
<xsl:variable name="object.index">
|
891
|
-
<xsl:call-template name="select.mediaobject.index">
|
892
|
-
<xsl:with-param name="olist" select="$olist"/>
|
893
|
-
<xsl:with-param name="count" select="1"/>
|
894
|
-
</xsl:call-template>
|
895
|
-
</xsl:variable>
|
896
|
-
|
897
|
-
<xsl:variable name="object" select="$olist[position() = $object.index]"/>
|
898
|
-
|
899
|
-
<xsl:choose>
|
900
|
-
<xsl:when test="$object/descendant::d:imagedata[@format = 'GIF' or
|
901
|
-
@format = 'GIF87a' or
|
902
|
-
@format = 'GIF89a' or
|
903
|
-
@format = 'JPEG' or
|
904
|
-
@format = 'JPG' or
|
905
|
-
@format = 'PNG' or
|
906
|
-
@format = 'SVG']">
|
907
|
-
<xsl:apply-templates select="$object[descendant::d:imagedata[@format = 'GIF' or
|
908
|
-
@format = 'GIF87a' or
|
909
|
-
@format = 'GIF89a' or
|
910
|
-
@format = 'JPEG' or
|
911
|
-
@format = 'JPG' or
|
912
|
-
@format = 'PNG' or
|
913
|
-
@format = 'SVG']][1]/d:imagedata"
|
914
|
-
mode="opf.manifest"/>
|
915
|
-
</xsl:when>
|
916
|
-
<xsl:otherwise>
|
917
|
-
<xsl:apply-templates select="$object/d:imagedata[1]"
|
918
|
-
mode="opf.manifest"/>
|
919
|
-
</xsl:otherwise>
|
920
|
-
</xsl:choose>
|
921
|
-
</xsl:template>
|
922
|
-
|
923
|
-
<xsl:template match="d:cover/d:mediaobject|
|
924
|
-
d:mediaobject[@role='cover']"
|
925
|
-
mode="opf.manifest">
|
926
|
-
<xsl:choose>
|
927
|
-
<xsl:when test="d:imageobject[@role='front-large']">
|
928
|
-
<xsl:apply-templates select="d:imageobject[@role='front-large']/d:imagedata"
|
929
|
-
mode="opf.manifest"/>
|
930
|
-
</xsl:when>
|
931
|
-
<xsl:otherwise>
|
932
|
-
<xsl:apply-templates select="d:imageobject/d:imagedata[1]"
|
933
|
-
mode="opf.manifest"/>
|
934
|
-
</xsl:otherwise>
|
935
|
-
</xsl:choose>
|
936
|
-
</xsl:template>
|
937
|
-
|
938
|
-
<xsl:template match="d:mediaobjectco"
|
939
|
-
mode="opf.manifest">
|
940
|
-
<xsl:message>WARNING: mediaobjectco almost certainly will not render as expected in .epub!</xsl:message>
|
941
|
-
<xsl:apply-templates select="d:imageobjectco/d:imageobject/d:imagedata"
|
942
|
-
mode="opf.manifest"/>
|
943
|
-
</xsl:template>
|
944
|
-
|
945
|
-
<!-- TODO: Barf (xsl:message terminate=yes) if you find a graphic with no reasonable format or a mediaobject w/o same? [option to not die?] -->
|
946
|
-
|
947
|
-
<!-- wish I had XSLT2 ...-->
|
948
|
-
<!-- TODO: priority a hack -->
|
949
|
-
<xsl:template match="d:graphic[not(@format)]|
|
950
|
-
d:inlinegraphic[not(@format)]|
|
951
|
-
d:imagedata[not(@format)]"
|
952
|
-
mode="opf.manifest">
|
953
|
-
<xsl:variable name="filename">
|
954
|
-
<xsl:choose>
|
955
|
-
<xsl:when test="contains(name(.), 'graphic')">
|
956
|
-
<xsl:choose>
|
957
|
-
<xsl:when test="@entityref">
|
958
|
-
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
|
959
|
-
</xsl:when>
|
960
|
-
<xsl:otherwise>
|
961
|
-
<xsl:apply-templates select="@fileref"/>
|
962
|
-
</xsl:otherwise>
|
963
|
-
</xsl:choose>
|
964
|
-
</xsl:when>
|
965
|
-
<xsl:otherwise>
|
966
|
-
<xsl:call-template name="mediaobject.filename">
|
967
|
-
<xsl:with-param name="object" select=".."/>
|
968
|
-
</xsl:call-template>
|
969
|
-
</xsl:otherwise>
|
970
|
-
</xsl:choose>
|
971
|
-
</xsl:variable>
|
972
|
-
<xsl:variable name="format">
|
973
|
-
<xsl:call-template name="guess-media-type">
|
974
|
-
<xsl:with-param name="ext" select="@fileref"/>
|
975
|
-
</xsl:call-template>
|
976
|
-
</xsl:variable>
|
977
|
-
<xsl:variable name="fr" select="@fileref"/>
|
978
|
-
<xsl:if test="$format != ''">
|
979
|
-
<!-- only do this if we're the first file to match -->
|
980
|
-
<!-- TODO: Why can't this be simple equality?? (I couldn't get it to work) -->
|
981
|
-
<xsl:if test="generate-id(.) = generate-id(key('image-filerefs', $fr)[1])">
|
982
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
983
|
-
<xsl:attribute name="id">
|
984
|
-
<xsl:choose>
|
985
|
-
<xsl:when test="ancestor::d:mediaobject[@role='cover'] and parent::*[@role='front-large']">
|
986
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
987
|
-
</xsl:when>
|
988
|
-
<xsl:when test="ancestor::d:mediaobject[@role='cover'] and (count(ancestor::d:mediaobject//d:imageobject) = 1)">
|
989
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
990
|
-
</xsl:when>
|
991
|
-
<xsl:when test="ancestor::d:cover">
|
992
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
993
|
-
</xsl:when>
|
994
|
-
<xsl:otherwise>
|
995
|
-
<xsl:value-of select="generate-id(.)"/>
|
996
|
-
</xsl:otherwise>
|
997
|
-
</xsl:choose>
|
998
|
-
</xsl:attribute>
|
999
|
-
<xsl:attribute name="href"> <xsl:value-of select="$filename"/> </xsl:attribute>
|
1000
|
-
<xsl:attribute name="media-type">
|
1001
|
-
<xsl:value-of select="$format"/>
|
1002
|
-
</xsl:attribute>
|
1003
|
-
</xsl:element>
|
1004
|
-
</xsl:if>
|
1005
|
-
</xsl:if>
|
1006
|
-
</xsl:template>
|
1007
|
-
|
1008
|
-
<!-- Note: Selection of the first interesting imagedata is done in the select -->
|
1009
|
-
<xsl:template match="d:graphic[@format = 'GIF' or @format = 'GIF87a' or @format = 'GIF89a' or @format = 'JPEG' or @format = 'JPG' or @format = 'PNG' or @format = 'SVG']|
|
1010
|
-
d:inlinegraphic[@format = 'GIF' or @format = 'GIF87a' or @format = 'GIF89a' or @format = 'JPEG' or @format = 'JPG' or @format = 'PNG' or @format = 'SVG']|
|
1011
|
-
d:imagedata[@format]"
|
1012
|
-
mode="opf.manifest">
|
1013
|
-
<xsl:variable name="filename">
|
1014
|
-
<xsl:choose>
|
1015
|
-
<xsl:when test="contains(name(.), 'graphic')">
|
1016
|
-
<xsl:choose>
|
1017
|
-
<xsl:when test="@entityref">
|
1018
|
-
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
|
1019
|
-
</xsl:when>
|
1020
|
-
<xsl:otherwise>
|
1021
|
-
<xsl:apply-templates select="@fileref"/>
|
1022
|
-
</xsl:otherwise>
|
1023
|
-
</xsl:choose>
|
1024
|
-
</xsl:when>
|
1025
|
-
<xsl:otherwise>
|
1026
|
-
<xsl:call-template name="mediaobject.filename">
|
1027
|
-
<xsl:with-param name="object" select=".."/>
|
1028
|
-
</xsl:call-template>
|
1029
|
-
</xsl:otherwise>
|
1030
|
-
</xsl:choose>
|
1031
|
-
</xsl:variable>
|
1032
|
-
<xsl:variable name="fr" select="@fileref"/>
|
1033
|
-
<!-- only do this if we're the first file to match -->
|
1034
|
-
<!-- TODO: Why can't this be simple equality?? (I couldn't get it to work) -->
|
1035
|
-
<xsl:if test="generate-id(.) = generate-id(key('image-filerefs', $fr)[1])">
|
1036
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
1037
|
-
<xsl:attribute name="id">
|
1038
|
-
<xsl:choose>
|
1039
|
-
<xsl:when test="ancestor::d:mediaobject[@role='cover'] and parent::*[@role='front-large']">
|
1040
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
1041
|
-
</xsl:when>
|
1042
|
-
<xsl:when test="ancestor::d:mediaobject[@role='cover'] and (count(ancestor::d:mediaobject//d:imageobject) = 1)">
|
1043
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
1044
|
-
</xsl:when>
|
1045
|
-
<xsl:when test="ancestor::d:cover">
|
1046
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
1047
|
-
</xsl:when>
|
1048
|
-
<xsl:otherwise>
|
1049
|
-
<xsl:value-of select="generate-id(.)"/>
|
1050
|
-
</xsl:otherwise>
|
1051
|
-
</xsl:choose>
|
1052
|
-
</xsl:attribute>
|
1053
|
-
<xsl:attribute name="href"> <xsl:value-of select="$filename"/> </xsl:attribute>
|
1054
|
-
<xsl:attribute name="media-type">
|
1055
|
-
<xsl:call-template name="guess-media-type">
|
1056
|
-
<xsl:with-param name="ext" select="@format"/>
|
1057
|
-
</xsl:call-template>
|
1058
|
-
</xsl:attribute>
|
1059
|
-
</xsl:element>
|
1060
|
-
</xsl:if>
|
1061
|
-
</xsl:template>
|
1062
|
-
|
1063
|
-
<!-- Warning: While the test indicate this match list is accurate, it may
|
1064
|
-
need further tweaking to ensure _never_ dropping generated content (XHTML)
|
1065
|
-
from the manifest (OPF file) -->
|
1066
|
-
<xsl:template
|
1067
|
-
match="d:set|
|
1068
|
-
d:book[parent::d:set]|
|
1069
|
-
d:book[*[last()][self::d:bookinfo]]|
|
1070
|
-
d:book[d:bookinfo]|
|
1071
|
-
d:article|
|
1072
|
-
d:part|
|
1073
|
-
d:reference|
|
1074
|
-
d:preface|
|
1075
|
-
d:chapter|
|
1076
|
-
d:bibliography|
|
1077
|
-
d:appendix|
|
1078
|
-
d:glossary|
|
1079
|
-
d:section|
|
1080
|
-
d:sect1|
|
1081
|
-
d:sect2|
|
1082
|
-
d:sect3|
|
1083
|
-
d:sect4|
|
1084
|
-
d:sect5|
|
1085
|
-
d:refentry|
|
1086
|
-
d:colophon|
|
1087
|
-
d:bibliodiv[d:title]|
|
1088
|
-
d:setindex|
|
1089
|
-
d:index"
|
1090
|
-
mode="opf.manifest">
|
1091
|
-
<xsl:variable name="href">
|
1092
|
-
<xsl:call-template name="href.target.with.base.dir">
|
1093
|
-
<xsl:with-param name="context" select="/" />
|
1094
|
-
<!-- Generate links relative to the location of root file/toc.xml file -->
|
1095
|
-
</xsl:call-template>
|
1096
|
-
</xsl:variable>
|
1097
|
-
|
1098
|
-
<xsl:variable name="id">
|
1099
|
-
<xsl:value-of select="generate-id(.)"/>
|
1100
|
-
</xsl:variable>
|
1101
|
-
|
1102
|
-
<xsl:variable name="is.chunk">
|
1103
|
-
<xsl:call-template name="chunk">
|
1104
|
-
<xsl:with-param name="node" select="."/>
|
1105
|
-
</xsl:call-template>
|
1106
|
-
</xsl:variable>
|
1107
|
-
|
1108
|
-
<xsl:if test="$is.chunk != 0">
|
1109
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
1110
|
-
<xsl:attribute name="id"> <xsl:value-of select="$id"/> </xsl:attribute>
|
1111
|
-
<xsl:attribute name="href"> <xsl:value-of select="$href"/> </xsl:attribute>
|
1112
|
-
<xsl:attribute name="media-type">application/xhtml+xml</xsl:attribute>
|
1113
|
-
</xsl:element>
|
1114
|
-
</xsl:if>
|
1115
|
-
</xsl:template>
|
1116
|
-
|
1117
|
-
<xsl:template match="text()" mode="ncx" />
|
1118
|
-
|
1119
|
-
<xsl:template name="html.head">
|
1120
|
-
<xsl:param name="prev" select="/d:foo"/>
|
1121
|
-
<xsl:param name="next" select="/d:foo"/>
|
1122
|
-
<xsl:variable name="this" select="."/>
|
1123
|
-
<xsl:variable name="home" select="/*[1]"/>
|
1124
|
-
<xsl:variable name="up" select="parent::*"/>
|
1125
|
-
|
1126
|
-
<head xmlns="http://www.w3.org/1999/xhtml">
|
1127
|
-
<xsl:call-template name="system.head.content"/>
|
1128
|
-
<xsl:call-template name="head.content"/>
|
1129
|
-
|
1130
|
-
<xsl:call-template name="user.head.content"/>
|
1131
|
-
</head>
|
1132
|
-
</xsl:template>
|
1133
|
-
|
1134
|
-
<!-- OVERRIDES xhtml-1_1/graphics.xsl -->
|
1135
|
-
<!-- we can't deal with no img/@alt, because it's required. Try grabbing a title before it instead (hopefully meaningful) -->
|
1136
|
-
<xsl:template name="process.image.attributes">
|
1137
|
-
<xsl:param name="alt"/>
|
1138
|
-
<xsl:param name="html.width"/>
|
1139
|
-
<xsl:param name="html.depth"/>
|
1140
|
-
<xsl:param name="longdesc"/>
|
1141
|
-
<xsl:param name="scale"/>
|
1142
|
-
<xsl:param name="scalefit"/>
|
1143
|
-
<xsl:param name="scaled.contentdepth"/>
|
1144
|
-
<xsl:param name="scaled.contentwidth"/>
|
1145
|
-
<xsl:param name="viewport"/>
|
1146
|
-
|
1147
|
-
<xsl:choose>
|
1148
|
-
<xsl:when test="@contentwidth or @contentdepth">
|
1149
|
-
<!-- ignore @width/@depth, @scale, and @scalefit if specified -->
|
1150
|
-
<xsl:if test="@contentwidth and $scaled.contentwidth != ''">
|
1151
|
-
<xsl:attribute name="width">
|
1152
|
-
<xsl:value-of select="$scaled.contentwidth"/>
|
1153
|
-
</xsl:attribute>
|
1154
|
-
</xsl:if>
|
1155
|
-
<xsl:if test="@contentdepth and $scaled.contentdepth != ''">
|
1156
|
-
<xsl:attribute name="height">
|
1157
|
-
<xsl:value-of select="$scaled.contentdepth"/>
|
1158
|
-
</xsl:attribute>
|
1159
|
-
</xsl:if>
|
1160
|
-
</xsl:when>
|
1161
|
-
|
1162
|
-
<xsl:when test="number($scale) != 1.0">
|
1163
|
-
<!-- scaling is always uniform, so we only have to specify one dimension -->
|
1164
|
-
<!-- ignore @scalefit if specified -->
|
1165
|
-
<xsl:attribute name="width">
|
1166
|
-
<xsl:value-of select="$scaled.contentwidth"/>
|
1167
|
-
</xsl:attribute>
|
1168
|
-
</xsl:when>
|
1169
|
-
|
1170
|
-
<xsl:when test="$scalefit != 0">
|
1171
|
-
<xsl:choose>
|
1172
|
-
<xsl:when test="contains($html.width, '%')">
|
1173
|
-
<xsl:choose>
|
1174
|
-
<xsl:when test="$viewport != 0">
|
1175
|
-
<!-- The *viewport* will be scaled, so use 100% here! -->
|
1176
|
-
<xsl:attribute name="width">
|
1177
|
-
<xsl:value-of select="'100%'"/>
|
1178
|
-
</xsl:attribute>
|
1179
|
-
</xsl:when>
|
1180
|
-
<xsl:otherwise>
|
1181
|
-
<xsl:attribute name="width">
|
1182
|
-
<xsl:value-of select="$html.width"/>
|
1183
|
-
</xsl:attribute>
|
1184
|
-
</xsl:otherwise>
|
1185
|
-
</xsl:choose>
|
1186
|
-
</xsl:when>
|
1187
|
-
|
1188
|
-
<xsl:when test="contains($html.depth, '%')">
|
1189
|
-
<!-- HTML doesn't deal with this case very well...do nothing -->
|
1190
|
-
</xsl:when>
|
1191
|
-
|
1192
|
-
<xsl:when test="$scaled.contentwidth != '' and $html.width != '' and $scaled.contentdepth != '' and $html.depth != ''">
|
1193
|
-
<!-- scalefit should not be anamorphic; figure out which direction -->
|
1194
|
-
<!-- has the limiting scale factor and scale in that direction -->
|
1195
|
-
<xsl:choose>
|
1196
|
-
<xsl:when test="$html.width div $scaled.contentwidth > $html.depth div $scaled.contentdepth">
|
1197
|
-
<xsl:attribute name="height">
|
1198
|
-
<xsl:value-of select="$html.depth"/>
|
1199
|
-
</xsl:attribute>
|
1200
|
-
</xsl:when>
|
1201
|
-
<xsl:otherwise>
|
1202
|
-
<xsl:attribute name="width">
|
1203
|
-
<xsl:value-of select="$html.width"/>
|
1204
|
-
</xsl:attribute>
|
1205
|
-
</xsl:otherwise>
|
1206
|
-
</xsl:choose>
|
1207
|
-
</xsl:when>
|
1208
|
-
|
1209
|
-
<xsl:when test="$scaled.contentwidth != '' and $html.width != ''">
|
1210
|
-
<xsl:attribute name="width">
|
1211
|
-
<xsl:value-of select="$html.width"/>
|
1212
|
-
</xsl:attribute>
|
1213
|
-
</xsl:when>
|
1214
|
-
|
1215
|
-
<xsl:when test="$scaled.contentdepth != '' and $html.depth != ''">
|
1216
|
-
<xsl:attribute name="height">
|
1217
|
-
<xsl:value-of select="$html.depth"/>
|
1218
|
-
</xsl:attribute>
|
1219
|
-
</xsl:when>
|
1220
|
-
</xsl:choose>
|
1221
|
-
</xsl:when>
|
1222
|
-
</xsl:choose>
|
1223
|
-
|
1224
|
-
<!-- AN OVERRIDE -->
|
1225
|
-
<xsl:if test="not(@format ='SVG')">
|
1226
|
-
<xsl:attribute name="alt">
|
1227
|
-
<xsl:choose>
|
1228
|
-
<xsl:when test="$alt != ''">
|
1229
|
-
<xsl:value-of select="normalize-space($alt)"/>
|
1230
|
-
</xsl:when>
|
1231
|
-
<xsl:when test="preceding::d:title[1]">
|
1232
|
-
<xsl:value-of select="normalize-space(preceding::d:title[1])"/>
|
1233
|
-
</xsl:when>
|
1234
|
-
<xsl:otherwise>
|
1235
|
-
<xsl:text>(missing alt)</xsl:text>
|
1236
|
-
</xsl:otherwise>
|
1237
|
-
</xsl:choose>
|
1238
|
-
</xsl:attribute>
|
1239
|
-
</xsl:if>
|
1240
|
-
<!-- END OF OVERRIDE -->
|
1241
|
-
|
1242
|
-
<xsl:if test="$longdesc != ''">
|
1243
|
-
<xsl:attribute name="longdesc">
|
1244
|
-
<xsl:value-of select="$longdesc"/>
|
1245
|
-
</xsl:attribute>
|
1246
|
-
</xsl:if>
|
1247
|
-
|
1248
|
-
<xsl:if test="@align and $viewport = 0">
|
1249
|
-
<xsl:attribute name="style"><xsl:text>text-align: </xsl:text>
|
1250
|
-
<xsl:choose>
|
1251
|
-
<xsl:when test="@align = 'center'">middle</xsl:when>
|
1252
|
-
<xsl:otherwise>
|
1253
|
-
<xsl:value-of select="@align"/>
|
1254
|
-
</xsl:otherwise>
|
1255
|
-
</xsl:choose>
|
1256
|
-
</xsl:attribute>
|
1257
|
-
</xsl:if>
|
1258
|
-
</xsl:template>
|
1259
|
-
|
1260
|
-
<!-- OVERRIDES xhtml-1_1/chunk-common.xsl -->
|
1261
|
-
<!-- make a bibliography always a chunk -->
|
1262
|
-
<xsl:template name="chunk"
|
1263
|
-
priority="1">
|
1264
|
-
<xsl:param name="node" select="."/>
|
1265
|
-
<!-- returns 1 if $node is a chunk -->
|
1266
|
-
|
1267
|
-
<!-- ==================================================================== -->
|
1268
|
-
<!-- What's a chunk?
|
1269
|
-
|
1270
|
-
The root element
|
1271
|
-
appendix
|
1272
|
-
article
|
1273
|
-
bibliography ### NO LONGER TRUE in article or part or book
|
1274
|
-
book
|
1275
|
-
chapter
|
1276
|
-
colophon
|
1277
|
-
glossary in article or part or book
|
1278
|
-
index in article or part or book
|
1279
|
-
part
|
1280
|
-
preface
|
1281
|
-
refentry
|
1282
|
-
reference
|
1283
|
-
sect{1,2,3,4,5} if position()>1 && depth < chunk.section.depth
|
1284
|
-
section if position()>1 && depth < chunk.section.depth
|
1285
|
-
set
|
1286
|
-
setindex
|
1287
|
-
-->
|
1288
|
-
<!-- ==================================================================== -->
|
1289
|
-
|
1290
|
-
<!--
|
1291
|
-
<xsl:message>
|
1292
|
-
<xsl:text>chunk: </xsl:text>
|
1293
|
-
<xsl:value-of select="name($node)"/>
|
1294
|
-
<xsl:text>(</xsl:text>
|
1295
|
-
<xsl:value-of select="$node/@id"/>
|
1296
|
-
<xsl:text>)</xsl:text>
|
1297
|
-
<xsl:text> csd: </xsl:text>
|
1298
|
-
<xsl:value-of select="$chunk.section.depth"/>
|
1299
|
-
<xsl:text> cfs: </xsl:text>
|
1300
|
-
<xsl:value-of select="$chunk.first.sections"/>
|
1301
|
-
<xsl:text> ps: </xsl:text>
|
1302
|
-
<xsl:value-of select="count($node/parent::d:section)"/>
|
1303
|
-
<xsl:text> prs: </xsl:text>
|
1304
|
-
<xsl:value-of select="count($node/preceding-sibling::d:section)"/>
|
1305
|
-
</xsl:message>
|
1306
|
-
-->
|
1307
|
-
|
1308
|
-
<xsl:choose>
|
1309
|
-
<xsl:when test="not($node/parent::*)">1</xsl:when>
|
1310
|
-
|
1311
|
-
<xsl:when test="local-name($node) = 'sect1' and $chunk.section.depth >= 1 and ($chunk.first.sections != 0 or count($node/preceding-sibling::d:sect1) > 0)">
|
1312
|
-
<xsl:text>1</xsl:text>
|
1313
|
-
</xsl:when>
|
1314
|
-
<xsl:when test="local-name($node) = 'sect2' and $chunk.section.depth >= 2 and ($chunk.first.sections != 0 or count($node/preceding-sibling::d:sect2) > 0)">
|
1315
|
-
<xsl:call-template name="chunk">
|
1316
|
-
<xsl:with-param name="node" select="$node/parent::*"/>
|
1317
|
-
</xsl:call-template>
|
1318
|
-
</xsl:when>
|
1319
|
-
<xsl:when test="local-name($node) = 'sect3' and $chunk.section.depth >= 3 and ($chunk.first.sections != 0 or count($node/preceding-sibling::d:sect3) > 0)">
|
1320
|
-
<xsl:call-template name="chunk">
|
1321
|
-
<xsl:with-param name="node" select="$node/parent::*"/>
|
1322
|
-
</xsl:call-template>
|
1323
|
-
</xsl:when>
|
1324
|
-
<xsl:when test="local-name($node) = 'sect4' and $chunk.section.depth >= 4 and ($chunk.first.sections != 0 or count($node/preceding-sibling::d:sect4) > 0)">
|
1325
|
-
<xsl:call-template name="chunk">
|
1326
|
-
<xsl:with-param name="node" select="$node/parent::*"/>
|
1327
|
-
</xsl:call-template>
|
1328
|
-
</xsl:when>
|
1329
|
-
<xsl:when test="local-name($node) = 'sect5' and $chunk.section.depth >= 5 and ($chunk.first.sections != 0 or count($node/preceding-sibling::d:sect5) > 0)">
|
1330
|
-
<xsl:call-template name="chunk">
|
1331
|
-
<xsl:with-param name="node" select="$node/parent::*"/>
|
1332
|
-
</xsl:call-template>
|
1333
|
-
</xsl:when>
|
1334
|
-
<xsl:when test="local-name($node) = 'section' and $chunk.section.depth >= count($node/ancestor::d:section)+1 and ($chunk.first.sections != 0 or count($node/preceding-sibling::d:section) > 0)">
|
1335
|
-
<xsl:call-template name="chunk">
|
1336
|
-
<xsl:with-param name="node" select="$node/parent::*"/>
|
1337
|
-
</xsl:call-template>
|
1338
|
-
</xsl:when>
|
1339
|
-
|
1340
|
-
<xsl:when test="local-name($node)='preface'">1</xsl:when>
|
1341
|
-
<xsl:when test="local-name($node)='chapter'">1</xsl:when>
|
1342
|
-
<xsl:when test="local-name($node)='appendix'">1</xsl:when>
|
1343
|
-
<xsl:when test="local-name($node)='article'">1</xsl:when>
|
1344
|
-
<xsl:when test="local-name($node)='part'">1</xsl:when>
|
1345
|
-
<xsl:when test="local-name($node)='reference'">1</xsl:when>
|
1346
|
-
<xsl:when test="local-name($node)='refentry'">1</xsl:when>
|
1347
|
-
<xsl:when test="local-name($node)='index' and ($generate.index != 0 or count($node/*) > 0) and (local-name($node/parent::*) = 'article' or local-name($node/parent::*) = 'book' or local-name($node/parent::*) = 'part' )">1</xsl:when>
|
1348
|
-
<!-- AN OVERRIDE -->
|
1349
|
-
<xsl:when test="local-name($node)='bibliography'">1</xsl:when>
|
1350
|
-
<!-- END OF OVERRIDE -->
|
1351
|
-
<xsl:when test="local-name($node)='glossary' and (local-name($node/parent::*) = 'article' or local-name($node/parent::*) = 'book' or local-name($node/parent::*) = 'part' )">1</xsl:when>
|
1352
|
-
<xsl:when test="local-name($node)='colophon'">1</xsl:when>
|
1353
|
-
<xsl:when test="local-name($node)='book'">1</xsl:when>
|
1354
|
-
<xsl:when test="local-name($node)='set'">1</xsl:when>
|
1355
|
-
<xsl:when test="local-name($node)='setindex'">1</xsl:when>
|
1356
|
-
<xsl:when test="local-name($node)='legalnotice' and $generate.legalnotice.link != 0">1</xsl:when>
|
1357
|
-
<xsl:otherwise>0</xsl:otherwise>
|
1358
|
-
</xsl:choose>
|
1359
|
-
</xsl:template>
|
1360
|
-
|
1361
|
-
<!-- OVERRIDES xhtml-1_1/chunk-code.xsl -->
|
1362
|
-
<!-- Add chunking for bibliography as root element -->
|
1363
|
-
<!-- AN OVERRIDE -->
|
1364
|
-
<xsl:template match="d:set|
|
1365
|
-
d:book|
|
1366
|
-
d:part|
|
1367
|
-
d:preface|
|
1368
|
-
d:chapter|
|
1369
|
-
d:appendix|
|
1370
|
-
d:article|
|
1371
|
-
d:reference|
|
1372
|
-
d:refentry|
|
1373
|
-
d:book/d:glossary|
|
1374
|
-
d:article/d:glossary|
|
1375
|
-
d:part/d:glossary|
|
1376
|
-
d:bibliography|
|
1377
|
-
d:colophon"
|
1378
|
-
priority="1">
|
1379
|
-
<!-- END OF OVERRIDE -->
|
1380
|
-
<xsl:choose>
|
1381
|
-
<xsl:when test="$onechunk != 0 and parent::*">
|
1382
|
-
<xsl:apply-imports/>
|
1383
|
-
</xsl:when>
|
1384
|
-
<xsl:otherwise>
|
1385
|
-
<xsl:call-template name="process-chunk-element"/>
|
1386
|
-
</xsl:otherwise>
|
1387
|
-
</xsl:choose>
|
1388
|
-
</xsl:template>
|
1389
|
-
|
1390
|
-
<!-- OVERRIDES xhtml-1_1/graphics.xsl -->
|
1391
|
-
<!-- Do _NOT_ output any xlink garbage, so if you don't have
|
1392
|
-
processor with extensions, you're screwed and we're terminating -->
|
1393
|
-
<xsl:template match="d:inlinegraphic">
|
1394
|
-
<xsl:variable name="filename">
|
1395
|
-
<xsl:choose>
|
1396
|
-
<xsl:when test="@entityref">
|
1397
|
-
<xsl:value-of select="unparsed-entity-uri(@entityref)"/>
|
1398
|
-
</xsl:when>
|
1399
|
-
<xsl:otherwise>
|
1400
|
-
<xsl:apply-templates select="@fileref"/>
|
1401
|
-
</xsl:otherwise>
|
1402
|
-
</xsl:choose>
|
1403
|
-
</xsl:variable>
|
1404
|
-
|
1405
|
-
<xsl:call-template name="anchor"/>
|
1406
|
-
|
1407
|
-
<xsl:choose>
|
1408
|
-
<xsl:when test="@format='linespecific'">
|
1409
|
-
<xsl:choose>
|
1410
|
-
<xsl:when test="$use.extensions != '0' and $textinsert.extension != '0'">
|
1411
|
-
<xsl:choose>
|
1412
|
-
<xsl:when test="element-available('stext:insertfile')">
|
1413
|
-
<stext:insertfile href="{$filename}" encoding="{$textdata.default.encoding}"/>
|
1414
|
-
</xsl:when>
|
1415
|
-
<xsl:when test="element-available('xtext:insertfile')">
|
1416
|
-
<xtext:insertfile href="{$filename}"/>
|
1417
|
-
</xsl:when>
|
1418
|
-
<xsl:otherwise>
|
1419
|
-
<xsl:message terminate="yes">
|
1420
|
-
<xsl:text>No insertfile extension available.</xsl:text>
|
1421
|
-
</xsl:message>
|
1422
|
-
</xsl:otherwise>
|
1423
|
-
</xsl:choose>
|
1424
|
-
</xsl:when>
|
1425
|
-
<xsl:otherwise>
|
1426
|
-
<!-- AN OVERRIDE -->
|
1427
|
-
<xsl:message terminate="yes">
|
1428
|
-
<xsl:text>No insertfile extension available. Use a different processor (with extensions) or turn on $use.extensions and $textinsert.extension (see docs for more). </xsl:text>
|
1429
|
-
</xsl:message>
|
1430
|
-
<!-- END OF OVERRIDE -->
|
1431
|
-
</xsl:otherwise>
|
1432
|
-
</xsl:choose>
|
1433
|
-
</xsl:when>
|
1434
|
-
<xsl:otherwise>
|
1435
|
-
<xsl:call-template name="process.image"/>
|
1436
|
-
</xsl:otherwise>
|
1437
|
-
</xsl:choose>
|
1438
|
-
</xsl:template>
|
1439
|
-
|
1440
|
-
<xsl:template name="cover">
|
1441
|
-
<xsl:apply-templates select="/*/*[contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]"/>
|
1442
|
-
</xsl:template>
|
1443
|
-
|
1444
|
-
<xsl:template match="/*/*[d:cover or contains(name(.), 'info')]//d:mediaobject[@role='cover' or ancestor::d:cover]">
|
1445
|
-
<xsl:call-template name="write.chunk">
|
1446
|
-
<xsl:with-param name="filename">
|
1447
|
-
<xsl:value-of select="$epub.cover.filename" />
|
1448
|
-
</xsl:with-param>
|
1449
|
-
<xsl:with-param name="method" select="'xml'" />
|
1450
|
-
<xsl:with-param name="encoding" select="'utf-8'" />
|
1451
|
-
<xsl:with-param name="indent" select="'no'" />
|
1452
|
-
<xsl:with-param name="quiet" select="$chunk.quietly" />
|
1453
|
-
<xsl:with-param name="content">
|
1454
|
-
<xsl:element namespace="http://www.w3.org/1999/xhtml" name="html">
|
1455
|
-
<xsl:element namespace="http://www.w3.org/1999/xhtml" name="head">
|
1456
|
-
<xsl:element namespace="http://www.w3.org/1999/xhtml" name="title">Cover</xsl:element>
|
1457
|
-
<xsl:element namespace="http://www.w3.org/1999/xhtml" name="style">
|
1458
|
-
<xsl:attribute name="type">text/css</xsl:attribute>
|
1459
|
-
<!-- Help the cover image scale nicely in the CSS then apply a max-width to look better in Adobe Digital Editions -->
|
1460
|
-
<xsl:text> img { max-width: 100%; }</xsl:text>
|
1461
|
-
</xsl:element>
|
1462
|
-
</xsl:element>
|
1463
|
-
<xsl:element namespace="http://www.w3.org/1999/xhtml" name="body">
|
1464
|
-
<xsl:element namespace="http://www.w3.org/1999/xhtml" name="div">
|
1465
|
-
<xsl:attribute name="id">
|
1466
|
-
<xsl:value-of select="$epub.cover.image.id"/>
|
1467
|
-
</xsl:attribute>
|
1468
|
-
<xsl:choose>
|
1469
|
-
<xsl:when test="d:imageobject[@role='front-large']">
|
1470
|
-
<xsl:apply-templates select="d:imageobject[@role='front-large']"/>
|
1471
|
-
</xsl:when>
|
1472
|
-
<xsl:otherwise>
|
1473
|
-
<xsl:apply-templates select="d:imageobject[1]"/>
|
1474
|
-
</xsl:otherwise>
|
1475
|
-
</xsl:choose>
|
1476
|
-
</xsl:element>
|
1477
|
-
<!-- If this is defined as an explicit cover page, then process
|
1478
|
-
any remaining text -->
|
1479
|
-
<xsl:if test="ancestor::d:cover">
|
1480
|
-
<xsl:apply-templates select="ancestor::d:cover/d:para"/>
|
1481
|
-
</xsl:if>
|
1482
|
-
</xsl:element>
|
1483
|
-
</xsl:element>
|
1484
|
-
</xsl:with-param>
|
1485
|
-
</xsl:call-template>
|
1486
|
-
</xsl:template>
|
1487
|
-
|
1488
|
-
<xsl:template name="cover-svg">
|
1489
|
-
<xsl:param name="node"/>
|
1490
|
-
</xsl:template>
|
1491
|
-
|
1492
|
-
<xsl:template name="toc-href">
|
1493
|
-
<xsl:param name="node" select="."/>
|
1494
|
-
<xsl:apply-templates select="$node" mode="recursive-chunk-filename">
|
1495
|
-
<xsl:with-param name="recursive" select="true()"/>
|
1496
|
-
</xsl:apply-templates>
|
1497
|
-
<xsl:text>-toc</xsl:text>
|
1498
|
-
<xsl:value-of select="$html.ext"/>
|
1499
|
-
</xsl:template>
|
1500
|
-
|
1501
|
-
<xsl:template match="d:bibliodiv[d:title]" mode="label.markup">
|
1502
|
-
</xsl:template>
|
1503
|
-
|
1504
|
-
<xsl:template match="d:token" mode="opf.manifest.font">
|
1505
|
-
<xsl:call-template name="embedded-font-item">
|
1506
|
-
<xsl:with-param name="font.file" select="."/>
|
1507
|
-
</xsl:call-template>
|
1508
|
-
</xsl:template>
|
1509
|
-
|
1510
|
-
<xsl:template name="embedded-font-item">
|
1511
|
-
<xsl:param name="font.file"/>
|
1512
|
-
<xsl:param name="font.order" select="1"/>
|
1513
|
-
|
1514
|
-
<xsl:element namespace="http://www.idpf.org/2007/opf" name="item">
|
1515
|
-
<xsl:attribute name="id">
|
1516
|
-
<xsl:value-of select="concat('epub.embedded.font.', $font.order)"/>
|
1517
|
-
</xsl:attribute>
|
1518
|
-
<xsl:attribute name="href"><xsl:value-of select="$font.file"/></xsl:attribute>
|
1519
|
-
<xsl:choose>
|
1520
|
-
<xsl:when test="contains($font.file, 'otf')">
|
1521
|
-
<xsl:attribute name="media-type">font/opentype</xsl:attribute>
|
1522
|
-
</xsl:when>
|
1523
|
-
<xsl:otherwise>
|
1524
|
-
<xsl:message>
|
1525
|
-
<xsl:text>WARNING: OpenType fonts should be supplied! (</xsl:text>
|
1526
|
-
<xsl:value-of select="$font.file"/>
|
1527
|
-
<xsl:text>)</xsl:text>
|
1528
|
-
</xsl:message>
|
1529
|
-
</xsl:otherwise>
|
1530
|
-
</xsl:choose>
|
1531
|
-
</xsl:element>
|
1532
|
-
</xsl:template>
|
1533
|
-
|
1534
|
-
<!-- Change section.heading to improve SEO on generated HTML by doing heading levels
|
1535
|
-
"correctly". SEO rules are sometimes silly silly, but this does actually create
|
1536
|
-
a semantic improvement.
|
1537
|
-
Note: This template needs to be manually maintained outside of the html/sections.xsl
|
1538
|
-
code, so make sure important changes get reintegrated. -->
|
1539
|
-
<xsl:template name="section.heading">
|
1540
|
-
<xsl:param name="section" select="."/>
|
1541
|
-
<xsl:param name="level" select="1"/>
|
1542
|
-
<xsl:param name="allow-anchors" select="1"/>
|
1543
|
-
<xsl:param name="title"/>
|
1544
|
-
<xsl:param name="class" select="'title'"/>
|
1545
|
-
|
1546
|
-
<xsl:variable name="id">
|
1547
|
-
<xsl:choose>
|
1548
|
-
<!-- Make sure the subtitle doesn't get the same id as the title -->
|
1549
|
-
<xsl:when test="self::d:subtitle">
|
1550
|
-
<xsl:call-template name="object.id">
|
1551
|
-
<xsl:with-param name="object" select="."/>
|
1552
|
-
</xsl:call-template>
|
1553
|
-
</xsl:when>
|
1554
|
-
<!-- if title is in an *info wrapper, get the grandparent -->
|
1555
|
-
<xsl:when test="contains(local-name(..), 'info')">
|
1556
|
-
<xsl:call-template name="object.id">
|
1557
|
-
<xsl:with-param name="object" select="../.."/>
|
1558
|
-
</xsl:call-template>
|
1559
|
-
</xsl:when>
|
1560
|
-
<xsl:otherwise>
|
1561
|
-
<xsl:call-template name="object.id">
|
1562
|
-
<xsl:with-param name="object" select=".."/>
|
1563
|
-
</xsl:call-template>
|
1564
|
-
</xsl:otherwise>
|
1565
|
-
</xsl:choose>
|
1566
|
-
</xsl:variable>
|
1567
|
-
|
1568
|
-
<!-- For SEO, we try to actually ensure we *always* output one and only one h1,
|
1569
|
-
so unlike the regular stylesheets, we don't add one to the section level and
|
1570
|
-
we get the right behavior because of chunking. -->
|
1571
|
-
<xsl:variable name="hlevel">
|
1572
|
-
<xsl:choose>
|
1573
|
-
<!-- highest valid HTML H level is H6; so anything nested deeper
|
1574
|
-
than 7 levels down just becomes H6 -->
|
1575
|
-
<xsl:when test="$level > 6">6</xsl:when>
|
1576
|
-
<xsl:otherwise>
|
1577
|
-
<xsl:value-of select="$level"/>
|
1578
|
-
</xsl:otherwise>
|
1579
|
-
</xsl:choose>
|
1580
|
-
</xsl:variable>
|
1581
|
-
<xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
|
1582
|
-
<xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
|
1583
|
-
<xsl:if test="$css.decoration != '0'">
|
1584
|
-
<xsl:if test="$hlevel<3">
|
1585
|
-
<xsl:attribute name="style">clear: both</xsl:attribute>
|
1586
|
-
</xsl:if>
|
1587
|
-
</xsl:if>
|
1588
|
-
<xsl:if test="$allow-anchors != 0 and $generate.id.attributes = 0">
|
1589
|
-
<xsl:call-template name="anchor">
|
1590
|
-
<xsl:with-param name="node" select="$section"/>
|
1591
|
-
<xsl:with-param name="conditional" select="0"/>
|
1592
|
-
</xsl:call-template>
|
1593
|
-
</xsl:if>
|
1594
|
-
<xsl:if test="$generate.id.attributes != 0 and not(local-name(.) = 'appendix')">
|
1595
|
-
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
|
1596
|
-
</xsl:if>
|
1597
|
-
<xsl:copy-of select="$title"/>
|
1598
|
-
</xsl:element>
|
1599
|
-
</xsl:template>
|
1600
|
-
|
1601
|
-
<!-- ==================================================================== -->
|
1602
|
-
|
1603
|
-
<xsl:template match="d:bridgehead">
|
1604
|
-
<xsl:variable name="container" select="(ancestor::d:appendix |ancestor::d:article |ancestor::d:bibliography |ancestor::d:chapter |ancestor::d:glossary |ancestor::d:glossdiv |ancestor::d:index |ancestor::d:partintro |ancestor::d:preface |ancestor::d:refsect1 |ancestor::d:refsect2 |ancestor::d:refsect3 |ancestor::d:sect1 |ancestor::d:sect2 |ancestor::d:sect3 |ancestor::d:sect4 |ancestor::d:sect5 |ancestor::d:section |ancestor::d:setindex |ancestor::d:simplesect)[last()]"/>
|
1605
|
-
|
1606
|
-
<xsl:variable name="clevel">
|
1607
|
-
<xsl:choose>
|
1608
|
-
<xsl:when test="local-name($container) = 'appendix' or local-name($container) = 'chapter' or local-name($container) = 'article' or local-name($container) = 'bibliography' or local-name($container) = 'glossary' or local-name($container) = 'index' or local-name($container) = 'partintro' or local-name($container) = 'preface' or local-name($container) = 'setindex'">1</xsl:when>
|
1609
|
-
<xsl:when test="local-name($container) = 'glossdiv'">
|
1610
|
-
<xsl:value-of select="count(ancestor::d:glossdiv)+1"/>
|
1611
|
-
</xsl:when>
|
1612
|
-
<xsl:when test="local-name($container) = 'sect1' or local-name($container) = 'sect2' or local-name($container) = 'sect3' or local-name($container) = 'sect4' or local-name($container) = 'sect5' or local-name($container) = 'refsect1' or local-name($container) = 'refsect2' or local-name($container) = 'refsect3' or local-name($container) = 'section' or local-name($container) = 'simplesect'">
|
1613
|
-
<xsl:variable name="slevel">
|
1614
|
-
<xsl:call-template name="section.level">
|
1615
|
-
<xsl:with-param name="node" select="$container"/>
|
1616
|
-
</xsl:call-template>
|
1617
|
-
</xsl:variable>
|
1618
|
-
<xsl:value-of select="$slevel + 1"/>
|
1619
|
-
</xsl:when>
|
1620
|
-
<xsl:otherwise>1</xsl:otherwise>
|
1621
|
-
</xsl:choose>
|
1622
|
-
</xsl:variable>
|
1623
|
-
|
1624
|
-
<!-- HTML H level is one higher than section level -->
|
1625
|
-
<xsl:variable name="hlevel">
|
1626
|
-
<xsl:choose>
|
1627
|
-
<xsl:when test="@renderas = 'sect1'">1</xsl:when>
|
1628
|
-
<xsl:when test="@renderas = 'sect2'">2</xsl:when>
|
1629
|
-
<xsl:when test="@renderas = 'sect3'">3</xsl:when>
|
1630
|
-
<xsl:when test="@renderas = 'sect4'">4</xsl:when>
|
1631
|
-
<xsl:when test="@renderas = 'sect5'">5</xsl:when>
|
1632
|
-
<xsl:otherwise>
|
1633
|
-
<xsl:value-of select="$clevel + 1"/>
|
1634
|
-
</xsl:otherwise>
|
1635
|
-
</xsl:choose>
|
1636
|
-
</xsl:variable>
|
1637
|
-
|
1638
|
-
<xsl:element name="h{$hlevel}" namespace="http://www.w3.org/1999/xhtml">
|
1639
|
-
<xsl:call-template name="anchor">
|
1640
|
-
<xsl:with-param name="conditional" select="0"/>
|
1641
|
-
</xsl:call-template>
|
1642
|
-
<xsl:apply-templates/>
|
1643
|
-
</xsl:element>
|
1644
|
-
</xsl:template>
|
1645
|
-
|
1646
|
-
<!-- SEO customization #2 -->
|
1647
|
-
<xsl:template name="component.title">
|
1648
|
-
<xsl:param name="node" select="."/>
|
1649
|
-
|
1650
|
-
<xsl:variable name="level">
|
1651
|
-
<xsl:choose>
|
1652
|
-
<xsl:when test="ancestor::d:section">
|
1653
|
-
<xsl:value-of select="count(ancestor::d:section)+1"/>
|
1654
|
-
</xsl:when>
|
1655
|
-
<xsl:when test="ancestor::d:sect5">6</xsl:when>
|
1656
|
-
<xsl:when test="ancestor::d:sect4">5</xsl:when>
|
1657
|
-
<xsl:when test="ancestor::d:sect3">4</xsl:when>
|
1658
|
-
<xsl:when test="ancestor::d:sect2">3</xsl:when>
|
1659
|
-
<xsl:when test="ancestor::d:sect1">2</xsl:when>
|
1660
|
-
<xsl:otherwise>1</xsl:otherwise>
|
1661
|
-
</xsl:choose>
|
1662
|
-
</xsl:variable>
|
1663
|
-
|
1664
|
-
<xsl:element name="h{$level}" namespace="http://www.w3.org/1999/xhtml">
|
1665
|
-
<xsl:attribute name="class">title</xsl:attribute>
|
1666
|
-
<xsl:if test="$generate.id.attributes = 0">
|
1667
|
-
<xsl:call-template name="anchor">
|
1668
|
-
<xsl:with-param name="node" select="$node"/>
|
1669
|
-
<xsl:with-param name="conditional" select="0"/>
|
1670
|
-
</xsl:call-template>
|
1671
|
-
</xsl:if>
|
1672
|
-
<xsl:apply-templates select="$node" mode="object.title.markup">
|
1673
|
-
<xsl:with-param name="allow-anchors" select="1"/>
|
1674
|
-
</xsl:apply-templates>
|
1675
|
-
</xsl:element>
|
1676
|
-
</xsl:template>
|
1677
|
-
|
1678
|
-
</xsl:stylesheet>
|