blob: 246eb2daad42c744c7cbb0309016d4909769ddd6 [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 Veillard361d8452000-04-03 19:48:13 +00005
Daniel Veillard75c29212000-03-14 18:33:47 +00006TODO:
7=====
8
Daniel Veillard5d211f42000-04-07 17:00:24 +00009- DOM needs
10 xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
11 int xmlPruneProp(xmlNodePtr node, xmlAtttrPtr attr);
Daniel Veillardbe803962000-06-28 23:40:59 +000012- General checking of DTD validation in presence of namespaces ... hairy
13 mostly done
Daniel Veillard5d211f42000-04-07 17:00:24 +000014- Fix DTD + namespace validity problem
15 "Not valid: root and DtD name do not match 'ROOT' and 'prefix:ROOT'"
Daniel Veillardbe803962000-06-28 23:40:59 +000016 mostly done
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
20- Find way of representing PERefs in the Dtd so that %entity; can
21 be saved back.
22- Go through erratas and do the cleanup.
23 http://www.w3.org/XML/xml-19980210-errata ... bummmer
Daniel Veillard361d8452000-04-03 19:48:13 +000024- Handle undefined namespaces in entity contents better ... at least
25 issue a warning
Daniel Veillard06047432000-04-24 11:33:38 +000026- fix --disable-corba configure switch handling, and use XML_WITHOUT_CORBA
27 not WITHOUT_CORBA flag
Daniel Veillardf0cc7cc2000-08-26 21:40:43 +000028- reported by Michael, update of doc node when pasting on a new document
29 There can be far more than simply the doc pointer which refers to
30 the old document, for example namespace declarations or entities
31 references can also be a nasty problem, far more than updating the
32 doc values.
Daniel Veillardad8f99d2000-01-15 14:20:03 +000033
34TODO:
35=====
36
Daniel Veillard75c29212000-03-14 18:33:47 +000037- Get OASIS testsuite to a more friendly result, check all the results
Daniel Veillard496a1cf2000-05-03 14:20:55 +000038 once stable. Current state at:
Daniel Veillard75c29212000-03-14 18:33:47 +000039 http://xmlsoft.org/conf/result.html
Daniel Veillardad8f99d2000-01-15 14:20:03 +000040
Daniel Veillard3dd82e72000-03-20 11:48:04 +000041- Optimization of tag strings allocation ?
Daniel Veillard75c29212000-03-14 18:33:47 +000042
43- maintain coherency of namespace when doing cut'n paste operations
44 => the functions are coded, but need testing
45
Daniel Veillard3dd82e72000-03-20 11:48:04 +000046- function to rebuild the ID table
47- functions to rebuild the DTD hash tables (after DTD changes).
Daniel Veillard75c29212000-03-14 18:33:47 +000048
Daniel Veillard75c29212000-03-14 18:33:47 +000049
50EXTENSIONS:
51===========
Daniel Veillard3dd82e72000-03-20 11:48:04 +000052
Daniel Veillard75c29212000-03-14 18:33:47 +000053- Tools to produce man pages from the SGML docs.
Daniel Veillardad8f99d2000-01-15 14:20:03 +000054- Finish XPath
55 => attributes addressing troubles
56 => defaulted attributes handling
57 => namespace axis ?
58
59- Add Xpointer recognition/API
60
61- Add Xlink recognition/API
62 => started adding an xlink.[ch] with a unified API for XML and HTML.
Daniel Veillard496a1cf2000-05-03 14:20:55 +000063 it's crap :-(
Daniel Veillardad8f99d2000-01-15 14:20:03 +000064
65- Implement XSLT
66 => seems that someone volunteered ?!?
67
68- Implement XSchemas
Daniel Veillard496a1cf2000-05-03 14:20:55 +000069 => Really need to be done <grin/>
Daniel Veillardad8f99d2000-01-15 14:20:03 +000070
71- O2K parsing;
72 => this is a somewhat ugly mix of HTML and XML, adding a specific
73 routine in the comment parsing code of HTML and plug the XML
74 parsing one in-there should not be too hard. Key point is to get
75 XSL to transform all this to something decent ...
76
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 Veillard2f2bf412000-08-20 15:11:02 +000098- problem when parsing hrefs with & with the HTML parser (IRC ac)
99- If the internal encoding is not UTF8 saving to a given encoding doesn't
100 work => fix to force UTF8 encoding ...
101 done, added documentation too
Daniel Veillard32bc74e2000-07-14 14:49:25 +0000102- Add an ASCII I/O encoder (asciiToUTF8 and UTF8Toascii)
103- Issue warning when using non-absolute namespaces URI.
104- the html parser should add <head> and <body> if they don't exist
105 started, not finished.
106 Done, the automatic closing is added and 3 testcases were inserted
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000107- Command to force the parser to stop parsing and ignore the rest of the file.
Daniel Veillard32bc74e2000-07-14 14:49:25 +0000108 xmlStopParser() should allow this, mostly untested
Daniel Veillardbe803962000-06-28 23:40:59 +0000109- support for HTML empty attributes like <hr noshade>
110- plugged iconv() in for support of a large set of encodings.
111- xmlSwitchToEncoding() rewrite done
Daniel Veillard496a1cf2000-05-03 14:20:55 +0000112- URI checkings (no fragments) rfc2396.txt
Daniel Veillard5d211f42000-04-07 17:00:24 +0000113- Added a clean mechanism for overload or added input methods:
114 xmlRegisterInputCallbacks()
Daniel Veillard361d8452000-04-03 19:48:13 +0000115- dynamically adapt the alloc entry point to use g_alloc()/g_free()
116 if the programmer wants it:
117 - use xmlMemSetup() to reset the routines used.
118- Check attribute normalization especially xmlGetProp()
119- Validity checking problems for NOTATIONS attributes
120- Validity checking problems for ENTITY ENTITIES attributes
121- Parsing of a well balanced chunk xmlParseBalancedChunkMemory()
122- URI module: validation, base, etc ... see uri.[ch]
123- turn tester into a generic program xmllint installed with libxml
Daniel Veillardec303412000-03-24 13:41:54 +0000124- extend validity checks to go through entities content instead of
125 just labelling them PCDATA
Daniel Veillard75c29212000-03-14 18:33:47 +0000126- Save Dtds using the children list instead of dumping the tables,
127 order is preserved as well as comments and PIs
128- Wrote a notice of changes requires to go from 1.x to 2.x
129- make sure that all SAX callbacks are disabled if a WF error is detected
130- checking/handling of newline normalization
131 http://localhost/www.xml.com/axml/target.html#sec-line-ends
132- correct checking of '&' '%' on entities content.
133- checking of PE/Nesting on entities declaration
134- checking/handling of xml:space
135 - checking done.
136 - handling done, not well tested
137- Language identification code, productions [33] to [38]
138 => done, the check has been added and report WFness errors
139- Conditional sections in DTDs [61] to [65]
140 => should this crap be really implemented ???
141 => Yep OASIS testsuite uses them
142- Allow parsed entities defined in the internal subset to override
143 the ones defined in the external subset (DtD customization).
144 => This mean that the entity content should be computed only at
145 use time, i.e. keep the orig string only at parse time and expand
146 only when referenced from the external subset :-(
147 Needed for complete use of most DTD from Eve Maler
148- Add regression tests for all WFC errors
149 => did some in test/WFC
150 => added OASIS testsuite routines
151 http://xmlsoft.org/conf/result.html
152
153- I18N: http://wap.trondheim.com/vaer/index.phtml is not XML and accepted
154 by the XML parser, UTF-8 should be checked when there is no "encoding"
155 declared !
156- Support for UTF-8 and UTF-16 encoding
157 => added some convertion routines provided by Martin Durst
158 patched them, got fixes from @@@
159 I plan to keep everything internally as UTF-8 (or ISO-Latin-X)
160 this is slightly more costly but more compact, and recent processors
161 efficiency is cache related. The key for good performances is keeping
162 the data set small, so will I.
163 => the new progressive reading routines call the detection code
164 is enabled, tested the ISO->UTF-8 stuff
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000165- External entities loading:
166 - allow override by client code
167 - make sure it is alled for all external entities referenced
168 Done, client code should use xmlSetExternalEntityLoader() to set
169 the default loading routine. It will be called each time an external
170 entity entity resolution is triggered.
171- maintain ID coherency when removing/changing attributes
172 The function used to deallocate attributes now check for it being an
173 ID and removes it from the table.
174- push mode parsing i.e. non-blocking state based parser
175 done, both for XML and HTML parsers. Use xmlCreatePushParserCtxt()
176 and xmlParseChunk() and html counterparts.
177 The tester program now has a --push option to select that parser
178 front-end. Douplicated tests to use both and check results are similar.
179
180- Most of XPath, still see some troubles and occasionnal memleaks.
181- an XML shell, allowing to traverse/manipulate an XML document with
182 a shell like interface, and using XPath for the anming syntax
183 - use of readline and history added when available
184 - the shell interface has been cleanly separated and moved to debugXML.c
185- HTML parser, should be fairly stable now
186- API to search the lang of an attribute
187- Collect IDs at parsing and maintain a table.
188 PBM: maintain the table coherency
189 PBM: how to detect ID types in absence of DtD !
190- Use it for XPath ID support
191- Add validity checking
192 Should be finished now !
193- Add regression tests with entity substitutions
194
195- External Parsed entities, either XML or external Subset [78] and [79]
196 parsing the xmllang DtD now works, so it should be sufficient for
197 most cases !
198
199- progressive reading. The entity support is a first step toward
Daniel Veillard260a68f1998-08-13 03:39:55 +0000200 asbtraction of an input stream. A large part of the context is still
201 located on the stack, moving to a state machine and putting everyting
202 in the parsing context should provide an adequate solution.
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000203 => Rather than progressive parsing, give more power to the SAX-like
204 interface. Currently the DOM-like representation is built but
205 => it should be possible to define that only as a set of SAX callbacks
206 and remove the tree creation from the parser code.
207 DONE
Daniel Veillard01791d51998-07-24 19:24:09 +0000208
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000209- DOM support, instead of using a proprietary in memory
210 format for the document representation, the parser should
211 call a DOM API to actually build the resulting document.
212 Then the parser becomes independent of the in-memory
213 representation of the document. Even better using RPC's
214 the parser can actually build the document in another
215 program.
216 => Work started, now the internal representation is by default
217 very near a direct DOM implementation. The DOM glue is implemented
218 as a separate module. See the GNOME gdome module.
219
Daniel Veillard01791d51998-07-24 19:24:09 +0000220- C++ support : John Ehresman <jehresma@dsg.harvard.edu>
221- Updated code to follow more recent specs, added compatibility flag
Daniel Veillard260a68f1998-08-13 03:39:55 +0000222- Better error handling, use a dedicated, overridable error
223 handling function.
224- Support for CDATA.
225- Keep track of line numbers for better error reporting.
226- Support for PI (SAX one).
Daniel Veillardad8f99d2000-01-15 14:20:03 +0000227- Support for Comments (bad, should be in ASAP, they are parsed
228 but not stored), should be configurable.
229- Improve the support of entities on save (+SAX).
Daniel Veillard01791d51998-07-24 19:24:09 +0000230