Annotation of XML/TODO, revision 1.33
1.1 daniel 1:
1.16 daniel 2: TODO for the XML parser and stuff:
3: ==================================
4:
1.31 daniel 5:
1.24 daniel 6: TODO:
7: =====
8:
1.33 ! daniel 9: - Fix DTD + namespace validity problem
! 10: "Not valid: root and DtD name do not match 'ROOT' and 'prefix:ROOT'"
1.25 daniel 11: - add support for the trick from Henry conf/sun/valid/empty.xml
12: - Correct standalone checking/emitting (hard)
13: 2.9 Standalone Document Declaration
1.27 daniel 14: - URI checkings (no fragments) rfc2396.txt
15: - Better checking of external parsed entities TAG 1234
16: - Find way of representing PERefs in the Dtd so that %entity; can
17: be saved back.
1.28 daniel 18: - Go through erratas and do the cleanup.
19: http://www.w3.org/XML/xml-19980210-errata ... bummmer
1.31 daniel 20: - Handle undefined namespaces in entity contents better ... at least
21: issue a warning
22: - General checking of DTD validation in presence of namespaces ... hairy
1.18 daniel 23:
24: TODO:
25: =====
26:
1.24 daniel 27: - Get OASIS testsuite to a more friendly result, check all the results
28: once stable.
29: http://xmlsoft.org/conf/result.html
30:
1.29 daniel 31: - Optimization of tag strings allocation ?
1.24 daniel 32:
33: - maintain coherency of namespace when doing cut'n paste operations
34: => the functions are coded, but need testing
35:
1.29 daniel 36: - function to rebuild the ID table
37: - functions to rebuild the DTD hash tables (after DTD changes).
1.24 daniel 38:
39:
40:
41:
42: EXTENSIONS:
43: ===========
1.29 daniel 44:
1.21 daniel 45: - Tools to produce man pages from the SGML docs.
1.16 daniel 46: - Finish XPath
1.18 daniel 47: => attributes addressing troubles
1.19 daniel 48: => defaulted attributes handling
49: => namespace axis ?
1.16 daniel 50:
51: - Add Xpointer recognition/API
52:
53: - Add Xlink recognition/API
1.18 daniel 54: => started adding an xlink.[ch] with a unified API for XML and HTML.
1.16 daniel 55:
56: - Implement XSLT
1.19 daniel 57: => seems that someone volunteered ?!?
1.16 daniel 58:
1.18 daniel 59: - Implement XSchemas
60:
1.16 daniel 61: - O2K parsing;
62: => this is a somewhat ugly mix of HTML and XML, adding a specific
63: routine in the comment parsing code of HTML and plug the XML
64: parsing one in-there should not be too hard. Key point is to get
65: XSL to transform all this to something decent ...
66:
1.18 daniel 67: - extend the shell with:
68: - edit
69: - load/save
70: - mv (yum, yum, but it's harder because directories are ordered in
71: our case, mvup and mvdown would be required)
1.16 daniel 72:
1.20 daniel 73: - Add HTML validation using the XHTML DTD
74: - problem: do we want to keep and maintain the code for handling
75: DTD/System ID cache directly in libxml ?
76:
77: - Add a DTD cache prefilled with xhtml DTDs and entities and a program to
78: manage them -> like the /usr/bin/install-catalog from SGML
79: right place seems $datadir/xmldtds
1.31 daniel 80: Maybe this is better left to user apps
1.16 daniel 81:
1.19 daniel 82: - Add output to XHTML in case of HTML documents.
83:
1.24 daniel 84:
85: Done:
86: =====
87:
1.31 daniel 88: - dynamically adapt the alloc entry point to use g_alloc()/g_free()
89: if the programmer wants it:
90: - use xmlMemSetup() to reset the routines used.
91: - Check attribute normalization especially xmlGetProp()
92: - Validity checking problems for NOTATIONS attributes
93: - Validity checking problems for ENTITY ENTITIES attributes
94: - Parsing of a well balanced chunk xmlParseBalancedChunkMemory()
95: - URI module: validation, base, etc ... see uri.[ch]
96: - turn tester into a generic program xmllint installed with libxml
1.30 daniel 97: - extend validity checks to go through entities content instead of
98: just labelling them PCDATA
1.27 daniel 99: - Save Dtds using the children list instead of dumping the tables,
100: order is preserved as well as comments and PIs
101: - Wrote a notice of changes requires to go from 1.x to 2.x
102: - make sure that all SAX callbacks are disabled if a WF error is detected
103: - checking/handling of newline normalization
104: http://localhost/www.xml.com/axml/target.html#sec-line-ends
1.25 daniel 105: - correct checking of '&' '%' on entities content.
106: - checking of PE/Nesting on entities declaration
107: - checking/handling of xml:space
108: - checking done.
109: - handling done, not well tested
1.24 daniel 110: - Language identification code, productions [33] to [38]
111: => done, the check has been added and report WFness errors
112: - Conditional sections in DTDs [61] to [65]
113: => should this crap be really implemented ???
114: => Yep OASIS testsuite uses them
115: - Allow parsed entities defined in the internal subset to override
116: the ones defined in the external subset (DtD customization).
117: => This mean that the entity content should be computed only at
118: use time, i.e. keep the orig string only at parse time and expand
119: only when referenced from the external subset :-(
120: Needed for complete use of most DTD from Eve Maler
121: - Add regression tests for all WFC errors
122: => did some in test/WFC
123: => added OASIS testsuite routines
124: http://xmlsoft.org/conf/result.html
1.22 daniel 125:
1.23 daniel 126: - I18N: http://wap.trondheim.com/vaer/index.phtml is not XML and accepted
127: by the XML parser, UTF-8 should be checked when there is no "encoding"
128: declared !
1.24 daniel 129: - Support for UTF-8 and UTF-16 encoding
130: => added some convertion routines provided by Martin Durst
131: patched them, got fixes from @@@
132: I plan to keep everything internally as UTF-8 (or ISO-Latin-X)
133: this is slightly more costly but more compact, and recent processors
134: efficiency is cache related. The key for good performances is keeping
135: the data set small, so will I.
136: => the new progressive reading routines call the detection code
137: is enabled, tested the ISO->UTF-8 stuff
1.20 daniel 138: - External entities loading:
139: - allow override by client code
140: - make sure it is alled for all external entities referenced
141: Done, client code should use xmlSetExternalEntityLoader() to set
142: the default loading routine. It will be called each time an external
143: entity entity resolution is triggered.
144: - maintain ID coherency when removing/changing attributes
145: The function used to deallocate attributes now check for it being an
146: ID and removes it from the table.
147: - push mode parsing i.e. non-blocking state based parser
148: done, both for XML and HTML parsers. Use xmlCreatePushParserCtxt()
149: and xmlParseChunk() and html counterparts.
150: The tester program now has a --push option to select that parser
151: front-end. Douplicated tests to use both and check results are similar.
152:
1.18 daniel 153: - Most of XPath, still see some troubles and occasionnal memleaks.
154: - an XML shell, allowing to traverse/manipulate an XML document with
155: a shell like interface, and using XPath for the anming syntax
1.20 daniel 156: - use of readline and history added when available
157: - the shell interface has been cleanly separated and moved to debugXML.c
1.18 daniel 158: - HTML parser, should be fairly stable now
159: - API to search the lang of an attribute
160: - Collect IDs at parsing and maintain a table.
161: PBM: maintain the table coherency
162: PBM: how to detect ID types in absence of DtD !
163: - Use it for XPath ID support
164: - Add validity checking
165: Should be finished now !
1.16 daniel 166: - Add regression tests with entity substitutions
167:
168: - External Parsed entities, either XML or external Subset [78] and [79]
169: parsing the xmllang DtD now works, so it should be sufficient for
170: most cases !
171:
172: - progressive reading. The entity support is a first step toward
1.7 daniel 173: asbtraction of an input stream. A large part of the context is still
174: located on the stack, moving to a state machine and putting everyting
175: in the parsing context should provide an adequate solution.
1.8 daniel 176: => Rather than progressive parsing, give more power to the SAX-like
177: interface. Currently the DOM-like representation is built but
1.18 daniel 178: => it should be possible to define that only as a set of SAX callbacks
179: and remove the tree creation from the parser code.
180: DONE
1.8 daniel 181:
1.1 daniel 182: - DOM support, instead of using a proprietary in memory
183: format for the document representation, the parser should
184: call a DOM API to actually build the resulting document.
185: Then the parser becomes independent of the in-memory
186: representation of the document. Even better using RPC's
187: the parser can actually build the document in another
188: program.
1.8 daniel 189: => Work started, now the internal representation is by default
190: very near a direct DOM implementation. The DOM glue is implemented
1.16 daniel 191: as a separate module. See the GNOME gdome module.
192:
1.2 daniel 193: - C++ support : John Ehresman <jehresma@dsg.harvard.edu>
1.6 daniel 194: - Updated code to follow more recent specs, added compatibility flag
1.7 daniel 195: - Better error handling, use a dedicated, overridable error
196: handling function.
197: - Support for CDATA.
198: - Keep track of line numbers for better error reporting.
199: - Support for PI (SAX one).
1.8 daniel 200: - Support for Comments (bad, should be in ASAP, they are parsed
201: but not stored), should be configurable.
202: - Improve the support of entities on save (+SAX).
1.2 daniel 203:
Webmaster