├── LICENSE ├── README.md ├── sch ├── changemarkup.sch.xml ├── check-tables.sch.xml ├── field-functions.sch.xml ├── mathtype2mml.sch.xml ├── result.sch.xml └── single-tree.sch.xml ├── xmlcatalog └── catalog.xml ├── xpl ├── apply-changemarkup.xpl ├── docx2html.xpl ├── docx2hub.xpl ├── mathtype2mml.xpl ├── single-tree-enhanced.xpl └── single-tree.xpl ├── xsl ├── changemarkup.xsl ├── comments.xsl ├── drawingml2svg.xsl ├── endnotes.xsl ├── fontmaps.catalog.xml ├── footnotes.xsl ├── images.xsl ├── index.xsl ├── insert-doc-defaults.xsl ├── insert-xpath.xsl ├── join-runs.xsl ├── main.xsl ├── modules │ ├── catch-all │ │ └── catch-all.xsl │ ├── error-handler │ │ ├── check-module │ │ ├── error-handler.xsl │ │ ├── filter-logfile │ │ ├── main.xsl │ │ ├── test.xml │ │ └── xslt_error-de.yml │ ├── preprocess-styles │ │ └── preprocess-styles.xsl │ └── prop-mapping │ │ ├── map-props.xsl │ │ └── propmap.xsl ├── numbering.xsl ├── objects.xsl ├── omml2mml │ ├── omml2mml.xsl │ └── test-omml.xsl ├── presetShapeDefinitions.xml ├── reference-managers.xsl ├── remove-unused-rels.xsl ├── sym.xsl ├── tables.xsl ├── timing-profile.xsl └── wml2dbk.xsl └── xspec ├── map-props.xspec ├── omml2mml.xspec └── wml-to-dbk.xspec /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015–2024, transpect.io 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | * Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 19 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # docx2hub 2 | 3 | Converts Microsoft docx to flat hub XML 4 | 5 | Please note that this is just a library and not a standalone converter. For further information and an example implementation see the [frontend project](https://github.com/transpect/docx2hub-frontend). Another usage example is [docx2tex](https://github.com/transpect/docx2tex). 6 | 7 | The options for `docx2hub.xpl` are documented in the [file itself](https://github.com/transpect/docx2hub/blob/master/xpl/docx2hub.xpl#L97). 8 | 9 | If you want to include this library in your XProc pipeline, please refer to this [tutorial](https://transpect.github.io/getting-started.html). 10 | -------------------------------------------------------------------------------- /sch/changemarkup.sch.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | docx 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Hier befindet sich mindestens eine Änderung im Dokument, welche noch nicht angenommen wurde. Bitte prüfen. Betroffene Textstelle(n): 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /sch/check-tables.sch.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | docx-tables 14 | 15 | 16 | 17 | 18 | 19 | 20 | 27 | 29 | 30 | The table grid colum count () is higher than the maximum column count () in any table row. Please check. 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | There are column grid widths (columns: ) in the current table narrower than typically. Please check. 45 | 46 | 47 | 48 | 49 | 61 | 62 | -------------------------------------------------------------------------------- /sch/field-functions.sch.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | docx 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | docx 23 | Bookmark range not found 24 | The index term instruction text '' requested a bookmark range '' 25 | that could not be located in the document. Reverting to a plain (non-range) index term. 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | docx 34 | Empty index term found. 35 | An index term was created, but it does not contain any content. Please check whether content 36 | was previously available in the DOCX file. This issue can also be caused by paragraph 37 | marks and other unexpected markup in the index term. 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | docx 48 | Footnote marker style 49 | Apparently more text than just the footnote marker has the footnote marker style, ''. 50 | Text with this marker style: ''. 51 | This text may be removed during conversion. 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 65 | docx 66 | Table headers only 67 | All table rows are marked as table header, found no body rows. The docx converter moves all table header rows to table body, otherwise the resulting XML would be invalid. 68 | 69 | 70 | 71 | 72 | 73 | 75 | 76 | docx 77 | Unsupported field function 78 | The field function '' is not supported. 79 | 80 | 81 | docx 82 | Too many indexterms 83 | At this field function '' too many indexterm were used. Please use at maximum 3 indexterms. 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | docx 92 | Lesezeichen-Bereich nicht gefunden 93 | Der Indexbegriff '' verweist auf einen Lesezeichen-Bereich '', 94 | der im Dokument nicht gefunden wurde. Er wird deshalb nun wie ein normaler (Nicht-Bereichs-) Indexbegriff behandelt. 95 | 96 | 97 | docx 98 | Leerer Indexeintrag gefunden 99 | Ein Indexeintrag wurde angelegt, enthält aber keinen Inhalt. Bitte prüfen Sie ob in der 100 | DOCX-Datei an dieser Stelle ursprünglich Text vorhanden war. Dieses Problem kann auch durch 101 | unerwartete Auszeichnungen wie Absatzmarken im Indexeintrag hervorgerufen werden. 102 | 103 | 104 | docx 105 | Fußnotenzeichenstil 106 | Anscheinend hat mehr Text als bloß der Fußnotenmarker das Zeichenformat ''. 107 | Text mit diesem Format: ''. 108 | Dieser Text könnte während der Konvertierung entfernt werden. 109 | 110 | 111 | docx 112 | Nicht unterstützte Feldfunktion 113 | Die Feldfunktion '' wird nicht unterstützt. 114 | 115 | docx 116 | Zu viele Indexeinträge 117 | In dieser Feldfunktion '' sind zu viele Indexeinträge verwendet worden. Bitte nutzen Sie maximal 3 Indexeinträge. 118 | docx 119 | Nur Tabellenkopf 120 | In dieser Tabelle wurden alle Tabellenzeilen als TabellenkÃpfe ausgezeichnet. Der docx-Konverter hat deshalb alle Tabellenzeilen in den Bauch der Tabelle verschoben, da sonst das resultierende XML invalide wÃŒrde. 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /sch/mathtype2mml.sch.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | docx 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | docx (MathType→MathML) 23 | MathType version 2 equations are currently not supported. Please replace it with a more recent version. 24 | (In order to update it, re-open the equation in Word Equation Editor or MathType and then close the equation editor window again.) 25 | 26 | 27 | 28 | 29 | 41 | 42 | 43 | 44 | MathType-Formeln mit der Formatversion 2 können aktuell noch nicht nach MathML gewandelt werden. 45 | Bitte durch eine neuere Version ersetzen 46 | (Vorgehen: Formel anwählen/anklicken und im sich dann öffnenden Word-Formeleditor einfach nochmal speichern). 47 | 48 | 49 | Eine MathType- (oder EquationEditor-3-) Formel konnte nicht konvertiert werden. Dieses Problem muss wahrscheinlich 50 | von einem Entwickler untersucht werden. 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /sch/result.sch.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | docx 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 29 | docx 30 | Unbalanced field functions 31 | There was an error (infinite loop) in finding matching start/end markers for field functions. 32 | This is typically caused by inadvertent removal of one of the markers while “track changes” is active. 33 | Word has some autocorrection capability for these things that this converter lacks. 34 | Please accept all changes in the document and convert it again. If there are no tracked changes, 35 | please ask for help. In the absence of a more specific contact, you may turn to support@le-tex.de. This text – probably a mix of instruction 37 | text and regular text – might give you a hint where the error occured: . 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 47 | 50 | docx 51 | Mapping incomplete 52 | Regarding mapping of the 'Citation Style Language' (CSL) bibliography: there is content in biblio entry not mapped to DocBook/Hub properly. 53 |
54 | In further conversion processes content may get lost. 55 |
56 | In the absence of a more specific contact, you may turn to support@le-tex.de. 57 |
58 |
59 |
60 | 61 | 62 | 64 | 65 | 66 | 67 | docx 68 | Unbalanced table columns 69 | There are more columns defined than actually needed. The number of defined columns is and the number of maximal used is . 72 |
73 | Please check if some or all table cells can be merged or renewed. Try to solve column spans. 74 | Otherwise the table will stay in xml in the current state: more columns defined than needed. 75 |
76 | 77 |
78 |
79 | 80 | 81 | 82 | 83 | 84 | docx 85 | Image not inside docx file 86 | The image is referenced and not contained in the docx container. 87 |
88 | If the image is needed for your workflow make sure it is available for the conversion process via embedding it or uploading it. 89 |
90 | 91 |
92 |
93 | 94 | 95 | 96 | 97 | 98 | docx 99 | A carriage return character used 100 | Instead of a normal paragraph, a carriage return character was used here, possibly from copying contents from other files. 101 | This cannot be seen in Word because it is displayed in the same way. 102 | Nonetheless, it is not handled in the same way and no seperate paragraph is generated. Ignore this message if that is a wanted behaviour, 103 | the control character is mapped to a phrase. 104 |
105 | If separate paraphraphs were intended, delete the character and the enter button instead. 106 |
107 |
108 |
109 | 110 | 111 | 112 | 113 | 114 | 117 | docx 118 | Empty or broken index entry 119 | An empty indexterm was created, please check the input.

120 | The following text before or after the index entry might give you a hint where the error occured: 121 |
122 |
123 | 124 | End delimiter for index entry is missing 125 | An index entry was found that defines a range, but the end separator is missing. 126 | Please check the input.

127 | The following text before or after the index entry might give you a hint where the error occured: 128 |
129 |
130 | 131 | End delimiter found but beginning of index entry is missing 132 | An index separator was found that indicates the end of an index entry range, but the beginning of the index term is missing. 133 | Please check the input.

134 | The following text before or after the index entry might give you a hint where the error occured: 135 |
136 |
137 | 138 |
139 |
140 | 141 | 142 | 143 | docx 144 | Leerer oder unvollständiger Indexeintrag 145 | Ein leerer Indexeintrag wurde generiert. Möglicherweise ist er im Dokument nicht richtig erfasst. Bitte prüfen Sie die Stelle. 146 |

147 | Folgender Text, der vor oder nach dem Indexeintrag stehen kann, soll Ihnen helfen die Stelle leichter zu finden: 148 |
149 |
150 | 151 | docx 152 | Indexeintrag 153 | Ein Indexeintrag wurde gefunden, der einen Bereich definiert, aber die Endmarke für den Bereich ist nicht vorhanden. 154 |

155 | Folgender Text, der vor oder nach dem Indexeintrag stehen kann, soll Ihnen helfen die Stelle leichter zu finden: 156 |
157 |
158 | 159 | docx 160 | Index-Endmarke ohne Indexeintrag 161 | Es wurde die Endmarke eines Indexeintrags gefunden, das das Ende eines Indexeintragsbereichs angibt, aber der Anfang des Indexeintrags fehlt. 162 |

163 | Folgender Text, der vor oder nach dem Indexeintrag stehen kann, soll Ihnen helfen die Stelle leichter zu finden: 164 |
165 |
166 | 167 | 168 | docx 169 | Carriage Return Zeichen verwendet 170 | An dieser Stelle wurde ein Carriage-Return-Zeichen verwendet, z.B. durch das Kopieren von Inhalten aus anderen Dokumenten. 171 | In Word sieht man den Unterschied nicht, aber es handelt sich nicht um eine echte Absatzmarke, sondern ein spezielles Steuerzeichen. 172 | Bei der Konvertierung werden keine eigenen Absätze erzeugt. Falls das so gewollt ist, ignorieren Sie die Meldung. 173 |
174 | Sollen separate Absätze erzeugt werden, löschen Sie das Zeichen bitte und trennen die Absätze regulär durch Eingabe der Enter-Taste. 175 |
176 | 177 | docx 178 | Referenziertes Bild 179 | Das Bild wurde im Word-Dokument referenziert und ist nicht physisch im Dokument enthalten. 180 |
181 | Soll das Bild im weiteren Konvertierungsprozess verarbeitet werden, muss es an definierter Stelle bereit gestellt oder in die docx-Datei eingebettet werden. 182 |
183 | 184 | docx 185 | Feldfunktionen: Schachtelung falsch 186 | Es gab einen Fehler (unendliche Rekursion) beim Zuordnen von Start-/Endemarkierungen für Feldfunktionen. 187 | Dies wird typischerweise dadurch verursacht, dass solche Markierungen bei eingeschalteter Änderungsverfolgung 188 | unbeabsichtigt mit entfernt werden. Word kann derlei wohl korrigieren, dieser Konverter jedoch nicht. 189 | Deshalb bitten wir Sie, sämtliche Änderungen zu akzeptieren und das Dokument erneut zu konvertieren. 190 | Sollte das Dokument keine Änderungsmarkierung enthalten, so wenden Sie sich bitte an den Support (wenn nichts 191 | anderes angegeben, an support@le-tex.de). 192 | Dieser Text könnte einen Hinweis auf den Fehlerort und -text geben: . 193 | 194 | 195 | docx 196 | 197 | Es sind mehr Tabellenspalten definiert als tatsächlich gebraucht werden. Definierte Spalten sind vorhanden. Die Anzahl an maximal benötigter Spalten ist . 200 |
201 | Bitte prüfen, ob Tabellenzellen zusammengeführt oder erneuert werden können. 202 | Andernfalls verbleibt die Tabelle XML-seitig im aktuellen Stand: mehr Tabellenspalten definiert als benötigt werden. 203 |
204 | 205 | docx 206 | Mapping unvollständig 207 | Mapping des 'Citation Style Language' (CSL) Literaturverzeichnisses: in Eintrag finden sich Inhalte, welche nicht ordentlich nach DocBook/Hub konvertiert werden konnten. 208 |
209 | In weiteren Konvertierungsschritten könnten diese Inhalte verloren gehen. 210 |
211 | Falls keine konkreten Ansprechpartner bekannt sind, bitte an support@le-tex.de wenden. 212 |
213 |
214 | 215 |
216 | -------------------------------------------------------------------------------- /sch/single-tree.sch.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | docx 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | This paragraph has been marked up as a 'Tablecolumnhead'. However, there are preceding cells with 'Tablebody' paragraphs. 26 | The conversion will move all head cells before the body cells. If this is not wanted, you need to reassign the paragraph styles. 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | Here is maths inside a field code. This might be supported for index entries, but not for other field codes. 36 | Please check the output. 37 | 38 | 39 | 40 | 41 | 42 | 51 | 52 | 53 | Here’s text that in a field code that might not be intended for rendering. Content: 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 63 | 64 | Image has been scaled. 65 | 66 | 68 | 69 | Image has been rotated. 70 | 71 | 73 | 74 | Image has been cropped. 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | There is probably a MathType equation in an OMML equation. Please use only OMML in OMML formulas. 84 | 85 | 86 | 87 | 88 | 89 | 91 | 92 | 96 | 97 | There are three rows with cells (one above the other) and a single punctuation mark each in it. That's a candidate for a vertical ellipsis ⋮ (U+22EE). 98 | 99 | 100 | 101 | 102 | 103 | 104 | 106 | BC_orphans 107 | The field codes have not been refreshed in this document. Please do so for achieving accurate conversion results. 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | UTF-8 character 'SOFT HYPHEN' (U+00AD) found. To assert correct display it is recommended to insert the character using the word functionality. 117 | 118 | 119 | 120 | 121 | 122 | 123 | Dieser Absatz wurde als Tabellenkopf ausgezeichnet. Vorher (innerhalb dieser Tabelle) befinden sich allerdings 124 | schon Tablebody-Zellen. Durch die Konvertierung wurden alle als Kopf ausgezeichneten Absätze nach ganz oben in 125 | die Tabelle verschoben. Wenn dies nicht gewünscht ist, Auszeichnung bitte korrigieren und noch einmal konvertieren. 126 | 127 | 128 | 129 | Hier steht Text, welche in einer fremdartigen Feldfunktion steht und ggf. nicht dargestellt werden sollte. 130 | Textstelle: 131 | 132 | 133 | Hier wurde eine Formel innerhalb einer Feldfunktion verwendet. 134 | 135 | 136 | Bild wurde beschnitten. 137 | 138 | 139 | Bild wurde gedreht. 140 | 141 | 142 | Bild wurde skaliert 143 | 144 | 145 | Hier steht wahrscheinlich eine MathType-Formel in einer Word-OMML-Formel. Bitte ersetzen Sie die MathType-Formel. 146 | 147 | 148 | In dieser Formelmatrix steht ein Kandidat für das vertikale Auslassungszeichen ⋮ (U+22EE). Bitte prüfen, ob die übereinander angeordneten Zellen durch das ordentliche ⋮-Zeichen ersetzt werden können. 149 | 150 | 151 | In diesem Dokument wurden die Feldfunktionen nicht aktualisiert. Um eine korrekte Konvertierung zu gewährleisten, 152 | aktualisieren Sie bitte die Feldfunktionen vor der Konvertierung. 153 | 154 | 155 | Es wurde das UTF-8-Zeichen 'SOFT HYPHEN' (U+00AD) gefunden. Um die korrekte Darstellung zu gewährleisten, fügen Sie das Zeichen mithilfe der Wordfunktionalität in das Dokument ein oder ersetzen Sie es durch ein anderes bindestrichartiges Zeichen bspw. Trennstrich '‐' (U+2010) oder geschützten Trennstrich '‑' (U+2011). 156 | 157 | 158 | 159 | 160 | -------------------------------------------------------------------------------- /xmlcatalog/catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /xpl/apply-changemarkup.xpl: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | The result of docx2hub:single-tree (or mathtype2mml) 19 | 20 | 21 | The params output port of docx2hub:single-tree 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | The same basic structure as the primary source of the current step, but with applied markup changes (such as text deletions or image insertions) 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | Whether apply-changemarkup conversion happens at all. 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 155 | 156 | 157 | 158 | 159 | 160 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /xpl/docx2html.xpl: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 |

Converts docx to XHTML

16 |
17 | 18 | 19 | 20 | 21 | 22 | This is to prevent a default readable port connecting to this step’s xslt port. 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | OS name (preferably with full path, may not resolve if only a relative path is given), file:, http:, or 37 | https: URL. The file will be fetched first if it is an HTTP URL. 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | Directory (OS path, not file: URL) to which the file will be unzipped. If option is empty string, will be 47 | '.tmp' appended to OS file path. 48 | 49 | 50 | Whether Office Open Drawing ML should be mapped to SVG 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 |
-------------------------------------------------------------------------------- /xpl/single-tree-enhanced.xpl: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | For usage in docx_modify and other XProc steps with need of the docx single-tree plus some more enhancements. 18 | 19 | 20 | 21 | 22 | 23 | This is to prevent a default readable port connecting to this step’s xslt port. 24 | 25 | 26 | 27 | 28 | Schematron that will validate the entire Word container document. 29 | 30 | 31 | 32 | Schematron that will validate the entire document after applying change markup. 33 | 34 | 35 | 36 | Schematron that will validate the entire document after replacing MathType OLE-Objects by MathML. 37 | 38 | 39 | 40 | See additional-font-maps in mathtype-extension 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /xpl/single-tree.xpl: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | This is to prevent any other default readable port to be connected with the xslt port. 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | OS name (preferably with full path, may not resolve if only a relative path is given), file:, http:, or 49 | https: URL. The file will be fetched first if it is an HTTP URL. 50 | 51 | 52 | 53 | 54 | 55 | 56 | Wether to remove reference paragraphs from content body or not. 57 | Also: if there is no structured bibliography processing available, 58 | these reference paragraphs will be kept. 59 | 60 | 61 | see corresponding documentation for docx2hub 62 | 63 | 64 | 65 | 66 | 67 | Directory (OS path, not file: URL) to which the file will be unzipped. If option is empty string, will be 68 | '.tmp' appended to OS file path. 69 | 70 | 71 | In order to speed up conversion for long documents, if more w:r elements are found, they won’t receive 72 | a srcpath of their own. In principle, srcpath generation may be sped up by computing them more efficiently, 73 | building on a tunnelled parameter that contains the parent element’s already-computed srcpath. 74 | 75 | 76 | Use filename that is passed on from http request response instead of 77 | possible filename read from URL in tr:file-uri (for example when using Gdocs URLs: 78 | https://docs.google.com/document/d/1Z5eYyjLoRhB24HYZ-d-wQKAFD3QDWZUsQH4cKHs2eiM/export?format=docx) 79 | 80 | 81 | Insert default attributes (i.e. document language and font names). Permitted values: yes|no 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 354 | 355 | 356 | 357 | 358 | 359 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | -------------------------------------------------------------------------------- /xsl/changemarkup.xsl: -------------------------------------------------------------------------------- 1 | 2 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 65 | 66 | 67 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 80 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 107 | 108 | 109 | 110 | 111 | 112 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 136 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 154 | 155 | -------------------------------------------------------------------------------- /xsl/comments.xsl: -------------------------------------------------------------------------------- 1 | 2 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 82 | 83 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /xsl/endnotes.xsl: -------------------------------------------------------------------------------- 1 | 2 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 97 | 99 | 101 | 106 | 108 | 110 | 111 | 112 | 127 | 128 | 131 | 132 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /xsl/fontmaps.catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /xsl/images.xsl: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 138 | 140 | 141 | 142 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 172 | 173 | 174 | 179 | 180 | 181 | -------------------------------------------------------------------------------- /xsl/index.xsl: -------------------------------------------------------------------------------- 1 | 2 | 24 | 25 | 26 | 27 | 28 | 29 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 52 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 138 | 139 | 140 | 141 | 143 | 144 | 145 | 146 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | ; 168 | 169 | 170 | 171 | 172 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 192 | 193 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | -------------------------------------------------------------------------------- /xsl/insert-doc-defaults.xsl: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 36 | 38 | 39 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 76 | 84 | 85 | 89 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /xsl/insert-xpath.xsl: -------------------------------------------------------------------------------- 1 | 2 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 51 | 52 | 53 | 54 | 55 | 59 | 60 | 61 | 72 | 73 | 74 | 104 | 105 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | http://schemas.microsoft.com/office/word/2016/wordml/cid 129 | http://schemas.microsoft.com/office/word/2015/wordml/symex 130 | http://transpect.io 131 | http://schemas.openxmlformats.org/officeDocument/2006/math 132 | http://www.w3.org/1998/Math/MathML 133 | urn:schemas-microsoft-com:office:office 134 | http://schemas.microsoft.com/office/2006/xmlPackage 135 | http://schemas.openxmlformats.org/officeDocument/2006/relationships 136 | http://schemas.openxmlformats.org/package/2006/relationships 137 | urn:schemas-microsoft-com:vml 138 | http://schemas.openxmlformats.org/wordprocessingml/2006/main 139 | http://schemas.microsoft.com/office/word/2003/wordml 140 | http://schemas.microsoft.com/office/word/2003/auxHint 141 | http://schemas.microsoft.com/office/word/2010/wordml 142 | http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing 143 | http://schemas.openxmlformats.org/package/2006/metadata/core-properties 144 | http://schemas.openxmlformats.org/officeDocument/2006/extended-properties 145 | http://schemas.openxmlformats.org/officeDocument/2006/custom-properties 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 157 | 158 | 159 | 160 | 161 | 162 | 164 | 165 | 166 | 167 | 168 | 170 | 171 | 172 | 173 | 174 | 176 | 177 | 178 | 179 | 180 | 181 | 183 | 184 | 185 | 186 | 187 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 197 | 198 | 199 | 200 | 201 | 202 | 205 | 208 | 209 | 210 | 212 | 213 | 214 | 215 | 217 | 218 | 219 | 220 | 221 | 223 | 224 | 225 | 226 | 227 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 241 | 242 | 246 | 247 | 250 | 251 | 252 | 253 | 254 | 255 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | -------------------------------------------------------------------------------- /xsl/main.xsl: -------------------------------------------------------------------------------- 1 | 2 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 79 | 80 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /xsl/modules/catch-all/catch-all.xsl: -------------------------------------------------------------------------------- 1 | 2 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /xsl/modules/error-handler/check-module: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | flag=0 4 | 5 | saxon -xsl:main.xsl -s:test.xml -it:main -o:tmp.xml 6 | 7 | 8 | if [ $flag == 1 ]; then 9 | echo "Check failed." 10 | exit -1 11 | else 12 | echo "Success!" 13 | fi 14 | -------------------------------------------------------------------------------- /xsl/modules/error-handler/error-handler.xsl: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /xsl/modules/error-handler/filter-logfile: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | umask 002 4 | 5 | if [[ $2 == 'no' ]]; then 6 | cat $1 7 | fi 8 | 9 | grep -v -E '^##' $1 | sed -e 's/^##//' > `dirname $1`/`basename $1 .log`.msg.log 10 | grep -E '^##' $1 | sed -e 's/^##//' > $1.tmp.log 11 | mv $1.tmp.log $1 -------------------------------------------------------------------------------- /xsl/modules/error-handler/main.xsl: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | Testtext 35 | 36 | WRN 37 | test-1 38 | test-1 39 | 40 | 41 | 42 | 43 | 44 | 45 | Testtext 2 46 | 47 | ERR 48 | test-2 49 | test-2 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /xsl/modules/error-handler/test.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /xsl/modules/error-handler/xslt_error-de.yml: -------------------------------------------------------------------------------- 1 | de: 2 | xslt_error: 3 | base: 4 | W2D_001: "Unerwartetes Kontrollzeichen innerhalb index: '{{info-text}}'" 5 | 6 | W2D_010: "Letzter Absatz einer Feldfunktion über mehrere Absätze ist kein 'end'." 7 | 8 | W2D_011: "Anzahl der 'begin' und 'end' sind verschieden im template handle-field-function: '{{info-text}}'" 9 | 10 | W2D_012: "Erster Knoten muss innerhalb des templates handle-field-function ein 'begin' sein." 11 | 12 | W2D_013: "Unerwartete Anzahl von 'begin' innerhalb handle-field-function: '{{info-text}}'" 13 | 14 | W2D_014: "Abweichende Anzahl von 'begin' und 'end' innerhalb des templates inline-field-function: '{{info-text}}'" 15 | 16 | W2D_020: "Unbekanntes Element im Mode '{{mode}}': '{{info-text}}'" 17 | 18 | W2D_021: "Unbekanntes Attribut im Mode '{{mode}}': '{{info-text}}'" 19 | 20 | W2D_022: "Kommentar ignoriert im Mode '{{mode}}': '{{info-text}}'" 21 | 22 | W2D_023: "PI ignoriert im Mode '{{mode}}': '{{info-text}}'" 23 | 24 | W2D_030: "Unerwartete(s) Element(e) innerhalb w:p: '{{info-text}}'" 25 | 26 | W2D_040: "Unbekannte Feldfunktion: '{{info-text}}'" 27 | 28 | W2D_050: "Innerhalb w:tcBorders kann w:inside noch nicht verarbeitet werden." 29 | 30 | W2D_051: "Unbekanntes Element für Tabellenzellen: '{{info-text}}'" 31 | 32 | W2D_052: "Summe der Spaltenbreiten und Breite der Tabelle stimmen nicht überein: '{{info-text}}'" 33 | 34 | W2D_060: "Kontext für tr:insert-numbering stimmt nicht: '{{info-text}}'" 35 | 36 | W2D_061: "Kein w:lvlText innerhalb von w:lvl." 37 | 38 | W2D_062: "Unbekanntes Format innerhalb w:numFmt: '{{info-text}}'" 39 | 40 | W2D_070: "'{{info-text}}' für @w:val wird innerhalb von w:jc nicht beachtet." 41 | 42 | W2D_071: "w:jc/@w:val ist nicht vom Typ ST_Jc simple type: '{{info-text}}'" 43 | 44 | W2D_080: "Kein Font zu w:sym." 45 | 46 | W2D_090: "Falscher Kontext innerhalb des templates format-text: '{{info-text}}'" 47 | 48 | W2D_091: "Unbekanntes Element zur Formatierung mit ST_OnOff simple type: '{{info-text}}'" 49 | 50 | W2D_092: "Unerwarteter Wert für w:vertAlign: '{{info-text}}'" 51 | 52 | W2D_501: "Strichzeichnung kann nicht konvertiert werden." 53 | 54 | W2D_502: "Eingebettetes Bild: '{{info-text}}'" 55 | 56 | W2D_601: "Zeichen aus Font '{{info-text}}' kann nicht richtig dargestellt werden." 57 | 58 | W2D_602: "Symbol in Feldfunktion kann nicht interpretiert werden: '{{info-text}}'" 59 | 60 | W2D_093: "In sich geschachtelte Feldfunktion: '{{info-text}}'" 61 | 62 | W2D_094: "Unendliche Rekursion beim Verarbeiten von Feldfunktionen: '{{info-text}}'" -------------------------------------------------------------------------------- /xsl/modules/preprocess-styles/preprocess-styles.xsl: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | 19 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 91 | 92 | 93 | 97 | 98 | 99 | 100 | 101 | 102 | 105 | 106 | 107 | 108 | 111 | 112 | 113 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 199 | 200 | 203 | 204 | 205 | 206 | 211 | 213 | 214 | 215 | 216 | 220 | 221 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | -------------------------------------------------------------------------------- /xsl/objects.xsl: -------------------------------------------------------------------------------- 1 | 2 | 26 | 27 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 50 | 51 | 52 | 53 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | INT 306 | vml 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | INT 319 | vml 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | INT 332 | vml 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | INT 345 | vml 346 | 347 | 348 | 349 | 350 | 351 | -------------------------------------------------------------------------------- /xsl/omml2mml/test-omml.xsl: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /xsl/remove-unused-rels.xsl: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 24 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /xsl/timing-profile.xsl: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | Analysis of Stylesheet Execution Time 79 |

Analysis of Stylesheet Execution Time

80 |

Total time: milliseconds

81 |

Time spent in each template or function:

82 |

The table below is ordered by the total net time spent in the template or function. 83 | Gross time means the time including called templates and functions; net time means 84 | time excluding time spent in called templates and functions.

85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 |
filelineinstructioncountaverage time (gross)total time (gross)average time (net)total time (net)
113 | 114 | 115 |
116 | 117 |
118 | -------------------------------------------------------------------------------- /xspec/map-props.xspec: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /xspec/omml2mml.xspec: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | d 16 | 17 | 18 | 19 | 20 | a 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | a 29 | 30 | 31 | 32 | 33 | d 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | d 45 | 46 | 47 | 48 | 49 | 50 | 51 | a 52 | 53 | 54 | 55 | 56 | b 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | a 69 | 70 | 71 | b 72 | 73 | 74 | 75 | 76 | 77 | 78 | d 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | d 90 | 91 | 92 | 93 | 94 | a 95 | 96 | 97 | 98 | 99 | b 100 | 101 | 102 | 103 | 104 | c 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | a 116 | 117 | 118 | 119 | 120 | d 121 | 122 | 123 | 124 | 125 | b 126 | 127 | 128 | c 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 0,8 146 | 147 | 148 | 149 | 0,8 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | =1- 163 | 164 | 165 | 166 | 167 | = 168 | 1 169 | - 170 | 171 | 172 | 173 | -------------------------------------------------------------------------------- /xspec/wml-to-dbk.xspec: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | a 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | =b 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | =c 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | a 65 | 66 | = 67 | b 68 | 69 | 70 | 71 | 72 | 73 | 74 | = 75 | c 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | a 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | b 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | a 129 | 130 | 131 | 132 | 133 | 134 | b 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | --------------------------------------------------------------------------------