Permalink
Browse files

version 1.0

  • Loading branch information...
1 parent 7f97f1b commit c4f312d55d03dda03681b7e9580904c470066859 Geert Josten committed Oct 21, 2011
Showing with 12,556 additions and 0 deletions.
  1. +6 −0 .classpath
  2. +17 −0 .project
  3. +4 −0 CatalogManager.properties
  4. +68 −0 INSTALL.txt
  5. BIN TEI to ePub.pptx
  6. BIN XML Holland Code Challenge.docx
  7. BIN dist/xproc-ebook-conv-1.0.zip
  8. +10 −0 docs/BUGS.txt
  9. +339 −0 docs/GPL.txt
  10. +15 −0 docs/NOTICE.txt
  11. +174 −0 dtd/catalog.dtd
  12. +10 −0 dtd/catalog.xml
  13. +27 −0 dtd/entities/DBNLspecial.ent
  14. +100 −0 dtd/entities/docs.ent
  15. +127 −0 dtd/entities/xhtml1-lat1.ent
  16. +62 −0 dtd/entities/xhtml1-special.ent
  17. +155 −0 dtd/entities/xhtml1-symbol.ent
  18. BIN dtd/teixlite.dtd
  19. +22 −0 in/Millioenenstudien.xml
  20. +6,304 −0 in/mult001mill01_01.xml
  21. BIN in/mult001mill01_01_tpg.gif
  22. BIN in/mult001mill01ill01.gif
  23. BIN in/mult001mill01ill02.gif
  24. BIN in/mult001mill01ill03.gif
  25. BIN in/mult001mill01ill04.gif
  26. BIN in/mult001mill01ill05.gif
  27. BIN in/mult001mill01ill06.gif
  28. BIN in/mult001mill01ill07.gif
  29. BIN lib/calabash-0.9.32.jar
  30. BIN lib/calabash-0.9.34.jar
  31. BIN lib/calabash-0.9.35.jar
  32. +19 −0 lib/epubcheck-1.2/COPYING.txt
  33. +61 −0 lib/epubcheck-1.2/README.txt
  34. BIN lib/epubcheck-1.2/epubcheck-1.2.jar
  35. +12 −0 lib/epubcheck-1.2/jing_license.txt
  36. BIN lib/epubcheck-1.2/lib/jing.jar
  37. BIN lib/epubcheck-1.2/lib/saxon.jar
  38. BIN lib/grtjn-xproc-utils.jar
  39. +8 −0 lib/grtjn-xproc-utils.xml
  40. BIN lib/lib/commons-codec-1.3.jar
  41. BIN lib/lib/commons-httpclient-3.1.jar
  42. BIN lib/lib/commons-io-1.3.1.jar
  43. BIN lib/lib/commons-logging-1.1.1.jar
  44. BIN lib/lib/saxon9he.jar
  45. BIN lib/resolver.jar
  46. +34 −0 logging.properties
  47. +40 −0 run.bat
  48. +19 −0 src/build.bat
  49. BIN src/com/xmlcalabash/extensions/fileutils.xpl
  50. BIN src/com/xmlcalabash/extensions/library-1.0.xpl
  51. +27 −0 src/com/xmlcalabash/extensions/osutils.xpl
  52. +52 −0 src/nl/grtjn/xproc/ebook/assign-page-numbers.xsl
  53. +269 −0 src/nl/grtjn/xproc/ebook/build-hierarchy.xsl
  54. +36 −0 src/nl/grtjn/xproc/ebook/cleanup-notes.xsl
  55. +97 −0 src/nl/grtjn/xproc/ebook/generate-index.xsl
  56. +51 −0 src/nl/grtjn/xproc/ebook/generate-list-of-illustrations.xsl
  57. +51 −0 src/nl/grtjn/xproc/ebook/generate-list-of-tables.xsl
  58. +59 −0 src/nl/grtjn/xproc/ebook/generate-notes-page.xsl
  59. +84 −0 src/nl/grtjn/xproc/ebook/generate-table-of-contents.xsl
  60. +13 −0 src/nl/grtjn/xproc/ebook/input-adapters/html/get-back-matter.xsl
  61. +13 −0 src/nl/grtjn/xproc/ebook/input-adapters/html/get-front-matter.xsl
  62. +13 −0 src/nl/grtjn/xproc/ebook/input-adapters/html/get-main-matter.xsl
  63. +15 −0 src/nl/grtjn/xproc/ebook/input-adapters/html/get-metadata.xsl
  64. +116 −0 src/nl/grtjn/xproc/ebook/input-adapters/input-adapters.xpl
  65. +13 −0 src/nl/grtjn/xproc/ebook/input-adapters/tei/get-back-matter.xsl
  66. +145 −0 src/nl/grtjn/xproc/ebook/input-adapters/tei/get-front-matter.xsl
  67. +183 −0 src/nl/grtjn/xproc/ebook/input-adapters/tei/get-main-matter.xsl
  68. +213 −0 src/nl/grtjn/xproc/ebook/input-adapters/tei/get-metadata.xsl
  69. +36 −0 src/nl/grtjn/xproc/ebook/input-adapters/wordml/get-back-matter.xsl
  70. +36 −0 src/nl/grtjn/xproc/ebook/input-adapters/wordml/get-front-matter.xsl
  71. +36 −0 src/nl/grtjn/xproc/ebook/input-adapters/wordml/get-main-matter.xsl
  72. +36 −0 src/nl/grtjn/xproc/ebook/input-adapters/wordml/get-metadata.xsl
  73. +686 −0 src/nl/grtjn/xproc/ebook/main.xpl
  74. +76 −0 src/nl/grtjn/xproc/ebook/mark-specials.xsl
  75. +497 −0 src/nl/grtjn/xproc/ebook/output-adapters/epub/epub.xpl
  76. +129 −0 src/nl/grtjn/xproc/ebook/output-adapters/epub/generate-manifest.xsl
  77. +135 −0 src/nl/grtjn/xproc/ebook/output-adapters/epub/generate-navigation.xsl
  78. +145 −0 src/nl/grtjn/xproc/ebook/output-adapters/epub/generate-page.xsl
  79. +48 −0 src/nl/grtjn/xproc/ebook/output-adapters/output-adapters.xpl
  80. +161 −0 src/nl/grtjn/xproc/ebook/paginate.xsl
  81. +93 −0 src/nl/grtjn/xproc/ebook/resolve-links.xsl
  82. BIN src/nl/grtjn/xproc/util/osutils/SysInfo.class
  83. +62 −0 src/nl/grtjn/xproc/util/osutils/SysInfo.java
  84. +631 −0 src/nl/grtjn/xproc/util/utils.xpl
  85. +37 −0 style/bare-template.xml
  86. +1 −0 style/dbnl/groot.css
  87. +1 −0 style/dbnl/ie6.css
  88. +1 −0 style/dbnl/ie7.css
  89. +1 −0 style/dbnl/lightbox.css
  90. +1 −0 style/dbnl/main.css
  91. +1 −0 style/dbnl/nav.css
  92. +1 −0 style/dbnl/normaal.css
  93. +1 −0 style/dbnl/orga.css
  94. +48 −0 style/dbnl/print.css
  95. +1 −0 style/dbnl/tabs.css
  96. +1 −0 style/dbnl/tekst.css
  97. +35 −0 style/default/default.css
  98. +50 −0 style/default/input-template-en.xml
  99. +50 −0 style/default/input-template-nl.xml
  100. +127 −0 style/generic/epub.css
  101. BIN style/medieval/Google Web Font MedievalSharp v3.eot
  102. BIN style/medieval/Google Web Font MedievalSharp v3.otf
  103. BIN style/medieval/Google Web Font MedievalSharp v3.ttf
  104. BIN style/medieval/Google Web Font MedievalSharp v3.woff
  105. BIN style/medieval/MinionPro-Regular.otf
  106. BIN style/medieval/VINERITC.TTF
  107. BIN style/medieval/illum_a.gif
  108. BIN style/medieval/illum_b.gif
  109. BIN style/medieval/illum_c.gif
  110. BIN style/medieval/illum_d.gif
  111. BIN style/medieval/illum_e.gif
  112. BIN style/medieval/illum_f.gif
  113. BIN style/medieval/illum_g.gif
  114. BIN style/medieval/illum_h.gif
  115. BIN style/medieval/illum_i.gif
  116. BIN style/medieval/illum_j.gif
  117. BIN style/medieval/illum_k.gif
  118. BIN style/medieval/illum_l.gif
  119. BIN style/medieval/illum_m.gif
  120. BIN style/medieval/illum_n.gif
  121. BIN style/medieval/illum_o.gif
  122. BIN style/medieval/illum_p.gif
  123. BIN style/medieval/illum_q.gif
  124. BIN style/medieval/illum_r.gif
  125. BIN style/medieval/illum_s.gif
  126. BIN style/medieval/illum_t.gif
  127. BIN style/medieval/illum_u.gif
  128. BIN style/medieval/illum_v.gif
  129. BIN style/medieval/illum_w.gif
  130. BIN style/medieval/illum_x.gif
  131. BIN style/medieval/illum_y.gif
  132. BIN style/medieval/illum_z.gif
  133. +191 −0 style/medieval/medieval.css
  134. BIN style/medieval/parchment_paper_seamless_pattern.jpg
  135. BIN style/medieval/vineritc.otf
  136. +118 −0 style/styles.xml
View
6 .classpath
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path=""/>
+ <classpathentry exported="true" kind="lib" path="lib/calabash-0.9.35.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
17 .project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>XmlHolland CodeChallenge</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
4 CatalogManager.properties
@@ -0,0 +1,4 @@
+catalogs=dtd/catalog.xml
+relative-catalogs=1
+static-catalog=1
+verbosity=1
View
68 INSTALL.txt
@@ -0,0 +1,68 @@
+
+The XProc E-Book Processor is an end-user application. The distribution therefore includes all necessary dependencies, apart from Java Run-Time.
+
+Requirements
+------------
+- Java Run-Time 1.5 or higher
+
+Included (Java) packages
+------------------------
+Located under 'lib' folder:
+- XMLCalabash 0.9.35
+ - Saxon-HE 9.3.0.4J (required by XMLCalabash)
+ - Apache Commons Codes 1.3 (required by XMLCalabash)
+ - Apache Commons Httpclient 3.1 (required by XMLCalabash)
+ - Apache Commons IO 1.3.1 (required by XMLCalabash)
+ - Apache Commons Logging 1.1.1 (required by XMLCalabash)
+- Epubcheck 1.2 (for ePub validation)
+ - Saxon 6.5.5 (required by Epubcheck)
+ - Jing version 20091111 (required by Epubcheck)
+- Apache XML Commons Resolver 1.2 (for local DTD resolving)
+
+Also included is an XProc extension package:
+- grtjn-xproc-utils (for the extension step ut:sys-info, source available under 'src' folder)
+
+Installation
+------------
+- Unpack the distribution package to a suitable location.
+- Make sure 'java' is available from the command-line (by adding it to the PATH environment variable)
+- Open a command-box in the root of where you unpacked the E-Book Processor
+- Run the following command-line:
+
+ java -cp .;lib\resolver.jar;lib\calabash-0.9.35.jar;lib\grtjn-xproc-utils.jar -Dcom.xmlcalabash.phonehome=false -Djava.util.logging.config.file=logging.properties com.xmlcalabash.drivers.Main -D -E org.apache.xml.resolver.tools.CatalogResolver -U org.apache.xml.resolver.tools.CatalogResolver -c lib/grtjn-xproc-utils.xml -i source=in/mult001mill01_01.xml src\nl\grtjn\xproc\ebook\main.xpl
+
+- This should produce an epub file of the example file 'Millioenenstudien' by 'Multatuli'. It should be written as 'out/mult001mill01_01-default.epub'.
+- Windows/DOS users can also use the 'run.bat' file. To do the same as above, call it as follows:
+
+ run.bat in/mult001mill01_01.xml
+
+- Call run.bat without parameters for further usage.
+
+DTD references to internet
+--------------------------
+- If internet access goes through a Proxy server, you may need to add the following parameters to the command-line, just after 'java'. Make sure to replace '...' with suitable values. User and Password can be left out if not applicable:
+
+ -Dhttp.proxyHost=... -Dhttp.proxyPort=... -Dhttp.proxyUser=... -Dhttp.proxyPassword...
+
+- Internet access is usually necessary to access DTDs that are referenced from DOCTYPEs using HTTP references.
+- You could also put the dtd with all its modules in the 'dtd' folder, and add an entry to the 'catalog.xml' file in the same directory.
+
+Other resources
+---------------
+- docs/
+ - Contains the documentations, including: this file, notices, license, buglist, and a readme.
+- etc/
+ - Contains anything related to styling and templating. The application comes with three styles: 'default', 'dbnl', and 'medieval'.
+- in/
+ - Contains a TEI 2 encoded XML file containing the booklet 'Millioenenstudien' by 'Multatuli'. It was the XProc challenge example file
+- log/
+ - A 'run.log' file will be written to this folder on each run. See 'logging.properties' for details.
+ - Debug files will be written to this folder as well if debug is activated by passing in 'debug=true' at the end of the command-line
+- src/
+ - Contains all XProc, XSLT, and Java logic used in this application.
+- tmp/
+ - Is used to build up the contents of each epub file, and will be cleared on each run.
+
+Already mentioned:
+- The 'dtd' folder, containing TEI dtd, and appropriate catalog
+- The 'lib' folder, containing all necessary (Java) packages to run the application
View
BIN TEI to ePub.pptx
Binary file not shown.
View
BIN XML Holland Code Challenge.docx
Binary file not shown.
View
BIN dist/xproc-ebook-conv-1.0.zip
Binary file not shown.
View
10 docs/BUGS.txt
@@ -0,0 +1,10 @@
+
+Bugs, and known issues:
+- The xhtml is written with indentation when debug is activated, but that gives some funky results in page ref layout in for instance the index.
+- No elegant error handling when specifying non-existing files for input, styles or template.
+- Inline footnotes aren't optimally handled yet. Blockquotes inside footnotes result in invalid XHTML (though epub viewers most likely won't complain)
+
+Future wishes:
+- Outputting of PDF.
+- Composing of parts and sections based on input fragments (e.g. high granular input control from template).
+- Footnotes as sidebars or gathered at bottom of page (as far as possible in epub)
View
339 docs/GPL.txt
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
View
15 docs/NOTICE.txt
@@ -0,0 +1,15 @@
+Copyright (C) 2011 Geert Josten
+All rights reserved.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
View
174 dtd/catalog.dtd
@@ -0,0 +1,174 @@
+<!-- $Id: catalog.dtd,v 1.14 2005/04/13 20:47:06 ndw Exp $ -->
+
+<!ENTITY % pubIdChars "CDATA">
+<!ENTITY % publicIdentifier "%pubIdChars;">
+<!ENTITY % partialPublicIdentifier "%pubIdChars;">
+<!ENTITY % uriReference "CDATA">
+<!ENTITY % string "CDATA">
+<!ENTITY % systemOrPublic "(system|public)">
+
+<!ENTITY % p "">
+<!ENTITY % s "">
+<!ENTITY % nsdecl "xmlns%s;">
+
+<!ENTITY % catalog "%p;catalog">
+<!ENTITY % public "%p;public">
+<!ENTITY % system "%p;system">
+<!ENTITY % uri "%p;uri">
+<!ENTITY % rewriteSystem "%p;rewriteSystem">
+<!ENTITY % rewriteURI "%p;rewriteURI">
+<!ENTITY % systemSuffix "%p;systemSuffix">
+<!ENTITY % uriSuffix "%p;uriSuffix">
+<!ENTITY % delegatePublic "%p;delegatePublic">
+<!ENTITY % delegateSystem "%p;delegateSystem">
+<!ENTITY % delegateURI "%p;delegateURI">
+<!ENTITY % nextCatalog "%p;nextCatalog">
+<!ENTITY % group "%p;group">
+
+<!ENTITY % local.catalog.mix "">
+<!ENTITY % local.catalog.attribs "">
+
+<!ELEMENT %catalog; (%public;|%system;|%uri;
+ |%rewriteSystem;|%rewriteURI;
+ |%systemSuffix;|%uriSuffix;
+ |%delegatePublic;|%delegateSystem;|%delegateURI;
+ |%nextCatalog;|%group; %local.catalog.mix;)+>
+<!ATTLIST %catalog;
+ %nsdecl; %uriReference; #FIXED
+ 'urn:oasis:names:tc:entity:xmlns:xml:catalog'
+ id ID #IMPLIED
+ prefer %systemOrPublic; #IMPLIED
+ xml:base %uriReference; #IMPLIED
+ %local.catalog.attribs;
+>
+
+<!ENTITY % local.public.attribs "">
+
+<!ELEMENT %public; EMPTY>
+<!ATTLIST %public;
+ id ID #IMPLIED
+ publicId %publicIdentifier; #REQUIRED
+ uri %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.public.attribs;
+>
+
+<!ENTITY % local.system.attribs "">
+
+<!ELEMENT %system; EMPTY>
+<!ATTLIST %system;
+ id ID #IMPLIED
+ systemId %string; #REQUIRED
+ uri %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.system.attribs;
+>
+
+<!ENTITY % local.uri.attribs "">
+
+<!ELEMENT %uri; EMPTY>
+<!ATTLIST %uri;
+ id ID #IMPLIED
+ name %string; #REQUIRED
+ uri %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.uri.attribs;
+>
+
+<!ENTITY % local.rewriteSystem.attribs "">
+
+<!ELEMENT %rewriteSystem; EMPTY>
+<!ATTLIST %rewriteSystem;
+ id ID #IMPLIED
+ systemIdStartString %string; #REQUIRED
+ rewritePrefix %string; #REQUIRED
+ %local.rewriteSystem.attribs;
+>
+
+<!ENTITY % local.rewriteURI.attribs "">
+
+<!ELEMENT %rewriteURI; EMPTY>
+<!ATTLIST %rewriteURI;
+ id ID #IMPLIED
+ uriStartString %string; #REQUIRED
+ rewritePrefix %string; #REQUIRED
+ %local.rewriteURI.attribs;
+>
+
+<!ENTITY % local.systemSuffix.attribs "">
+
+<!ELEMENT %systemSuffix; EMPTY>
+<!ATTLIST %systemSuffix;
+ id ID #IMPLIED
+ systemIdSuffix %string; #REQUIRED
+ uri %string; #REQUIRED
+ %local.systemSuffix.attribs;
+>
+
+<!ENTITY % local.uriSuffix.attribs "">
+
+<!ELEMENT %uriSuffix; EMPTY>
+<!ATTLIST %uriSuffix;
+ id ID #IMPLIED
+ uriSuffix %string; #REQUIRED
+ uri %string; #REQUIRED
+ %local.uriSuffix.attribs;
+>
+
+<!ENTITY % local.delegatePublic.attribs "">
+
+<!ELEMENT %delegatePublic; EMPTY>
+<!ATTLIST %delegatePublic;
+ id ID #IMPLIED
+ publicIdStartString %partialPublicIdentifier; #REQUIRED
+ catalog %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.delegatePublic.attribs;
+>
+
+<!ENTITY % local.delegateSystem.attribs "">
+
+<!ELEMENT %delegateSystem; EMPTY>
+<!ATTLIST %delegateSystem;
+ id ID #IMPLIED
+ systemIdStartString %string; #REQUIRED
+ catalog %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.delegateSystem.attribs;
+>
+
+<!ENTITY % local.delegateURI.attribs "">
+
+<!ELEMENT %delegateURI; EMPTY>
+<!ATTLIST %delegateURI;
+ id ID #IMPLIED
+ uriStartString %string; #REQUIRED
+ catalog %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.delegateURI.attribs;
+>
+
+<!ENTITY % local.nextCatalog.attribs "">
+
+<!ELEMENT %nextCatalog; EMPTY>
+<!ATTLIST %nextCatalog;
+ id ID #IMPLIED
+ catalog %uriReference; #REQUIRED
+ xml:base %uriReference; #IMPLIED
+ %local.nextCatalog.attribs;
+>
+
+<!ENTITY % local.group.mix "">
+<!ENTITY % local.group.attribs "">
+
+<!ELEMENT %group; (%public;|%system;|%uri;
+ |%rewriteSystem;|%rewriteURI;
+ |%systemSuffix;|%uriSuffix;
+ |%delegatePublic;|%delegateSystem;|%delegateURI;
+ |%nextCatalog; %local.group.mix;)+>
+<!ATTLIST %group;
+ id ID #IMPLIED
+ prefer %systemOrPublic; #IMPLIED
+ xml:base %uriReference; #IMPLIED
+ %local.group.attribs;
+>
View
10 dtd/catalog.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN" "dtd/catalog.dtd">
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+
+ <group prefer="system">
+ <system systemId="http://www.dbnl.org/xml/dtd/teixlite.dtd"
+ uri="teixlite.dtd"/>
+ </group>
+
+</catalog>
View
27 dtd/entities/DBNLspecial.ent
@@ -0,0 +1,27 @@
+<!-- DBNL special characters for HTML -->
+
+<!-- Character entity set. Typical invocation:
+ <!ENTITY % DBNLsymbol PUBLIC
+ "-//DBNL//ENTITIES Special//EN//HTML">
+ %DBNLspecial; -->
+
+<!ENTITY unicode "[unicode]"><!-- Unicode note -->
+<!ENTITY schwa "[schwa ]"><!-- Schwa -->
+<!ENTITY aolduml "[aolduml]"><!-- a Old Umlaut -->
+<!ENTITY eolduml "[eolduml]"><!-- e Old Umlaut -->
+<!ENTITY oolduml "[oolduml]"><!-- o Old Umlaut -->
+<!ENTITY uolduml "[uolduml]"><!-- u Old Umlaut -->
+<!ENTITY Aolduml "[Aolduml]"><!-- A Old Umlaut -->
+<!ENTITY Eolduml "[Eolduml]"><!-- E Old Umlaut -->
+<!ENTITY Oolduml "[Oolduml]"><!-- O Old Umlaut -->
+<!ENTITY Uolduml "[Uolduml]"><!-- U Old Umlaut -->
+
+<!-- HHV: Vertaal &Unnnn entities naar XML entities -->
+
+<!ENTITY U0111 "&#x00111;">
+<!ENTITY U0113 "&#x00113;">
+<!ENTITY U0119 "&#x00119;">
+<!ENTITY U014B "&#x0014B;">
+<!ENTITY U014F "&#x0014F;">
+<!ENTITY U016B "&#x0016B;">
+<!ENTITY U016F "&#x0016F;">
View
100 dtd/entities/docs.ent
@@ -0,0 +1,100 @@
+<!NOTATION HTML PUBLIC "-//Russell O'Connor//NOTATION HTML 4.01 Architecture//EN">
+<!ENTITY mult001idee01_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY mult001idee02_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY mult001idee03_01 SYSTEM "http://www.dbln.org/" NDATA HTML>
+<!ENTITY mult001idee04_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY mult001idee05_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY mult001idee06_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY mult001idee07_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY mielot.jpg SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY spiegel4.jpg SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc02 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc03 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc04 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc05 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc06 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc07 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc08 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc09 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc10 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc11 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc12 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY bild002gesc13 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY leeu027alle03_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog01_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog02_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog03_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog04_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog05_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog06_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog07_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog08_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog09_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog10_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog11_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog12_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog13_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog14_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog15_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog16_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog17_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog18_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog19_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog20_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog21_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog22_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog23_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog24_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog25_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY aa__001biog26_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie01_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie02_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie03_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie04_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie05_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie06_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie07_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie08_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie09_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie10_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie11_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie12_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie13_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie14_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie15_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie16_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY groo001brie17_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz03_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz04_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz05_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz06_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz07_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz08_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz09_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY woes002verz10_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv01_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv02_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv03_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv04_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv05_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv06_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv07_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv08_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv09_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv10_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv11_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv12_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv13_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv14_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv15_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv16_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv17_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv18_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv19_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv20_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv21_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY huyg003oeuv22_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY _alg008alge01_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY _alg008alge02_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
+<!ENTITY _alg008alge03_01 SYSTEM "http://www.dbnl.org/" NDATA HTML>
View
127 dtd/entities/xhtml1-lat1.ent
@@ -0,0 +1,127 @@
+
+<!--
+ File xhtml1-lat1.ent produced by the XSL script entities.xsl
+ from input data in unicode.xml.
+
+ Please report any errors to David Carlisle
+ via the public W3C list www-math@w3.org.
+
+ The numeric character values assigned to each entity
+ (should) match the Unicode assignments in Unicode 4.0.
+
+-->
+
+
+<!--
+ Version: $Id: xhtml1-lat1.ent,v 1.2 2003/12/08 15:14:46 davidc Exp $
+
+
+ System identifier: http://www.w3.org/2003/entities/xhtml1/xhtml1-lat1.ent
+
+ The system identifier may be changed to suit local requirements.
+
+ Typical invocation:
+
+ <!ENTITY % xhtml1-lat1 SYSTEM
+ "http://www.w3.org/2003/entities/xhtml1/xhtml1-lat1.ent"
+ >
+ %xhtml1-lat1;
+
+-->
+
+<!ENTITY Aacute "&#x000C1;" ><!--LATIN CAPITAL LETTER A WITH ACUTE -->
+<!ENTITY aacute "&#x000E1;" ><!--LATIN SMALL LETTER A WITH ACUTE -->
+<!ENTITY Acirc "&#x000C2;" ><!--LATIN CAPITAL LETTER A WITH CIRCUMFLEX -->
+<!ENTITY acirc "&#x000E2;" ><!--LATIN SMALL LETTER A WITH CIRCUMFLEX -->
+<!ENTITY acute "&#x000B4;" ><!--ACUTE ACCENT -->
+<!ENTITY AElig "&#x000C6;" ><!--LATIN CAPITAL LETTER AE -->
+<!ENTITY aelig "&#x000E6;" ><!--LATIN SMALL LETTER AE -->
+<!ENTITY Agrave "&#x000C0;" ><!--LATIN CAPITAL LETTER A WITH GRAVE -->
+<!ENTITY agrave "&#x000E0;" ><!--LATIN SMALL LETTER A WITH GRAVE -->
+<!ENTITY Aring "&#x000C5;" ><!--LATIN CAPITAL LETTER A WITH RING ABOVE -->
+<!ENTITY aring "&#x000E5;" ><!--LATIN SMALL LETTER A WITH RING ABOVE -->
+<!ENTITY Atilde "&#x000C3;" ><!--LATIN CAPITAL LETTER A WITH TILDE -->
+<!ENTITY atilde "&#x000E3;" ><!--LATIN SMALL LETTER A WITH TILDE -->
+<!ENTITY Auml "&#x000C4;" ><!--LATIN CAPITAL LETTER A WITH DIAERESIS -->
+<!ENTITY auml "&#x000E4;" ><!--LATIN SMALL LETTER A WITH DIAERESIS -->
+<!ENTITY brvbar "&#x000A6;" ><!--BROKEN BAR -->
+<!ENTITY Ccedil "&#x000C7;" ><!--LATIN CAPITAL LETTER C WITH CEDILLA -->
+<!ENTITY ccedil "&#x000E7;" ><!--LATIN SMALL LETTER C WITH CEDILLA -->
+<!ENTITY cedil "&#x000B8;" ><!--CEDILLA -->
+<!ENTITY cent "&#x000A2;" ><!--CENT SIGN -->
+<!ENTITY copy "&#x000A9;" ><!--COPYRIGHT SIGN -->
+<!ENTITY curren "&#x000A4;" ><!--CURRENCY SIGN -->
+<!ENTITY deg "&#x000B0;" ><!--DEGREE SIGN -->
+<!ENTITY divide "&#x000F7;" ><!--DIVISION SIGN -->
+<!ENTITY Eacute "&#x000C9;" ><!--LATIN CAPITAL LETTER E WITH ACUTE -->
+<!ENTITY eacute "&#x000E9;" ><!--LATIN SMALL LETTER E WITH ACUTE -->
+<!ENTITY Ecirc "&#x000CA;" ><!--LATIN CAPITAL LETTER E WITH CIRCUMFLEX -->
+<!ENTITY ecirc "&#x000EA;" ><!--LATIN SMALL LETTER E WITH CIRCUMFLEX -->
+<!ENTITY Egrave "&#x000C8;" ><!--LATIN CAPITAL LETTER E WITH GRAVE -->
+<!ENTITY egrave "&#x000E8;" ><!--LATIN SMALL LETTER E WITH GRAVE -->
+<!ENTITY ETH "&#x000D0;" ><!--LATIN CAPITAL LETTER ETH -->
+<!ENTITY eth "&#x000F0;" ><!--LATIN SMALL LETTER ETH -->
+<!ENTITY Euml "&#x000CB;" ><!--LATIN CAPITAL LETTER E WITH DIAERESIS -->
+<!ENTITY euml "&#x000EB;" ><!--LATIN SMALL LETTER E WITH DIAERESIS -->
+<!ENTITY frac12 "&#x000BD;" ><!--VULGAR FRACTION ONE HALF -->
+<!ENTITY frac14 "&#x000BC;" ><!--VULGAR FRACTION ONE QUARTER -->
+<!ENTITY frac34 "&#x000BE;" ><!--VULGAR FRACTION THREE QUARTERS -->
+<!ENTITY Iacute "&#x000CD;" ><!--LATIN CAPITAL LETTER I WITH ACUTE -->
+<!ENTITY iacute "&#x000ED;" ><!--LATIN SMALL LETTER I WITH ACUTE -->
+<!ENTITY Icirc "&#x000CE;" ><!--LATIN CAPITAL LETTER I WITH CIRCUMFLEX -->
+<!ENTITY icirc "&#x000EE;" ><!--LATIN SMALL LETTER I WITH CIRCUMFLEX -->
+<!ENTITY iexcl "&#x000A1;" ><!--INVERTED EXCLAMATION MARK -->
+<!ENTITY Igrave "&#x000CC;" ><!--LATIN CAPITAL LETTER I WITH GRAVE -->
+<!ENTITY igrave "&#x000EC;" ><!--LATIN SMALL LETTER I WITH GRAVE -->
+<!ENTITY iquest "&#x000BF;" ><!--INVERTED QUESTION MARK -->
+<!ENTITY Iuml "&#x000CF;" ><!--LATIN CAPITAL LETTER I WITH DIAERESIS -->
+<!ENTITY iuml "&#x000EF;" ><!--LATIN SMALL LETTER I WITH DIAERESIS -->
+<!ENTITY laquo "&#x000AB;" ><!--LEFT-POINTING DOUBLE ANGLE QUOTATION MARK -->
+<!ENTITY macr "&#x000AF;" ><!--MACRON -->
+<!ENTITY micro "&#x000B5;" ><!--MICRO SIGN -->
+<!ENTITY middot "&#x000B7;" ><!--MIDDLE DOT -->
+<!ENTITY nbsp "&#x000A0;" ><!--NO-BREAK SPACE -->
+<!ENTITY not "&#x000AC;" ><!--NOT SIGN -->
+<!ENTITY Ntilde "&#x000D1;" ><!--LATIN CAPITAL LETTER N WITH TILDE -->
+<!ENTITY ntilde "&#x000F1;" ><!--LATIN SMALL LETTER N WITH TILDE -->
+<!ENTITY Oacute "&#x000D3;" ><!--LATIN CAPITAL LETTER O WITH ACUTE -->
+<!ENTITY oacute "&#x000F3;" ><!--LATIN SMALL LETTER O WITH ACUTE -->
+<!ENTITY Ocirc "&#x000D4;" ><!--LATIN CAPITAL LETTER O WITH CIRCUMFLEX -->
+<!ENTITY ocirc "&#x000F4;" ><!--LATIN SMALL LETTER O WITH CIRCUMFLEX -->
+<!ENTITY Ograve "&#x000D2;" ><!--LATIN CAPITAL LETTER O WITH GRAVE -->
+<!ENTITY ograve "&#x000F2;" ><!--LATIN SMALL LETTER O WITH GRAVE -->
+<!ENTITY ordf "&#x000AA;" ><!--FEMININE ORDINAL INDICATOR -->
+<!ENTITY ordm "&#x000BA;" ><!--MASCULINE ORDINAL INDICATOR -->
+<!ENTITY Oslash "&#x000D8;" ><!--LATIN CAPITAL LETTER O WITH STROKE -->
+<!ENTITY oslash "&#x000F8;" ><!--LATIN SMALL LETTER O WITH STROKE -->
+<!ENTITY Otilde "&#x000D5;" ><!--LATIN CAPITAL LETTER O WITH TILDE -->
+<!ENTITY otilde "&#x000F5;" ><!--LATIN SMALL LETTER O WITH TILDE -->
+<!ENTITY Ouml "&#x000D6;" ><!--LATIN CAPITAL LETTER O WITH DIAERESIS -->
+<!ENTITY ouml "&#x000F6;" ><!--LATIN SMALL LETTER O WITH DIAERESIS -->
+<!ENTITY para "&#x000B6;" ><!--PILCROW SIGN -->
+<!ENTITY plusmn "&#x000B1;" ><!--PLUS-MINUS SIGN -->
+<!ENTITY pound "&#x000A3;" ><!--POUND SIGN -->
+<!ENTITY raquo "&#x000BB;" ><!--RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK -->
+<!ENTITY reg "&#x000AE;" ><!--REGISTERED SIGN -->
+<!ENTITY sect "&#x000A7;" ><!--SECTION SIGN -->
+<!ENTITY shy "&#x000AD;" ><!--SOFT HYPHEN -->
+<!ENTITY sup1 "&#x000B9;" ><!--SUPERSCRIPT ONE -->
+<!ENTITY sup2 "&#x000B2;" ><!--SUPERSCRIPT TWO -->
+<!ENTITY sup3 "&#x000B3;" ><!--SUPERSCRIPT THREE -->
+<!ENTITY szlig "&#x000DF;" ><!--LATIN SMALL LETTER SHARP S -->
+<!ENTITY THORN "&#x000DE;" ><!--LATIN CAPITAL LETTER THORN -->
+<!ENTITY thorn "&#x000FE;" ><!--LATIN SMALL LETTER THORN -->
+<!ENTITY times "&#x000D7;" ><!--MULTIPLICATION SIGN -->
+<!ENTITY Uacute "&#x000DA;" ><!--LATIN CAPITAL LETTER U WITH ACUTE -->
+<!ENTITY uacute "&#x000FA;" ><!--LATIN SMALL LETTER U WITH ACUTE -->
+<!ENTITY Ucirc "&#x000DB;" ><!--LATIN CAPITAL LETTER U WITH CIRCUMFLEX -->
+<!ENTITY ucirc "&#x000FB;" ><!--LATIN SMALL LETTER U WITH CIRCUMFLEX -->
+<!ENTITY Ugrave "&#x000D9;" ><!--LATIN CAPITAL LETTER U WITH GRAVE -->
+<!ENTITY ugrave "&#x000F9;" ><!--LATIN SMALL LETTER U WITH GRAVE -->
+<!ENTITY uml "&#x000A8;" ><!--DIAERESIS -->
+<!ENTITY Uuml "&#x000DC;" ><!--LATIN CAPITAL LETTER U WITH DIAERESIS -->
+<!ENTITY uuml "&#x000FC;" ><!--LATIN SMALL LETTER U WITH DIAERESIS -->
+<!ENTITY Yacute "&#x000DD;" ><!--LATIN CAPITAL LETTER Y WITH ACUTE -->
+<!ENTITY yacute "&#x000FD;" ><!--LATIN SMALL LETTER Y WITH ACUTE -->
+<!ENTITY yen "&#x000A5;" ><!--YEN SIGN -->
+<!ENTITY yuml "&#x000FF;" ><!--LATIN SMALL LETTER Y WITH DIAERESIS -->
View
62 dtd/entities/xhtml1-special.ent
@@ -0,0 +1,62 @@
+
+<!--
+ File xhtml1-special.ent produced by the XSL script entities.xsl
+ from input data in unicode.xml.
+
+ Please report any errors to David Carlisle
+ via the public W3C list www-math@w3.org.
+
+ The numeric character values assigned to each entity
+ (should) match the Unicode assignments in Unicode 4.0.
+
+-->
+
+
+<!--
+ Version: $Id: xhtml1-special.ent,v 1.2 2003/12/08 15:14:46 davidc Exp $
+
+
+ System identifier: http://www.w3.org/2003/entities/xhtml1/xhtml1-special.ent
+
+ The system identifier may be changed to suit local requirements.
+
+ Typical invocation:
+
+ <!ENTITY % xhtml1-special SYSTEM
+ "http://www.w3.org/2003/entities/xhtml1/xhtml1-special.ent"
+ >
+ %xhtml1-special;
+
+-->
+
+<!ENTITY bdquo "&#x0201E;" ><!--DOUBLE LOW-9 QUOTATION MARK -->
+<!ENTITY circ "&#x002C6;" ><!--MODIFIER LETTER CIRCUMFLEX ACCENT -->
+<!ENTITY Dagger "&#x02021;" ><!--DOUBLE DAGGER -->
+<!ENTITY dagger "&#x02020;" ><!--DAGGER -->
+<!ENTITY emsp "&#x02003;" ><!--EM SPACE -->
+<!ENTITY ensp "&#x02002;" ><!--EN SPACE -->
+<!ENTITY euro "&#x020AC;" ><!--EURO SIGN -->
+<!ENTITY gt "&#x0003E;" ><!--GREATER-THAN SIGN -->
+<!ENTITY ldquo "&#x0201C;" ><!--LEFT DOUBLE QUOTATION MARK -->
+<!ENTITY lrm "&#x0200E;" ><!--LEFT-TO-RIGHT MARK -->
+<!ENTITY lsaquo "&#x02039;" ><!--SINGLE LEFT-POINTING ANGLE QUOTATION MARK -->
+<!ENTITY lsquo "&#x02018;" ><!--LEFT SINGLE QUOTATION MARK -->
+<!ENTITY lt "&#38;#60;" ><!--LESS-THAN SIGN -->
+<!ENTITY mdash "&#x02014;" ><!--EM DASH -->
+<!ENTITY ndash "&#x02013;" ><!--EN DASH -->
+<!ENTITY OElig "&#x00152;" ><!--LATIN CAPITAL LIGATURE OE -->
+<!ENTITY oelig "&#x00153;" ><!--LATIN SMALL LIGATURE OE -->
+<!ENTITY permil "&#x02030;" ><!--PER MILLE SIGN -->
+<!ENTITY quot "&#x00022;" ><!--QUOTATION MARK -->
+<!ENTITY rdquo "&#x0201D;" ><!--RIGHT DOUBLE QUOTATION MARK -->
+<!ENTITY rlm "&#x0200F;" ><!--RIGHT-TO-LEFT MARK -->
+<!ENTITY rsaquo "&#x0203A;" ><!--SINGLE RIGHT-POINTING ANGLE QUOTATION MARK -->
+<!ENTITY rsquo "&#x02019;" ><!--RIGHT SINGLE QUOTATION MARK -->
+<!ENTITY sbquo "&#x0201A;" ><!--SINGLE LOW-9 QUOTATION MARK -->
+<!ENTITY Scaron "&#x00160;" ><!--LATIN CAPITAL LETTER S WITH CARON -->
+<!ENTITY scaron "&#x00161;" ><!--LATIN SMALL LETTER S WITH CARON -->
+<!ENTITY thinsp "&#x02009;" ><!--THIN SPACE -->
+<!ENTITY tilde "&#x002DC;" ><!--SMALL TILDE -->
+<!ENTITY Yuml "&#x00178;" ><!--LATIN CAPITAL LETTER Y WITH DIAERESIS -->
+<!ENTITY zwj "&#x0200D;" ><!--ZERO WIDTH JOINER -->
+<!ENTITY zwnj "&#x0200C;" ><!--ZERO WIDTH NON-JOINER -->
View
155 dtd/entities/xhtml1-symbol.ent
@@ -0,0 +1,155 @@
+
+<!--
+ File xhtml1-symbol.ent produced by the XSL script entities.xsl
+ from input data in unicode.xml.
+
+ Please report any errors to David Carlisle
+ via the public W3C list www-math@w3.org.
+
+ The numeric character values assigned to each entity
+ (should) match the Unicode assignments in Unicode 4.0.
+
+-->
+
+
+<!--
+ Version: $Id: xhtml1-symbol.ent,v 1.2 2003/12/08 15:14:46 davidc Exp $
+
+
+ System identifier: http://www.w3.org/2003/entities/xhtml1/xhtml1-symbol.ent
+
+ The system identifier may be changed to suit local requirements.
+
+ Typical invocation:
+
+ <!ENTITY % xhtml1-symbol SYSTEM
+ "http://www.w3.org/2003/entities/xhtml1/xhtml1-symbol.ent"
+ >
+ %xhtml1-symbol;
+
+-->
+
+<!ENTITY alefsym "&#x02135;" ><!--ALEF SYMBOL -->
+<!ENTITY Alpha "&#x00391;" ><!--GREEK CAPITAL LETTER ALPHA -->
+<!ENTITY alpha "&#x003B1;" ><!--GREEK SMALL LETTER ALPHA -->
+<!ENTITY and "&#x02227;" ><!--LOGICAL AND -->
+<!ENTITY ang "&#x02220;" ><!--ANGLE -->
+<!ENTITY asymp "&#x02248;" ><!--ALMOST EQUAL TO -->
+<!ENTITY Beta "&#x00392;" ><!--GREEK CAPITAL LETTER BETA -->
+<!ENTITY beta "&#x003B2;" ><!--GREEK SMALL LETTER BETA -->
+<!ENTITY bull "&#x02022;" ><!--BULLET -->
+<!ENTITY cap "&#x02229;" ><!--INTERSECTION -->
+<!ENTITY Chi "&#x003A7;" ><!--GREEK CAPITAL LETTER CHI -->
+<!ENTITY chi "&#x003C7;" ><!--GREEK SMALL LETTER CHI -->
+<!ENTITY clubs "&#x02663;" ><!--BLACK CLUB SUIT -->
+<!ENTITY cong "&#x02245;" ><!--APPROXIMATELY EQUAL TO -->
+<!ENTITY crarr "&#x021B5;" ><!--DOWNWARDS ARROW WITH CORNER LEFTWARDS -->
+<!ENTITY cup "&#x0222A;" ><!--UNION -->
+<!ENTITY dArr "&#x021D3;" ><!--DOWNWARDS DOUBLE ARROW -->
+<!ENTITY darr "&#x02193;" ><!--DOWNWARDS ARROW -->
+<!ENTITY Delta "&#x00394;" ><!--GREEK CAPITAL LETTER DELTA -->
+<!ENTITY delta "&#x003B4;" ><!--GREEK SMALL LETTER DELTA -->
+<!ENTITY diams "&#x02666;" ><!--BLACK DIAMOND SUIT -->
+<!ENTITY empty "&#x02205;" ><!--EMPTY SET -->
+<!ENTITY Epsilon "&#x00395;" ><!--GREEK CAPITAL LETTER EPSILON -->
+<!ENTITY epsilon "&#x003B5;" ><!--GREEK SMALL LETTER EPSILON -->
+<!ENTITY equiv "&#x02261;" ><!--IDENTICAL TO -->
+<!ENTITY Eta "&#x00397;" ><!--GREEK CAPITAL LETTER ETA -->
+<!ENTITY eta "&#x003B7;" ><!--GREEK SMALL LETTER ETA -->
+<!ENTITY exist "&#x02203;" ><!--THERE EXISTS -->
+<!ENTITY fnof "&#x00192;" ><!--LATIN SMALL LETTER F WITH HOOK -->
+<!ENTITY forall "&#x02200;" ><!--FOR ALL -->
+<!ENTITY frasl "&#x02044;" ><!--FRACTION SLASH -->
+<!ENTITY Gamma "&#x00393;" ><!--GREEK CAPITAL LETTER GAMMA -->
+<!ENTITY gamma "&#x003B3;" ><!--GREEK SMALL LETTER GAMMA -->
+<!ENTITY ge "&#x02265;" ><!--GREATER-THAN OR EQUAL TO -->
+<!ENTITY hArr "&#x021D4;" ><!--LEFT RIGHT DOUBLE ARROW -->
+<!ENTITY harr "&#x02194;" ><!--LEFT RIGHT ARROW -->
+<!ENTITY hearts "&#x02665;" ><!--BLACK HEART SUIT -->
+<!ENTITY hellip "&#x02026;" ><!--HORIZONTAL ELLIPSIS -->
+<!ENTITY image "&#x02111;" ><!--BLACK-LETTER CAPITAL I -->
+<!ENTITY infin "&#x0221E;" ><!--INFINITY -->
+<!ENTITY int "&#x0222B;" ><!--INTEGRAL -->
+<!ENTITY Iota "&#x00399;" ><!--GREEK CAPITAL LETTER IOTA -->
+<!ENTITY iota "&#x003B9;" ><!--GREEK SMALL LETTER IOTA -->
+<!ENTITY isin "&#x02208;" ><!--ELEMENT OF -->
+<!ENTITY Kappa "&#x0039A;" ><!--GREEK CAPITAL LETTER KAPPA -->
+<!ENTITY kappa "&#x003BA;" ><!--GREEK SMALL LETTER KAPPA -->
+<!ENTITY Lambda "&#x0039B;" ><!--GREEK CAPITAL LETTER LAMDA -->
+<!ENTITY lambda "&#x003BB;" ><!--GREEK SMALL LETTER LAMDA -->
+<!ENTITY lang "&#x02329;" ><!--LEFT-POINTING ANGLE BRACKET -->
+<!ENTITY lArr "&#x021D0;" ><!--LEFTWARDS DOUBLE ARROW -->
+<!ENTITY larr "&#x02190;" ><!--LEFTWARDS ARROW -->
+<!ENTITY lceil "&#x02308;" ><!--LEFT CEILING -->
+<!ENTITY le "&#x02264;" ><!--LESS-THAN OR EQUAL TO -->
+<!ENTITY lfloor "&#x0230A;" ><!--LEFT FLOOR -->
+<!ENTITY lowast "&#x02217;" ><!--ASTERISK OPERATOR -->
+<!ENTITY loz "&#x025CA;" ><!--LOZENGE -->
+<!ENTITY minus "&#x02212;" ><!--MINUS SIGN -->
+<!ENTITY Mu "&#x0039C;" ><!--GREEK CAPITAL LETTER MU -->
+<!ENTITY mu "&#x003BC;" ><!--GREEK SMALL LETTER MU -->
+<!ENTITY nabla "&#x02207;" ><!--NABLA -->
+<!ENTITY ne "&#x02260;" ><!--NOT EQUAL TO -->
+<!ENTITY ni "&#x0220B;" ><!--CONTAINS AS MEMBER -->
+<!ENTITY notin "&#x02209;" ><!--NOT AN ELEMENT OF -->
+<!ENTITY nsub "&#x02284;" ><!--NOT A SUBSET OF -->
+<!ENTITY Nu "&#x0039D;" ><!--GREEK CAPITAL LETTER NU -->
+<!ENTITY nu "&#x003BD;" ><!--GREEK SMALL LETTER NU -->
+<!ENTITY oline "&#x0203E;" ><!--OVERLINE -->
+<!ENTITY Omega "&#x003A9;" ><!--GREEK CAPITAL LETTER OMEGA -->
+<!ENTITY omega "&#x003C9;" ><!--GREEK SMALL LETTER OMEGA -->
+<!ENTITY Omicron "&#x0039F;" ><!--GREEK CAPITAL LETTER OMICRON -->
+<!ENTITY omicron "&#x003BF;" ><!--GREEK SMALL LETTER OMICRON -->
+<!ENTITY oplus "&#x02295;" ><!--CIRCLED PLUS -->
+<!ENTITY or "&#x02228;" ><!--LOGICAL OR -->
+<!ENTITY otimes "&#x02297;" ><!--CIRCLED TIMES -->
+<!ENTITY part "&#x02202;" ><!--PARTIAL DIFFERENTIAL -->
+<!ENTITY perp "&#x022A5;" ><!--UP TACK -->
+<!ENTITY Phi "&#x003A6;" ><!--GREEK CAPITAL LETTER PHI -->
+<!ENTITY phi "&#x003D5;" ><!--GREEK PHI SYMBOL -->
+<!ENTITY Pi "&#x003A0;" ><!--GREEK CAPITAL LETTER PI -->
+<!ENTITY pi "&#x003C0;" ><!--GREEK SMALL LETTER PI -->
+<!ENTITY piv "&#x003D6;" ><!--GREEK PI SYMBOL -->
+<!ENTITY Prime "&#x02033;" ><!--DOUBLE PRIME -->
+<!ENTITY prime "&#x02032;" ><!--PRIME -->
+<!ENTITY prod "&#x0220F;" ><!--N-ARY PRODUCT -->
+<!ENTITY prop "&#x0221D;" ><!--PROPORTIONAL TO -->
+<!ENTITY Psi "&#x003A8;" ><!--GREEK CAPITAL LETTER PSI -->
+<!ENTITY psi "&#x003C8;" ><!--GREEK SMALL LETTER PSI -->
+<!ENTITY radic "&#x0221A;" ><!--SQUARE ROOT -->
+<!ENTITY rang "&#x0232A;" ><!--RIGHT-POINTING ANGLE BRACKET -->
+<!ENTITY rArr "&#x021D2;" ><!--RIGHTWARDS DOUBLE ARROW -->
+<!ENTITY rarr "&#x02192;" ><!--RIGHTWARDS ARROW -->
+<!ENTITY rceil "&#x02309;" ><!--RIGHT CEILING -->
+<!ENTITY real "&#x0211C;" ><!--BLACK-LETTER CAPITAL R -->
+<!ENTITY rfloor "&#x0230B;" ><!--RIGHT FLOOR -->
+<!ENTITY Rho "&#x003A1;" ><!--GREEK CAPITAL LETTER RHO -->
+<!ENTITY rho "&#x003C1;" ><!--GREEK SMALL LETTER RHO -->
+<!ENTITY sdot "&#x022C5;" ><!--DOT OPERATOR -->
+<!ENTITY Sigma "&#x003A3;" ><!--GREEK CAPITAL LETTER SIGMA -->
+<!ENTITY sigma "&#x003C3;" ><!--GREEK SMALL LETTER SIGMA -->
+<!ENTITY sigmaf "&#x003C2;" ><!--GREEK SMALL LETTER FINAL SIGMA -->
+<!ENTITY sim "&#x0223C;" ><!--TILDE OPERATOR -->
+<!ENTITY spades "&#x02660;" ><!--BLACK SPADE SUIT -->
+<!ENTITY sub "&#x02282;" ><!--SUBSET OF -->
+<!ENTITY sube "&#x02286;" ><!--SUBSET OF OR EQUAL TO -->
+<!ENTITY sum "&#x02211;" ><!--N-ARY SUMMATION -->
+<!ENTITY sup "&#x02283;" ><!--SUPERSET OF -->
+<!ENTITY supe "&#x02287;" ><!--SUPERSET OF OR EQUAL TO -->
+<!ENTITY Tau "&#x003A4;" ><!--GREEK CAPITAL LETTER TAU -->
+<!ENTITY tau "&#x003C4;" ><!--GREEK SMALL LETTER TAU -->
+<!ENTITY there4 "&#x02234;" ><!--THEREFORE -->
+<!ENTITY Theta "&#x00398;" ><!--GREEK CAPITAL LETTER THETA -->
+<!ENTITY theta "&#x003B8;" ><!--GREEK SMALL LETTER THETA -->
+<!ENTITY thetasym "&#x003D1;" ><!--GREEK THETA SYMBOL -->
+<!ENTITY trade "&#x02122;" ><!--TRADE MARK SIGN -->
+<!ENTITY uArr "&#x021D1;" ><!--UPWARDS DOUBLE ARROW -->
+<!ENTITY uarr "&#x02191;" ><!--UPWARDS ARROW -->
+<!ENTITY upsih "&#x003D2;" ><!--GREEK UPSILON WITH HOOK SYMBOL -->
+<!ENTITY Upsilon "&#x003A5;" ><!--GREEK CAPITAL LETTER UPSILON -->
+<!ENTITY upsilon "&#x003C5;" ><!--GREEK SMALL LETTER UPSILON -->
+<!ENTITY weierp "&#x02118;" ><!--SCRIPT CAPITAL P -->
+<!ENTITY Xi "&#x0039E;" ><!--GREEK CAPITAL LETTER XI -->
+<!ENTITY xi "&#x003BE;" ><!--GREEK SMALL LETTER XI -->
+<!ENTITY Zeta "&#x00396;" ><!--GREEK CAPITAL LETTER ZETA -->
+<!ENTITY zeta "&#x003B6;" ><!--GREEK SMALL LETTER ZETA -->
View
BIN dtd/teixlite.dtd
Binary file not shown.
View
22 in/Millioenenstudien.xml
@@ -0,0 +1,22 @@
+<eb:ebook xmlns:eb="http://grtjn.nl/ns/xproc/ebook">
+ <eb:metadata
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:opf="http://www.idpf.org/2007/opf"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ >
+ <eb:get-metadata type="tei" href="Millioenenstudien/mult001mill01_01.xml"/>
+ <dc:language xsi:type="dcterms:RFC3066">nl</dc:language>
+ </eb:metadata>
+ <eb:body>
+ <eb:front>
+ <eb:get-front-matter type="tei" href="Millioenenstudien/mult001mill01_01.xml"/>
+ </eb:front>
+ <eb:main>
+ <eb:get-main-matter type="tei" href="Millioenenstudien/mult001mill01_01.xml"/>
+ </eb:main>
+ <eb:back>
+ <eb:get-back-matter type="tei" href="Millioenenstudien/mult001mill01_01.xml"/>
+ </eb:back>
+ </eb:body>
+</eb:ebook>
View
6,304 in/mult001mill01_01.xml
6,304 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN in/mult001mill01_01_tpg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill01.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill02.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill03.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill04.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill05.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill06.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN in/mult001mill01ill07.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN lib/calabash-0.9.32.jar
Binary file not shown.
View
BIN lib/calabash-0.9.34.jar
Binary file not shown.
View
BIN lib/calabash-0.9.35.jar
Binary file not shown.
View
19 lib/epubcheck-1.2/COPYING.txt
@@ -0,0 +1,19 @@
+Copyright (c) 2007 Adobe Systems Incorporated
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
View
61 lib/epubcheck-1.2/README.txt
@@ -0,0 +1,61 @@
+This folder contains the distribution of epubcheck project.
+
+EpubCheck is a tool to validate IDPF Epub files. It can detect many
+types of errors in Epub. OCF container structure, OPF and OPS mark-up,
+and internal reference consistency are checked. EpubCheck can be run
+as a standalone command-line tool, installed as a web application or
+used as a library.
+
+Epubcheck project home: http://code.google.com/p/epubcheck/
+
+BUILDING
+
+To build epubcheck from the sources you need Java Development Kit (JDK) 1.5 or above
+and Apache ant (http://ant.apache.org/) 1.6 or above installed
+
+Run
+
+ant -f build.xml
+
+RUNNING
+
+To run the tool you need Java Runtime (1.5 or above). Any OS should do. Run
+it from the command line:
+
+java -jar epubcheck-x.x.x.jar file.epub
+
+All detected errors are simply printed to stderr.
+
+USING AS A LIBRARY
+
+You can also use EpubCheck as a library in your Java application. EpubCheck
+public interfaces can be found in com.adobe.epubcheck.api package. EpubCheck
+class can be used to instantiate a validation engine. Use one of its
+constructors and then call validate() method. Report is an interface that
+you can implement to get a list of the errors and warnings reported by the
+validation engine (instead of the error list being printed out).
+
+LICENSING
+
+See COPYING.txt
+
+AUTHORS
+
+Peter Sorotokin
+Garth Conboy
+Markus Gylling
+Piotr Kula
+
+Most of the EpubCheck functionality comes from the schema validation tool Jing
+and schemas that were developed by IDPF and DAISY. EpubCheck development was
+largely done at Adobe Systems.
+
+
+
+
+
+
+
+
+
+
View
BIN lib/epubcheck-1.2/epubcheck-1.2.jar
Binary file not shown.
View
12 lib/epubcheck-1.2/jing_license.txt
@@ -0,0 +1,12 @@
+Jing Copying Conditions
+
+Copyright (c) 2001-2003 Thai Open Source Software Center Ltd
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+ * Neither the name of the Thai Open Source Software Center Ltd nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
BIN lib/epubcheck-1.2/lib/jing.jar
Binary file not shown.
View
BIN lib/epubcheck-1.2/lib/saxon.jar
Binary file not shown.
View
BIN lib/grtjn-xproc-utils.jar
Binary file not shown.
View
8 lib/grtjn-xproc-utils.xml
@@ -0,0 +1,8 @@
+<xproc-config xmlns="http://xmlcalabash.com/ns/configuration"
+ xmlns:p="http://www.w3.org/ns/xproc"
+ xmlns:ut="http://grtjn.nl/ns/xproc/util">
+
+<implementation type="ut:sys-info"
+ class-name="nl.grtjn.xproc.util.osutils.SysInfo"/>
+
+</xproc-config>
View
BIN lib/lib/commons-codec-1.3.jar
Binary file not shown.
View
BIN lib/lib/commons-httpclient-3.1.jar
Binary file not shown.
View
BIN lib/lib/commons-io-1.3.1.jar
Binary file not shown.
View
BIN lib/lib/commons-logging-1.1.1.jar
Binary file not shown.
View
BIN lib/lib/saxon9he.jar
Binary file not shown.
View
BIN lib/resolver.jar
Binary file not shown.
View
34 logging.properties
@@ -0,0 +1,34 @@
+# Add handlers to the root logger.
+# These are inherited by all other loggers.
+.handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler
+
+# Set the logging level of the root logger.
+# Levels from lowest to highest are
+# FINEST, FINER, FINE, CONFIG, INFO, WARNING and SEVERE.
+# The default level for all loggers and handlers is INFO.
+.level=SEVERE
+
+# Specify logging levels for specific namespaces.
+com.xmlcalabash.level=INFO
+
+# Configure the ConsoleHandler.
+# ConsoleHandler uses java.util.logging.SimpleFormatter by default.
+# Even though the root logger has the same level as this,
+# the next line is still needed because we're configuring a handler,
+# not a logger, and handlers don't inherit properties from the root logger.
+java.util.logging.ConsoleHandler.level=INFO
+
+# Configure the FileHandler.
+# FileHandler uses java.util.logging.XMLFormatter by default.
+java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
+java.util.logging.FileHandler.level=FINE
+
+# The following special tokens can be used in the pattern property
+# which specifies the location and name of the log file.
+# / - standard path separator
+# %t - system temporary directory
+# %h - value of the user.home system property
+# %g - generation number for rotating logs
+# %u - unique number to avoid conflicts
+# FileHandler writes to %h/demo0.log by default.
+java.util.logging.FileHandler.pattern=log/run.log
View
40 run.bat
@@ -0,0 +1,40 @@
+@echo off
+
+if [%1]==[] goto usage
+set INPUTFILE=%1
+shift
+
+rem del /q /s log\
+rem del /q /s out\
+rem del /q /s tmp\
+
+rem set PROXY=-Dhttp.proxyHost=172.22.7.16 -Dhttp.proxyPort=8080
+
+set CMD=java -cp .;lib\resolver.jar;lib\calabash-0.9.35.jar;lib\grtjn-xproc-utils.jar %PROXY% -Dcom.xmlcalabash.phonehome=false -Djava.util.logging.config.file=logging.properties com.xmlcalabash.drivers.Main -D -E org.apache.xml.resolver.tools.CatalogResolver -U org.apache.xml.resolver.tools.CatalogResolver -c lib/grtjn-xproc-utils.xml -i source=%INPUTFILE% src\nl\grtjn\xproc\ebook\main.xpl %1 %2 %3 %4 %5 %6 %7 %8 %9
+echo %CMD%
+%CMD%
+if errorlevel 1 goto error
+goto done
+
+:usage
+echo.
+echo Usage:
+echo %0 {ebook-layout.xml} ["{option}={value}"]*
+echo.
+echo Options:
+echo - debug (false^|true) [default: false]
+echo - output-method (epub^|pdf) [default: epub]
+echo - output-style (#default^|dbnl^|medieval) [default: #default]
+echo - verbose (false^|true) [default: true]
+echo.
+goto end
+
+:error
+echo Aborted..
+goto end
+
+:done
+echo Done..
+goto end
+
+:end
View
19 src/build.bat
@@ -0,0 +1,19 @@
+@echo off
+
+del /q nl\grtjn\xproc\util\osutils\*.class
+
+javac -cp ..\lib\calabash.jar nl\grtjn\xproc\util\osutils\*.java
+if errorlevel 1 goto error
+
+jar cvf ..\lib\grtjn-xproc-utils.jar nl\grtjn\xproc\util\osutils\*.class
+goto done
+
+:error
+echo Fail..
+goto end
+
+:done
+echo Done..
+goto end
+
+:end
View
BIN src/com/xmlcalabash/extensions/fileutils.xpl
Binary file not shown.
View
BIN src/com/xmlcalabash/extensions/library-1.0.xpl
Binary file not shown.
View
27 src/com/xmlcalabash/extensions/osutils.xpl
@@ -0,0 +1,27 @@
+<p:library xmlns:p="http://www.w3.org/ns/xproc"
+ xmlns:cx="http://xmlcalabash.com/ns/extensions"
+ xmlns:cos="http://xmlcalabash.com/ns/extensions/osutils"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ version="1.0">
+
+<!-- see http://exproc.org/proposed/steps/os.html for documentation -->
+
+ <!-- ============================================================ -->
+
+ <p:declare-step type="cos:info">
+ <p:output port="result"/>
+ </p:declare-step>
+
+ <!-- ============================================================ -->
+
+ <p:declare-step type="cos:cwd">
+ <p:output port="result" sequence="true"/>
+ </p:declare-step>
+
+ <!-- ============================================================ -->
+
+ <p:declare-step type="cos:env">
+ <p:output port="result"/>
+ </p:declare-step>
+
+</p:library>
View
52 src/nl/grtjn/xproc/ebook/assign-page-numbers.xsl
@@ -0,0 +1,52 @@
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:eb="http://grtjn.nl/ns/xproc/ebook"
+ xmlns:x="http://www.w3.org/1999/xhtml"
+
+ exclude-result-prefixes="#all">
+
+ <xsl:output method="xml" encoding="UTF-8" indent="yes" />
+ <xsl:strip-space elements="*" />
+
+ <xsl:param name="debug" select="false()"/>
+ <xsl:param name="verbose" select="false()"/>
+
+ <xsl:param name="debug_" select="lower-case(string($debug)) = ('1', 'j', 'y', 'yes', 'true')"/>
+ <xsl:param name="verbose_" select="lower-case(string($verbose)) = ('1', 'j', 'y', 'yes', 'true')"/>
+
+ <xsl:variable name="front-page-count" select="count(//eb:front//eb:page)"/>
+ <xsl:variable name="main-page-count" select="count(//eb:main//eb:page)"/>
+
+ <xsl:template match="@*|node()" mode="#all">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()" mode="#current" />
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="eb:page[not(@n)]">
+ <xsl:variable name="n">
+ <xsl:choose>
+ <xsl:when test="exists(parent::eb:section/preceding-sibling::eb:section[1]/eb:page[last()]/@n)">
+ <xsl:value-of select="concat(parent::eb:section/preceding-sibling::eb:section[1]/eb:page[last()]/@n, 'b')" />
+ </xsl:when>
+ <xsl:when test="exists(ancestor::eb:front)">
+ <xsl:number value="count(preceding::eb:page) + 1" format="I"/>
+ </xsl:when>
+ <xsl:when test="exists(ancestor::eb:back)">
+ <xsl:number value="count(preceding::eb:page) + 1 - $front-page-count - $main-page-count" format="A"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:number value="count(preceding::eb:page) + 1 - $front-page-count" format="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:if test="$debug_">
+ <xsl:message>Assigning page-number <xsl:value-of select="$n"/> to page <xsl:value-of select="@id"/></xsl:message>
+ </xsl:if>
+ <eb:page n="{$n}" preceding="{count(preceding::eb:page)}" front="{$front-page-count}" main="{$main-page-count}">
+ <xsl:apply-templates select="@*|node()" />
+ </eb:page>
+ </xsl:template>
+
+</xsl:stylesheet>
View
269 src/nl/grtjn/xproc/ebook/build-hierarchy.xsl
@@ -0,0 +1,269 @@
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:eb="http://grtjn.nl/ns/xproc/ebook"
+ xmlns:x="http://www.w3.org/1999/xhtml"
+
+ exclude-result-prefixes="#all">
+
+ <xsl:output method="xml" encoding="UTF-8" indent="yes" />
+ <xsl:strip-space elements="*" />
+
+ <xsl:param name="debug" select="false()"/>
+ <xsl:param name="verbose" select="false()"/>
+
+ <xsl:param name="debug_" select="lower-case(string($debug)) = ('1', 'j', 'y', 'yes', 'true')"/>
+ <xsl:param name="verbose_" select="lower-case(string($verbose)) = ('1', 'j', 'y', 'yes', 'true')"/>
+
+ <xsl:template match="@*|node()" mode="#all">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()" mode="#current"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="x:body/x:div[not(.//*[self::x:h1 or self::x:h2 or self::x:h3 or self::x:h4 or self::x:h5 or self::x:h6])]">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: <xsl:value-of select="substring(., 1, 15)"/>..</xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}" level="0">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()" />
+ </xsl:copy>
+ </eb:section>
+ </xsl:template>
+
+ <xsl:template match="*[x:h1 | x:h2 | x:h3 | x:h4 | x:h5 | x:h6]">
+ <xsl:variable name="parent" select="." />
+
+ <xsl:for-each-group select="node()" group-starting-with="x:h1">
+
+ <xsl:choose>
+ <xsl:when test="empty(current-group()[not(self::eb:page-break)])"/>
+ <xsl:when test="self::x:h1">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: h1 <xsl:value-of select="self::x:h1"/></xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}">
+
+ <xsl:element name="{name($parent)}" namespace="{namespace-uri($parent)}">
+ <xsl:copy-of select="$parent/@*" />
+
+ <xsl:copy-of select="preceding-sibling::*[1]/self::eb:page-break" />
+
+ <xsl:apply-templates select="." mode="h2">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+
+ </xsl:element>
+
+ </eb:section>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="h2">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each-group>
+ </xsl:template>
+
+ <xsl:template match="*" mode="h2">
+ <xsl:param name="parent" />
+ <xsl:param name="parent-group" />
+
+ <xsl:for-each-group select="$parent-group" group-starting-with="x:h2">
+
+ <xsl:choose>
+ <xsl:when test="empty(current-group()[not(self::eb:page-break)])"/>
+ <xsl:when test="self::x:h2">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: h2 <xsl:value-of select="self::x:h2"/></xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}">
+
+ <xsl:element name="{name($parent)}" namespace="{namespace-uri($parent)}">
+ <xsl:copy-of select="$parent/@*" />
+
+ <xsl:copy-of select="preceding-sibling::*[1]/self::eb:page-break" />
+
+ <xsl:apply-templates select="." mode="h3">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+
+ </xsl:element>
+
+ </eb:section>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="h3">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each-group>
+ </xsl:template>
+
+ <xsl:template match="*" mode="h3">
+ <xsl:param name="parent" />
+ <xsl:param name="parent-group" />
+
+ <xsl:for-each-group select="$parent-group" group-starting-with="x:h3">
+
+ <xsl:choose>
+ <xsl:when test="empty(current-group()[not(self::eb:page-break)])"/>
+ <xsl:when test="self::x:h3">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: h3 <xsl:value-of select="self::x:h3"/></xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}">
+
+ <xsl:element name="{name($parent)}" namespace="{namespace-uri($parent)}">
+ <xsl:copy-of select="$parent/@*" />
+
+ <xsl:copy-of select="preceding-sibling::*[1]/self::eb:page-break" />
+
+ <xsl:apply-templates select="." mode="h4">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+
+ </xsl:element>
+
+ </eb:section>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="h4">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each-group>
+ </xsl:template>
+
+ <xsl:template match="*" mode="h4">
+ <xsl:param name="parent" />
+ <xsl:param name="parent-group" />
+
+ <xsl:for-each-group select="$parent-group" group-starting-with="x:h4">
+
+ <xsl:choose>
+ <xsl:when test="empty(current-group()[not(self::eb:page-break)])"/>
+ <xsl:when test="self::x:h4">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: h4 <xsl:value-of select="self::x:h4"/></xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}">
+
+ <xsl:element name="{name($parent)}" namespace="{namespace-uri($parent)}">
+ <xsl:copy-of select="$parent/@*" />
+
+ <xsl:copy-of select="preceding-sibling::*[1]/self::eb:page-break" />
+
+ <xsl:apply-templates select="." mode="h5">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+
+ </xsl:element>
+
+ </eb:section>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="h5">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each-group>
+ </xsl:template>
+
+ <xsl:template match="*" mode="h5">
+ <xsl:param name="parent" />
+ <xsl:param name="parent-group" />
+
+ <xsl:for-each-group select="$parent-group" group-starting-with="x:h5">
+
+ <xsl:choose>
+ <xsl:when test="empty(current-group()[not(self::eb:page-break)])"/>
+ <xsl:when test="self::x:h5">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: h5 <xsl:value-of select="self::x:h5"/></xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}">
+
+ <xsl:element name="{name($parent)}" namespace="{namespace-uri($parent)}">
+ <xsl:copy-of select="$parent/@*" />
+
+ <xsl:copy-of select="preceding-sibling::*[1]/self::eb:page-break" />
+
+ <xsl:apply-templates select="." mode="h6">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+
+ </xsl:element>
+
+ </eb:section>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="." mode="h6">
+ <xsl:with-param name="parent" select="$parent"/>
+ <xsl:with-param name="parent-group" select="current-group()"/>
+ </xsl:apply-templates>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each-group>
+ </xsl:template>
+
+ <xsl:template match="*" mode="h6">
+ <xsl:param name="parent" />
+ <xsl:param name="parent-group" />
+
+ <xsl:for-each-group select="$parent-group" group-starting-with="x:h6">
+
+ <xsl:choose>
+ <xsl:when test="empty(current-group()[not(self::eb:page-break)])"/>
+ <xsl:when test="self::x:h6">
+ <xsl:variable name="id" select="concat('section-', generate-id())" />
+ <xsl:if test="$debug_">
+ <xsl:message><xsl:value-of select="$id"/>: h6 <xsl:value-of select="self::x:h6"/></xsl:message>
+ </xsl:if>
+ <eb:section id="{$id}">
+
+ <xsl:element name="{name($parent)}" namespace="{namespace-uri($parent)}">
+ <xsl:copy-of select="$parent/@*" />
+
+ <xsl:copy-of select="preceding-sibling::*[1]/self::eb:page-break" />
+
+ <xsl:apply-templates select="current-group()"/>
+
+ </xsl:element>
+
+ </eb:section>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="current-group()"/>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each-group>
+ </xsl:template>
+
+</xsl:stylesheet>
View
36 src/nl/grtjn/xproc/ebook/cleanup-notes.xsl
@@ -0,0 +1,36 @@
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:eb="http://grtjn.nl/ns/xproc/ebook"
+ xmlns:x="http://www.w3.org/1999/xhtml"
+
+ exclude-result-prefixes="#all">
+
+ <xsl:output method="xml" encoding="UTF-8" indent="yes" />
+ <xsl:strip-space elements="*" />
+
+ <xsl:param name="debug" select="false()"/>
+ <xsl:param name="verbose" select="false()"/>
+ <xsl:param name="strip-notes" select="true()"/>
+
+ <xsl:param name="debug_" select="lower-case(string($debug)) = ('1', 'j', 'y', 'yes', 'true')"/>
+ <xsl:param name="verbose_" select="lower-case(string($verbose)) = ('1', 'j', 'y', 'yes', 'true')"/>
+ <xsl:param name="strip-notes_" select="lower-case(string($strip-notes)) = ('1', 'j', 'y', 'yes', 'true')"/>
+
+ <xsl:template match="@*|node()" mode="#all">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()" mode="#current" />
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="eb:note">
+ <xsl:apply-templates select="eb:note-ref" />
+ </xsl:template>
+
+ <xsl:template match="eb:note-nr">
+ <eb:note-ref>
+ <xsl:apply-templates select="@*|node()" mode="#current" />
+ </eb:note-ref>
+ </xsl:template>
+
+</xsl:stylesheet>
View
97 src/nl/grtjn/xproc/ebook/generate-index.xsl
@@ -0,0 +1,97 @@
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:eb="http://grtjn.nl/ns/xproc/ebook"
+ xmlns:x="http://www.w3.org/1999/xhtml"
+
+ exclude-result-prefixes="#all">
+
+ <xsl:output method="xml" encoding="UTF-8" indent="yes" />
+ <xsl:strip-space elements="*" />
+
+ <xsl:key name="index-items" match="eb:index-item" use="lower-case(normalize-space(.))"/>
+
+ <xsl:param name="title" />
+ <xsl:param name="part" />
+ <xsl:param name="position" />
+
+ <xsl:variable name="this-list" select="//eb:index[local-name(parent::*) = $part][count(preceding-sibling::eb:index) + 1 = number($position)]"/>
+
+ <xsl:param name="output-style" select="'#default'" />
+ <xsl:param name="styles-uri"/>
+
+ <xsl:variable name="styles" select="doc($styles-uri)/*"/>
+ <xsl:param name="index-page-break" select="($this-list/@page-break, $styles/style[@name = ($output-style, '#default')]/index/@page-break, 15)[1]"/>
+
+ <xsl:template match="/">
+ <xsl:variable name="index-ids" as="element()*">
+ <xsl:for-each-group select="//eb:index-item" group-by="upper-case(substring(normalize-space(.), 1, 1))">
+ <xsl:sort select="upper-case(substring(normalize-space(.), 1, 1))"/>
+ <eb:ref ref-id="section-{generate-id()}">
+ <xsl:value-of select="current-grouping-key()"/>
+ </eb:ref>
+ </xsl:for-each-group>
+ </xsl:variable>
+
+ <eb:part type="index">
+ <eb:section id="section-{generate-id()}">
+ <x:div class="index">
+ <x:h1><xsl:value-of select="$title"/></x:h1>
+ <x:div class="index-navigation">
+ <xsl:copy-of select="$index-ids" />
+ <x:hr/>
+ </x:div>
+
+ <xsl:for-each select="$index-ids">
+ <x:h1><xsl:copy-of select="."/></x:h1>
+ <xsl:if test="((position() mod floor(number($index-page-break) div 2)) = 0) and not(position() = last())">
+ <eb:page-break id="page-{generate-id()}"/>
+ </xsl:if>
+ </xsl:for-each>
+
+ <xsl:for-each-group select="//eb:index-item" group-by="upper-case(substring(normalize-space(.), 1, 1))">
+ <xsl:sort select="upper-case(substring(normalize-space(.), 1, 1))"/>
+ <xsl:variable name="id" select="$index-ids[. = current-grouping-key()]/@ref-id"/>
+
+ <eb:section id="{$id}">
+ <x:div class="index">
+ <x:div class="index-navigation">
+ <xsl:copy-of select="$index-ids" />
+ <x:hr/>
+ </x:div>
+ <x:h1><x:span class="first-char first-char-{lower-case(current-grouping-key())}"><xsl:value-of select="current-grouping-key()"/></x:span></x:h1>
+ <x:table class="index">
+ <xsl:for-each-group select="current-group()" group-by="lower-case(normalize-space(.))">
+ <xsl:sort/>
+ <xsl:apply-templates select="."/>
+ <xsl:if test="((position() mod number($index-page-break)) = 0) and not(position() = last())">
+ <eb:page-break id="page-{generate-id()}"/>
+ </xsl:if>
+ </xsl:for-each-group>
+ </x:table>
+ </x:div>
+ </eb:section>
+ </xsl:for-each-group>
+ </x:div>
+ </eb:section>
+ </eb:part>
+ </xsl:template>
+
+ <xsl:template match="eb:index-item">
+ <xsl:variable name="item-id" select="string(@id)" />
+ <xsl:variable name="item" select="lower-case(normalize-space(.))" />
+ <x:tr class="index-item">
+ <x:td class="index-item-text">
+ <xsl:value-of select="$item"/>
+ </x:td>
+ <x:td class="index-item-pages">
+ <eb:page-refs>
+ <xsl:for-each select="key('index-items', $item)">
+ <eb:page-ref ref-id="{string(@id)}" />
+ </xsl:for-each>
+ </eb:page-refs>
+ </x:td>
+ </x:tr>
+ </xsl:template>
+
+</xsl:stylesheet>
View
51 src/nl/grtjn/xproc/ebook/generate-list-of-illustrations.xsl
@@ -0,0 +1,51 @@
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:eb="http://grtjn.nl/ns/xproc/ebook"
+ xmlns:x="http://www.w3.org/1999/xhtml"
+
+ exclude-result-prefixes="#all">
+
+ <xsl:output method="xml" encoding="UTF-8" indent="yes" />
+ <xsl:strip-space elements="*" />
+
+ <xsl:param name="title" />
+ <xsl:param name="part" />
+ <xsl:param name="position" />
+
+ <xsl:variable name="this-list" select="//eb:list-of-illustrations[local-name(parent::*) = $part][count(preceding-sibling::eb:list-of-illustrations) + 1 = number($position)]"/>
+
+ <xsl:param name="output-style" select="'#default'" />
+ <xsl:param name="styles-uri"/>
+
+ <xsl:variable name="styles" select="doc($styles-uri)/*"/>
+ <xsl:param name="loi-page-break" select="($this-list/@page-break, $styles/style[@name = ($output-style, '#default')]/loi/@page-break, 20)[1]"/>
+
+ <xsl:template match="/">
+ <eb:part type="list-of-illustrations">
+ <eb:section id="section-{generate-id()}">
+ <x:div class="list-of-illustrations">
+ <x:h1><xsl:value-of select="$title"/></x:h1>
+ <x:table class="list-of-illustrations">
+ <xsl:apply-templates select="//eb:image" />
+ </x:table>
+ </x:div>
+ </eb:section>
+ </eb:part>
+ </xsl:template>
+
+ <xsl:template match="eb:image">
+ <x:tr class="toc-item">
+ <x:td class="toc-item-text">
+ <xsl:value-of select="@label"/>
+ </x:td>
+ <x:td class="toc-item-page">