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