blob: 2ae1246b7e4b5d6aa3aca5856c1bfc7dee3a2d1f [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001
Daniel Veillardad8f99d2000-01-15 14:20:03 +00002 TODO for the XML parser and stuff:
3 ==================================
Daniel Veillard01791d51998-07-24 19:24:09 +00004
Daniel Veillarde39a93d2001-04-28 14:35:02 +00005 $Id$
6
7 this tend to be outdated :-\ ...
Daniel Veillard361d8452000-04-03 19:48:13 +00008
Daniel Veillard75c29212000-03-14 18:33:47 +00009TODO:
10=====
11
Daniel Veillard4ec885a2001-06-17 10:31:07 +000012- fix the C code prototype to bring back doc/libxml-undocumented.txt
13 to a reasonable level
Daniel Veillardbf432752000-11-12 15:56:56 +000014- Computation of base when HTTP redirect occurs, might affect HTTP
15 interfaces.
Daniel Veillarde0854c32000-08-27 21:12:29 +000016- listing all attributes in a node.
Daniel Veillard75c29212000-03-14 18:33:47 +000017- Correct standalone checking/emitting (hard)
18 2.9 Standalone Document Declaration
Daniel Veillard75c29212000-03-14 18:33:47 +000019- Better checking of external parsed entities TAG 1234
Daniel Veillard75c29212000-03-14 18:33:47 +000020- Go through erratas and do the cleanup.
Daniel Veillarde0854c32000-08-27 21:12:29 +000021 http://www.w3.org/XML/xml-19980210-errata ... started ...
Daniel Veillardf0cc7cc2000-08-26 21:40:43 +000022- reported by Michael, update of doc node when pasting on a new document
23 There can be far more than simply the doc pointer which refers to
24 the old document, for example namespace declarations or entities
25 references can also be a nasty problem, far more than updating the
26 doc values.
Daniel Veillard46057e12000-09-24 18:49:59 +000027- jamesh suggestion: SAX like functions to save a document ie. call a
28 function to open a new element with given attributes, write character
29 data, close last element, etc
Daniel Veillarda6d8eb62000-12-27 10:46:47 +000030- htmlParseDoc has parameter encoding which is not used.
31 Function htmlCreateDocParserCtxt ignore it.
Daniel Veillardc2f4df22001-01-04 14:06:39 +000032- fix realloc() usage.
Daniel Veillard389e6b72001-01-15 19:41:13 +000033- compliance to XML-Namespace checking, see section 6 of
34 http://www.w3.org/TR/REC-xml-names/
35- Fix output of <tst val="x&#xA;y"/>
Daniel Veillardd7e4d652001-06-15 14:57:10 +000036- Implement OASIS XML Catalog support
37 http://www.oasis-open.org/committees/entity/
38
Daniel Veillardad8f99d2000-01-15 14:20:03 +000039
40TODO:
41=====
42
Daniel Veillard75c29212000-03-14 18:33:47 +000043- Get OASIS testsuite to a more friendly result, check all the results
Daniel Veillard496a1cf2000-05-03 14:20:55 +000044 once stable. Current state at:
Daniel Veillard75c29212000-03-14 18:33:47 +000045 http://xmlsoft.org/conf/result.html
Daniel Veillardad8f99d2000-01-15 14:20:03 +000046
Daniel Veillard3dd82e72000-03-20 11:48:04 +000047- Optimization of tag strings allocation ?
Daniel Veillard75c29212000-03-14 18:33:47 +000048
49- maintain coherency of namespace when doing cut'n paste operations
50 => the functions are coded, but need testing
51
Daniel Veillard3dd82e72000-03-20 11:48:04 +000052- function to rebuild the ID table
53- functions to rebuild the DTD hash tables (after DTD changes).
Daniel Veillard75c29212000-03-14 18:33:47 +000054
Daniel Veillard75c29212000-03-14 18:33:47 +000055
56EXTENSIONS:
57===========
Daniel Veillard3dd82e72000-03-20 11:48:04 +000058
Daniel Veillard75c29212000-03-14 18:33:47 +000059- Tools to produce man pages from the SGML docs.
Daniel Veillardad8f99d2000-01-15 14:20:03 +000060
61- Add Xpointer recognition/API
62
63- Add Xlink recognition/API
64 => started adding an xlink.[ch] with a unified API for XML and HTML.
Daniel Veillard496a1cf2000-05-03 14:20:55 +000065 it's crap :-(
Daniel Veillardad8f99d2000-01-15 14:20:03 +000066
Daniel Veillardad8f99d2000-01-15 14:20:03 +000067- Implement XSchemas
Daniel Veillard496a1cf2000-05-03 14:20:55 +000068 => Really need to be done <grin/>
Daniel Veillardad8f99d2000-01-15 14:20:03 +000069
70- O2K parsing;
71 => this is a somewhat ugly mix of HTML and XML, adding a specific
72 routine in the comment parsing code of HTML and plug the XML
73 parsing one in-there should not be too hard. Key point is to get
74 XSL to transform all this to something decent ...
Daniel Veillard96ed5832001-06-15 22:22:04 +000075 => forget about it ?
Daniel Veillardad8f99d2000-01-15 14:20:03 +000076
Daniel Veillardad8f99d2000-01-15 14:20:03 +000077- extend the shell with:
78 - edit
79 - load/save
80 - mv (yum, yum, but it's harder because directories are ordered in
81 our case, mvup and mvdown would be required)
82
Daniel Veillardad8f99d2000-01-15 14:20:03 +000083- Add HTML validation using the XHTML DTD
84 - problem: do we want to keep and maintain the code for handling
85 DTD/System ID cache directly in libxml ?
86
87- Add a DTD cache prefilled with xhtml DTDs and entities and a program to
88 manage them -> like the /usr/bin/install-catalog from SGML
89 right place seems $datadir/xmldtds
Daniel Veillard361d8452000-04-03 19:48:13 +000090 Maybe this is better left to user apps
Daniel Veillardad8f99d2000-01-15 14:20:03 +000091
92- Add output to XHTML in case of HTML documents.
93
Daniel Veillarde3d88ef2000-01-24 13:55:06 +000094
Daniel Veillardad8f99d2000-01-15 14:20:03 +000095Done:
96=====
97
Daniel Veillard96ed5832001-06-15 22:22:04 +000098- Implement XSLT
99 => libxslt
100
101- Finish XPath
102 => attributes addressing troubles
103 => defaulted attributes handling
104 => namespace axis ?
105 done as XSLT got debugged
106
Daniel Veillardd7e4d652001-06-15 14:57:10 +0000107- bug reported by Michael Meallin on validation problems
108 => Actually means I need to add support (and warn) for non-deterministic
109 content model.
110- Handle undefined namespaces in entity contents better ... at least
111 issue a warning
Daniel Veillard9403a042001-05-28 11:00:53 +0000112- DOM needs
113 int xmlPruneProp(xmlNodePtr node, xmlAtttrPtr attr);
114 => done it's actually xmlRemoveProp xmlUnsetProp xmlUnsetNsProp
115
Daniel Veillard1e851392000-10-15 10:02:56 +0000116- HTML: handling of Script and style data elements, need special code in
117 the parser and saving functions (handling of < > " ' ...):
118 http://www.w3.org/TR/html4/types.html#type-script
119 Attributes are no problems since entities are accepted.
Daniel Veillarde0854c32000-08-27 21:12:29 +0000120- DOM needs
121 xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
Daniel Veillard2f2bf412000-08-20 15:11:02 +0000122- problem when parsing hrefs with & with the HTML parser (IRC ac)
123- If the internal encoding is not UTF8 saving to a given encoding doesn't
124 work => fix to force UTF8 encoding ...
125 done, added documentation too
Daniel Veillard32bc74e2000-07-14 14:49:25 +0000126- Add an ASCII I/O encoder (asciiToUTF8 and UTF8Toascii)
127- Issue warning when using non-absolute namespaces URI.
128- the html parser should add <head> and <body> if they don't exist
129 started, not finished.
130 Done, the automatic closing is added and 3 testcases were inserted
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000131- Command to force the parser to stop parsing and ignore the rest of the file.
Daniel Veillard32bc74e2000-07-14 14:49:25 +0000132 xmlStopParser() should allow this, mostly untested
Daniel Veillardbe803962000-06-28 23:40:59 +0000133- support for HTML empty attributes like <hr noshade>
134- plugged iconv() in for support of a large set of encodings.
135- xmlSwitchToEncoding() rewrite done
Daniel Veillard496a1cf2000-05-03 14:20:55 +0000136- URI checkings (no fragments) rfc2396.txt
Daniel Veillard5d211f42000-04-07 17:00:24 +0000137- Added a clean mechanism for overload or added input methods:
138 xmlRegisterInputCallbacks()
Daniel Veillard361d8452000-04-03 19:48:13 +0000139- dynamically adapt the alloc entry point to use g_alloc()/g_free()
140 if the programmer wants it:
141 - use xmlMemSetup() to reset the routines used.
142- Check attribute normalization especially xmlGetProp()
143- Validity checking problems for NOTATIONS attributes
144- Validity checking problems for ENTITY ENTITIES attributes
145- Parsing of a well balanced chunk xmlParseBalancedChunkMemory()
146- URI module: validation, base, etc ... see uri.[ch]
147- turn tester into a generic program xmllint installed with libxml
Daniel Veillardec303412000-03-24 13:41:54 +0000148- extend validity checks to go through entities content instead of
149 just labelling them PCDATA
Daniel Veillard75c29212000-03-14 18:33:47 +0000150- Save Dtds using the children list instead of dumping the tables,
151 order is preserved as well as comments and PIs
152- Wrote a notice of changes requires to go from 1.x to 2.x
153- make sure that all SAX callbacks are disabled if a WF error is detected
154- checking/handling of newline normalization
155 http://localhost/www.xml.com/axml/target.html#sec-line-ends
156- correct checking of '&' '%' on entities content.
157- checking of PE/Nesting on entities declaration
158- checking/handling of xml:space
159 - checking done.
160 - handling done, not well tested
161- Language identification code, productions [33] to [38]
162 => done, the check has been added and report WFness errors
163- Conditional sections in DTDs [61] to [65]
164 => should this crap be really implemented ???
165 => Yep OASIS testsuite uses them
166- Allow parsed entities defined in the internal subset to override
167 the ones defined in the external subset (DtD customization).
168 => This mean that the entity content should be computed only at
169 use time, i.e. keep the orig string only at parse time and expand
170 only when referenced from the external subset :-(
171 Needed for complete use of most DTD from Eve Maler
172- Add regression tests for all WFC errors
173 => did some in test/WFC
174 => added OASIS testsuite routines
175 http://xmlsoft.org/conf/result.html
176
177- I18N: http://wap.trondheim.com/vaer/index.phtml is not XML and accepted
178 by the XML parser, UTF-8 should be checked when there is no "encoding"
179 declared !
180- Support for UTF-8 and UTF-16 encoding
181 => added some convertion routines provided by Martin Durst
182 patched them, got fixes from @@@
183 I plan to keep everything internally as UTF-8 (or ISO-Latin-X)
184 this is slightly more costly but more compact, and recent processors
185 efficiency is cache related. The key for good performances is keeping
186 the data set small, so will I.
187 => the new progressive reading routines call the detection code
188 is enabled, tested the ISO->UTF-8 stuff
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000189- External entities loading:
190 - allow override by client code
191 - make sure it is alled for all external entities referenced
192 Done, client code should use xmlSetExternalEntityLoader() to set
193 the default loading routine. It will be called each time an external
194 entity entity resolution is triggered.
195- maintain ID coherency when removing/changing attributes
196 The function used to deallocate attributes now check for it being an
197 ID and removes it from the table.
198- push mode parsing i.e. non-blocking state based parser
199 done, both for XML and HTML parsers. Use xmlCreatePushParserCtxt()
200 and xmlParseChunk() and html counterparts.
201 The tester program now has a --push option to select that parser
202 front-end. Douplicated tests to use both and check results are similar.
203
204- Most of XPath, still see some troubles and occasionnal memleaks.
205- an XML shell, allowing to traverse/manipulate an XML document with
206 a shell like interface, and using XPath for the anming syntax
207 - use of readline and history added when available
208 - the shell interface has been cleanly separated and moved to debugXML.c
209- HTML parser, should be fairly stable now
210- API to search the lang of an attribute
211- Collect IDs at parsing and maintain a table.
212 PBM: maintain the table coherency
213 PBM: how to detect ID types in absence of DtD !
214- Use it for XPath ID support
215- Add validity checking
216 Should be finished now !
217- Add regression tests with entity substitutions
218
219- External Parsed entities, either XML or external Subset [78] and [79]
220 parsing the xmllang DtD now works, so it should be sufficient for
221 most cases !
222
223- progressive reading. The entity support is a first step toward
Daniel Veillard260a68f1998-08-13 03:39:55 +0000224 asbtraction of an input stream. A large part of the context is still
225 located on the stack, moving to a state machine and putting everyting
226 in the parsing context should provide an adequate solution.
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000227 => Rather than progressive parsing, give more power to the SAX-like
228 interface. Currently the DOM-like representation is built but
229 => it should be possible to define that only as a set of SAX callbacks
230 and remove the tree creation from the parser code.
231 DONE
Daniel Veillard01791d51998-07-24 19:24:09 +0000232
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000233- DOM support, instead of using a proprietary in memory
234 format for the document representation, the parser should
235 call a DOM API to actually build the resulting document.
236 Then the parser becomes independent of the in-memory
237 representation of the document. Even better using RPC's
238 the parser can actually build the document in another
239 program.
240 => Work started, now the internal representation is by default
241 very near a direct DOM implementation. The DOM glue is implemented
242 as a separate module. See the GNOME gdome module.
243
Daniel Veillard01791d51998-07-24 19:24:09 +0000244- C++ support : John Ehresman <jehresma@dsg.harvard.edu>
245- Updated code to follow more recent specs, added compatibility flag
Daniel Veillard260a68f1998-08-13 03:39:55 +0000246- Better error handling, use a dedicated, overridable error
247 handling function.
248- Support for CDATA.
249- Keep track of line numbers for better error reporting.
250- Support for PI (SAX one).
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000251- Support for Comments (bad, should be in ASAP, they are parsed
252 but not stored), should be configurable.
253- Improve the support of entities on save (+SAX).
Daniel Veillard01791d51998-07-24 19:24:09 +0000254