TODO 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. 124907 HTML parse buffer problem when parsing larse in-memory docs
  2. 124110 DTD validation && wrong namespace
  3. 123564 xmllint --html --format
  4. TODO for the XML parser and stuff:
  5. ==================================
  6. this tend to be outdated :-\ ...
  7. DOCS:
  8. =====
  9. - use case of using XInclude to load for example a description.
  10. order document + product base -(XSLT)-> quote with XIncludes
  11. |
  12. HTML output with description of parts <---(XSLT)--
  13. TODO:
  14. =====
  15. - XInclude at the SAX level (libSRVG)
  16. - fix the C code prototype to bring back doc/libxml-undocumented.txt
  17. to a reasonable level
  18. - Computation of base when HTTP redirect occurs, might affect HTTP
  19. interfaces.
  20. - Computation of base in XInclude. Relativization of URIs.
  21. - listing all attributes in a node.
  22. - Better checking of external parsed entities TAG 1234
  23. - Go through erratas and do the cleanup.
  24. http://www.w3.org/XML/xml-19980210-errata ... started ...
  25. - jamesh suggestion: SAX like functions to save a document ie. call a
  26. function to open a new element with given attributes, write character
  27. data, close last element, etc
  28. + inversted SAX, initial patch in April 2002 archives.
  29. - htmlParseDoc has parameter encoding which is not used.
  30. Function htmlCreateDocParserCtxt ignore it.
  31. - fix realloc() usage.
  32. - Stricten the UTF8 conformance (Martin Duerst):
  33. http://www.w3.org/2001/06/utf-8-test/.
  34. The bad files are in http://www.w3.org/2001/06/utf-8-wrong/.
  35. - xml:id normalized value
  36. TODO:
  37. =====
  38. - move all string manipulation functions (xmlStrdup, xmlStrlen, etc.) to
  39. global.c. Bjorn noted that the following files depends on parser.o solely
  40. because of these string functions: entities.o, global.o, hash.o, tree.o,
  41. xmlIO.o, and xpath.o.
  42. - Optimization of tag strings allocation ?
  43. - maintain coherency of namespace when doing cut'n paste operations
  44. => the functions are coded, but need testing
  45. - function to rebuild the ID table
  46. - functions to rebuild the DTD hash tables (after DTD changes).
  47. EXTENSIONS:
  48. ===========
  49. - Tools to produce man pages from the SGML docs.
  50. - Add Xpointer recognition/API
  51. - Add Xlink recognition/API
  52. => started adding an xlink.[ch] with a unified API for XML and HTML.
  53. it's crap :-(
  54. - Implement XSchemas
  55. => Really need to be done <grin/>
  56. - datatype are complete, but structure support is very limited.
  57. - extend the shell with:
  58. - edit
  59. - load/save
  60. - mv (yum, yum, but it's harder because directories are ordered in
  61. our case, mvup and mvdown would be required)
  62. Done:
  63. =====
  64. - Add HTML validation using the XHTML DTD
  65. - problem: do we want to keep and maintain the code for handling
  66. DTD/System ID cache directly in libxml ?
  67. => not really done that way, but there are new APIs to check elements
  68. or attributes. Otherwise XHTML validation directly ...
  69. - XML Schemas datatypes except Base64 and BinHex
  70. - Relax NG validation
  71. - XmlTextReader streaming API + validation
  72. - Add a DTD cache prefilled with xhtml DTDs and entities and a program to
  73. manage them -> like the /usr/bin/install-catalog from SGML
  74. right place seems $datadir/xmldtds
  75. Maybe this is better left to user apps
  76. => use a catalog instead , and xhtml1-dtd package
  77. - Add output to XHTML
  78. => XML serializer automatically recognize the DTd and apply the specific
  79. rules.
  80. - Fix output of <tst val="x&#xA;y"/>
  81. - compliance to XML-Namespace checking, see section 6 of
  82. http://www.w3.org/TR/REC-xml-names/
  83. - Correct standalone checking/emitting (hard)
  84. 2.9 Standalone Document Declaration
  85. - Implement OASIS XML Catalog support
  86. http://www.oasis-open.org/committees/entity/
  87. - Get OASIS testsuite to a more friendly result, check all the results
  88. once stable. the check-xml-test-suite.py script does this
  89. - Implement XSLT
  90. => libxslt
  91. - Finish XPath
  92. => attributes addressing troubles
  93. => defaulted attributes handling
  94. => namespace axis ?
  95. done as XSLT got debugged
  96. - bug reported by Michael Meallin on validation problems
  97. => Actually means I need to add support (and warn) for non-deterministic
  98. content model.
  99. - Handle undefined namespaces in entity contents better ... at least
  100. issue a warning
  101. - DOM needs
  102. int xmlPruneProp(xmlNodePtr node, xmlAtttrPtr attr);
  103. => done it's actually xmlRemoveProp xmlUnsetProp xmlUnsetNsProp
  104. - HTML: handling of Script and style data elements, need special code in
  105. the parser and saving functions (handling of < > " ' ...):
  106. http://www.w3.org/TR/html4/types.html#type-script
  107. Attributes are no problems since entities are accepted.
  108. - DOM needs
  109. xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
  110. - problem when parsing hrefs with & with the HTML parser (IRC ac)
  111. - If the internal encoding is not UTF8 saving to a given encoding doesn't
  112. work => fix to force UTF8 encoding ...
  113. done, added documentation too
  114. - Add an ASCII I/O encoder (asciiToUTF8 and UTF8Toascii)
  115. - Issue warning when using non-absolute namespaces URI.
  116. - the html parser should add <head> and <body> if they don't exist
  117. started, not finished.
  118. Done, the automatic closing is added and 3 testcases were inserted
  119. - Command to force the parser to stop parsing and ignore the rest of the file.
  120. xmlStopParser() should allow this, mostly untested
  121. - support for HTML empty attributes like <hr noshade>
  122. - plugged iconv() in for support of a large set of encodings.
  123. - xmlSwitchToEncoding() rewrite done
  124. - URI checkings (no fragments) rfc2396.txt
  125. - Added a clean mechanism for overload or added input methods:
  126. xmlRegisterInputCallbacks()
  127. - dynamically adapt the alloc entry point to use g_alloc()/g_free()
  128. if the programmer wants it:
  129. - use xmlMemSetup() to reset the routines used.
  130. - Check attribute normalization especially xmlGetProp()
  131. - Validity checking problems for NOTATIONS attributes
  132. - Validity checking problems for ENTITY ENTITIES attributes
  133. - Parsing of a well balanced chunk xmlParseBalancedChunkMemory()
  134. - URI module: validation, base, etc ... see uri.[ch]
  135. - turn tester into a generic program xmllint installed with libxml
  136. - extend validity checks to go through entities content instead of
  137. just labelling them PCDATA
  138. - Save Dtds using the children list instead of dumping the tables,
  139. order is preserved as well as comments and PIs
  140. - Wrote a notice of changes requires to go from 1.x to 2.x
  141. - make sure that all SAX callbacks are disabled if a WF error is detected
  142. - checking/handling of newline normalization
  143. http://localhost/www.xml.com/axml/target.html#sec-line-ends
  144. - correct checking of '&' '%' on entities content.
  145. - checking of PE/Nesting on entities declaration
  146. - checking/handling of xml:space
  147. - checking done.
  148. - handling done, not well tested
  149. - Language identification code, productions [33] to [38]
  150. => done, the check has been added and report WFness errors
  151. - Conditional sections in DTDs [61] to [65]
  152. => should this crap be really implemented ???
  153. => Yep OASIS testsuite uses them
  154. - Allow parsed entities defined in the internal subset to override
  155. the ones defined in the external subset (DtD customization).
  156. => This mean that the entity content should be computed only at
  157. use time, i.e. keep the orig string only at parse time and expand
  158. only when referenced from the external subset :-(
  159. Needed for complete use of most DTD from Eve Maler
  160. - Add regression tests for all WFC errors
  161. => did some in test/WFC
  162. => added OASIS testsuite routines
  163. http://xmlsoft.org/conf/result.html
  164. - I18N: http://wap.trondheim.com/vaer/index.phtml is not XML and accepted
  165. by the XML parser, UTF-8 should be checked when there is no "encoding"
  166. declared !
  167. - Support for UTF-8 and UTF-16 encoding
  168. => added some conversion routines provided by Martin Durst
  169. patched them, got fixes from @@@
  170. I plan to keep everything internally as UTF-8 (or ISO-Latin-X)
  171. this is slightly more costly but more compact, and recent processors
  172. efficiency is cache related. The key for good performances is keeping
  173. the data set small, so will I.
  174. => the new progressive reading routines call the detection code
  175. is enabled, tested the ISO->UTF-8 stuff
  176. - External entities loading:
  177. - allow override by client code
  178. - make sure it is called for all external entities referenced
  179. Done, client code should use xmlSetExternalEntityLoader() to set
  180. the default loading routine. It will be called each time an external
  181. entity entity resolution is triggered.
  182. - maintain ID coherency when removing/changing attributes
  183. The function used to deallocate attributes now check for it being an
  184. ID and removes it from the table.
  185. - push mode parsing i.e. non-blocking state based parser
  186. done, both for XML and HTML parsers. Use xmlCreatePushParserCtxt()
  187. and xmlParseChunk() and html counterparts.
  188. The tester program now has a --push option to select that parser
  189. front-end. Douplicated tests to use both and check results are similar.
  190. - Most of XPath, still see some troubles and occasionnal memleaks.
  191. - an XML shell, allowing to traverse/manipulate an XML document with
  192. a shell like interface, and using XPath for the anming syntax
  193. - use of readline and history added when available
  194. - the shell interface has been cleanly separated and moved to debugXML.c
  195. - HTML parser, should be fairly stable now
  196. - API to search the lang of an attribute
  197. - Collect IDs at parsing and maintain a table.
  198. PBM: maintain the table coherency
  199. PBM: how to detect ID types in absence of DtD !
  200. - Use it for XPath ID support
  201. - Add validity checking
  202. Should be finished now !
  203. - Add regression tests with entity substitutions
  204. - External Parsed entities, either XML or external Subset [78] and [79]
  205. parsing the xmllang DtD now works, so it should be sufficient for
  206. most cases !
  207. - progressive reading. The entity support is a first step toward
  208. abstraction of an input stream. A large part of the context is still
  209. located on the stack, moving to a state machine and putting everything
  210. in the parsing context should provide an adequate solution.
  211. => Rather than progressive parsing, give more power to the SAX-like
  212. interface. Currently the DOM-like representation is built but
  213. => it should be possible to define that only as a set of SAX callbacks
  214. and remove the tree creation from the parser code.
  215. DONE
  216. - DOM support, instead of using a proprietary in memory
  217. format for the document representation, the parser should
  218. call a DOM API to actually build the resulting document.
  219. Then the parser becomes independent of the in-memory
  220. representation of the document. Even better using RPC's
  221. the parser can actually build the document in another
  222. program.
  223. => Work started, now the internal representation is by default
  224. very near a direct DOM implementation. The DOM glue is implemented
  225. as a separate module. See the GNOME gdome module.
  226. - C++ support : John Ehresman <jehresma@dsg.harvard.edu>
  227. - Updated code to follow more recent specs, added compatibility flag
  228. - Better error handling, use a dedicated, overridable error
  229. handling function.
  230. - Support for CDATA.
  231. - Keep track of line numbers for better error reporting.
  232. - Support for PI (SAX one).
  233. - Support for Comments (bad, should be in ASAP, they are parsed
  234. but not stored), should be configurable.
  235. - Improve the support of entities on save (+SAX).