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