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