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