Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 2 | TODO for the XML parser and stuff: |
| 3 | ================================== |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 4 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 5 | |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 6 | TODO: |
| 7 | ===== |
| 8 | |
Daniel Veillard | 3665069 | 2000-07-21 15:16:39 +0000 | [diff] [blame] | 9 | - If the internal encoding is not UTF8 saving to a given encoding doesn't |
| 10 | work => fix to force UTF8 encoding ... |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 11 | - problem when parsing hrefs with & with the HTML parser (IRC ac) |
Daniel Veillard | 5d211f4 | 2000-04-07 17:00:24 +0000 | [diff] [blame] | 12 | - DOM needs |
| 13 | xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value) |
| 14 | int xmlPruneProp(xmlNodePtr node, xmlAtttrPtr attr); |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 15 | - General checking of DTD validation in presence of namespaces ... hairy |
| 16 | mostly done |
Daniel Veillard | 5d211f4 | 2000-04-07 17:00:24 +0000 | [diff] [blame] | 17 | - Fix DTD + namespace validity problem |
| 18 | "Not valid: root and DtD name do not match 'ROOT' and 'prefix:ROOT'" |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 19 | mostly done |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 20 | - Correct standalone checking/emitting (hard) |
| 21 | 2.9 Standalone Document Declaration |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 22 | - Better checking of external parsed entities TAG 1234 |
| 23 | - Find way of representing PERefs in the Dtd so that %entity; can |
| 24 | be saved back. |
| 25 | - Go through erratas and do the cleanup. |
| 26 | http://www.w3.org/XML/xml-19980210-errata ... bummmer |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 27 | - Handle undefined namespaces in entity contents better ... at least |
| 28 | issue a warning |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 29 | - fix --disable-corba configure switch handling, and use XML_WITHOUT_CORBA |
| 30 | not WITHOUT_CORBA flag |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 31 | |
| 32 | TODO: |
| 33 | ===== |
| 34 | |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 35 | - Get OASIS testsuite to a more friendly result, check all the results |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 36 | once stable. Current state at: |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 37 | http://xmlsoft.org/conf/result.html |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 38 | |
Daniel Veillard | 3dd82e7 | 2000-03-20 11:48:04 +0000 | [diff] [blame] | 39 | - Optimization of tag strings allocation ? |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 40 | |
| 41 | - maintain coherency of namespace when doing cut'n paste operations |
| 42 | => the functions are coded, but need testing |
| 43 | |
Daniel Veillard | 3dd82e7 | 2000-03-20 11:48:04 +0000 | [diff] [blame] | 44 | - function to rebuild the ID table |
| 45 | - functions to rebuild the DTD hash tables (after DTD changes). |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 46 | |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 47 | |
| 48 | EXTENSIONS: |
| 49 | =========== |
Daniel Veillard | 3dd82e7 | 2000-03-20 11:48:04 +0000 | [diff] [blame] | 50 | |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 51 | - Tools to produce man pages from the SGML docs. |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 52 | - Finish XPath |
| 53 | => attributes addressing troubles |
| 54 | => defaulted attributes handling |
| 55 | => namespace axis ? |
| 56 | |
| 57 | - Add Xpointer recognition/API |
| 58 | |
| 59 | - Add Xlink recognition/API |
| 60 | => started adding an xlink.[ch] with a unified API for XML and HTML. |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 61 | it's crap :-( |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 62 | |
| 63 | - Implement XSLT |
| 64 | => seems that someone volunteered ?!? |
| 65 | |
| 66 | - Implement XSchemas |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 67 | => Really need to be done <grin/> |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 68 | |
| 69 | - O2K parsing; |
| 70 | => this is a somewhat ugly mix of HTML and XML, adding a specific |
| 71 | routine in the comment parsing code of HTML and plug the XML |
| 72 | parsing one in-there should not be too hard. Key point is to get |
| 73 | XSL to transform all this to something decent ... |
| 74 | |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 75 | - extend the shell with: |
| 76 | - edit |
| 77 | - load/save |
| 78 | - mv (yum, yum, but it's harder because directories are ordered in |
| 79 | our case, mvup and mvdown would be required) |
| 80 | |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 81 | - Add HTML validation using the XHTML DTD |
| 82 | - problem: do we want to keep and maintain the code for handling |
| 83 | DTD/System ID cache directly in libxml ? |
| 84 | |
| 85 | - Add a DTD cache prefilled with xhtml DTDs and entities and a program to |
| 86 | manage them -> like the /usr/bin/install-catalog from SGML |
| 87 | right place seems $datadir/xmldtds |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 88 | Maybe this is better left to user apps |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 89 | |
| 90 | - Add output to XHTML in case of HTML documents. |
| 91 | |
Daniel Veillard | e3d88ef | 2000-01-24 13:55:06 +0000 | [diff] [blame] | 92 | |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 93 | Done: |
| 94 | ===== |
| 95 | |
Daniel Veillard | 32bc74e | 2000-07-14 14:49:25 +0000 | [diff] [blame] | 96 | - Add an ASCII I/O encoder (asciiToUTF8 and UTF8Toascii) |
| 97 | - Issue warning when using non-absolute namespaces URI. |
| 98 | - the html parser should add <head> and <body> if they don't exist |
| 99 | started, not finished. |
| 100 | Done, the automatic closing is added and 3 testcases were inserted |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 101 | - Command to force the parser to stop parsing and ignore the rest of the file. |
Daniel Veillard | 32bc74e | 2000-07-14 14:49:25 +0000 | [diff] [blame] | 102 | xmlStopParser() should allow this, mostly untested |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 103 | - support for HTML empty attributes like <hr noshade> |
| 104 | - plugged iconv() in for support of a large set of encodings. |
| 105 | - xmlSwitchToEncoding() rewrite done |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 106 | - URI checkings (no fragments) rfc2396.txt |
Daniel Veillard | 5d211f4 | 2000-04-07 17:00:24 +0000 | [diff] [blame] | 107 | - Added a clean mechanism for overload or added input methods: |
| 108 | xmlRegisterInputCallbacks() |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 109 | - dynamically adapt the alloc entry point to use g_alloc()/g_free() |
| 110 | if the programmer wants it: |
| 111 | - use xmlMemSetup() to reset the routines used. |
| 112 | - Check attribute normalization especially xmlGetProp() |
| 113 | - Validity checking problems for NOTATIONS attributes |
| 114 | - Validity checking problems for ENTITY ENTITIES attributes |
| 115 | - Parsing of a well balanced chunk xmlParseBalancedChunkMemory() |
| 116 | - URI module: validation, base, etc ... see uri.[ch] |
| 117 | - turn tester into a generic program xmllint installed with libxml |
Daniel Veillard | ec30341 | 2000-03-24 13:41:54 +0000 | [diff] [blame] | 118 | - extend validity checks to go through entities content instead of |
| 119 | just labelling them PCDATA |
Daniel Veillard | 75c2921 | 2000-03-14 18:33:47 +0000 | [diff] [blame] | 120 | - Save Dtds using the children list instead of dumping the tables, |
| 121 | order is preserved as well as comments and PIs |
| 122 | - Wrote a notice of changes requires to go from 1.x to 2.x |
| 123 | - make sure that all SAX callbacks are disabled if a WF error is detected |
| 124 | - checking/handling of newline normalization |
| 125 | http://localhost/www.xml.com/axml/target.html#sec-line-ends |
| 126 | - correct checking of '&' '%' on entities content. |
| 127 | - checking of PE/Nesting on entities declaration |
| 128 | - checking/handling of xml:space |
| 129 | - checking done. |
| 130 | - handling done, not well tested |
| 131 | - Language identification code, productions [33] to [38] |
| 132 | => done, the check has been added and report WFness errors |
| 133 | - Conditional sections in DTDs [61] to [65] |
| 134 | => should this crap be really implemented ??? |
| 135 | => Yep OASIS testsuite uses them |
| 136 | - Allow parsed entities defined in the internal subset to override |
| 137 | the ones defined in the external subset (DtD customization). |
| 138 | => This mean that the entity content should be computed only at |
| 139 | use time, i.e. keep the orig string only at parse time and expand |
| 140 | only when referenced from the external subset :-( |
| 141 | Needed for complete use of most DTD from Eve Maler |
| 142 | - Add regression tests for all WFC errors |
| 143 | => did some in test/WFC |
| 144 | => added OASIS testsuite routines |
| 145 | http://xmlsoft.org/conf/result.html |
| 146 | |
| 147 | - I18N: http://wap.trondheim.com/vaer/index.phtml is not XML and accepted |
| 148 | by the XML parser, UTF-8 should be checked when there is no "encoding" |
| 149 | declared ! |
| 150 | - Support for UTF-8 and UTF-16 encoding |
| 151 | => added some convertion routines provided by Martin Durst |
| 152 | patched them, got fixes from @@@ |
| 153 | I plan to keep everything internally as UTF-8 (or ISO-Latin-X) |
| 154 | this is slightly more costly but more compact, and recent processors |
| 155 | efficiency is cache related. The key for good performances is keeping |
| 156 | the data set small, so will I. |
| 157 | => the new progressive reading routines call the detection code |
| 158 | is enabled, tested the ISO->UTF-8 stuff |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 159 | - External entities loading: |
| 160 | - allow override by client code |
| 161 | - make sure it is alled for all external entities referenced |
| 162 | Done, client code should use xmlSetExternalEntityLoader() to set |
| 163 | the default loading routine. It will be called each time an external |
| 164 | entity entity resolution is triggered. |
| 165 | - maintain ID coherency when removing/changing attributes |
| 166 | The function used to deallocate attributes now check for it being an |
| 167 | ID and removes it from the table. |
| 168 | - push mode parsing i.e. non-blocking state based parser |
| 169 | done, both for XML and HTML parsers. Use xmlCreatePushParserCtxt() |
| 170 | and xmlParseChunk() and html counterparts. |
| 171 | The tester program now has a --push option to select that parser |
| 172 | front-end. Douplicated tests to use both and check results are similar. |
| 173 | |
| 174 | - Most of XPath, still see some troubles and occasionnal memleaks. |
| 175 | - an XML shell, allowing to traverse/manipulate an XML document with |
| 176 | a shell like interface, and using XPath for the anming syntax |
| 177 | - use of readline and history added when available |
| 178 | - the shell interface has been cleanly separated and moved to debugXML.c |
| 179 | - HTML parser, should be fairly stable now |
| 180 | - API to search the lang of an attribute |
| 181 | - Collect IDs at parsing and maintain a table. |
| 182 | PBM: maintain the table coherency |
| 183 | PBM: how to detect ID types in absence of DtD ! |
| 184 | - Use it for XPath ID support |
| 185 | - Add validity checking |
| 186 | Should be finished now ! |
| 187 | - Add regression tests with entity substitutions |
| 188 | |
| 189 | - External Parsed entities, either XML or external Subset [78] and [79] |
| 190 | parsing the xmllang DtD now works, so it should be sufficient for |
| 191 | most cases ! |
| 192 | |
| 193 | - progressive reading. The entity support is a first step toward |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 194 | asbtraction of an input stream. A large part of the context is still |
| 195 | located on the stack, moving to a state machine and putting everyting |
| 196 | in the parsing context should provide an adequate solution. |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 197 | => Rather than progressive parsing, give more power to the SAX-like |
| 198 | interface. Currently the DOM-like representation is built but |
| 199 | => it should be possible to define that only as a set of SAX callbacks |
| 200 | and remove the tree creation from the parser code. |
| 201 | DONE |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 202 | |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 203 | - DOM support, instead of using a proprietary in memory |
| 204 | format for the document representation, the parser should |
| 205 | call a DOM API to actually build the resulting document. |
| 206 | Then the parser becomes independent of the in-memory |
| 207 | representation of the document. Even better using RPC's |
| 208 | the parser can actually build the document in another |
| 209 | program. |
| 210 | => Work started, now the internal representation is by default |
| 211 | very near a direct DOM implementation. The DOM glue is implemented |
| 212 | as a separate module. See the GNOME gdome module. |
| 213 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 214 | - C++ support : John Ehresman <jehresma@dsg.harvard.edu> |
| 215 | - Updated code to follow more recent specs, added compatibility flag |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 216 | - Better error handling, use a dedicated, overridable error |
| 217 | handling function. |
| 218 | - Support for CDATA. |
| 219 | - Keep track of line numbers for better error reporting. |
| 220 | - Support for PI (SAX one). |
Daniel Veillard | ad8f99d | 2000-01-15 14:20:03 +0000 | [diff] [blame] | 221 | - Support for Comments (bad, should be in ASAP, they are parsed |
| 222 | but not stored), should be configurable. |
| 223 | - Improve the support of entities on save (+SAX). |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 224 | |