* High priority ** Command to insert an element template, including all required attributes and child elements. When there's a choice of elements possible, we could insert a comment, and put an overlay on that comment that makes it behave like a button with a pop-up menu to select the appropriate choice. ** Command to tag a region. With a schema should complete using legal tags, but should work without a schema as well. ** Provide a way to conveniently rename an element. With a schema should complete using legal tags, but should work without a schema as well. * Outlining ** Implement C-c C-o C-q. ** Install pre/post command hook for moving out of invisible section. ** Put a modify hook on invisible sections that expands them. ** Integrate dumb folding somehow. ** An element should be able to be its own heading. ** Optimize to avoid complete buffer scan on each command. ** Make it work with HTML-style headings (i.e. level indicated by name of heading element rather than depth of section nesting). ** Recognize root element as a section provided it has a title, even if it doesn't match section-element-name-regex. ** Support for incremental search automatically making hidden text visible. ** Allow title to be an attribute. ** Command that says to recognize the tag at point as a section/heading. ** Explore better ways to determine when an element is a section or a heading. ** rng-next-error needs to either ignore invisible portion or reveal it (maybe use isearch oriented text properties). ** Errors within hidden section should be highlighted by underlining the ellipsis. ** Make indirect buffers work. ** How should nxml-refresh outline recover from non well-formed tags? ** Hide tags in title elements? ** Use overlays instead of text properties for holding outline state? Necessary for indirect buffers to work? ** Allow an outline to go in the speedbar. ** Split up outlining manual section into subsections. ** More detail in the manual about each outlining command. ** More menu entries for hiding/showing? ** Indication of many lines have been hidden? * Locating schemas ** Should rng-validate-mode give the user an opportunity to specify a schema if there is currently none? Or should it at least give a hint to the user how to specify a non-vacuous schema? ** Support for adding new schemas to schema-locating files. Add documentElement and namespace elements. ** C-c C-w should be able to report current type id. ** Implement doctypePublicId. ** Implement typeIdBase. ** Implement typeIdProcessingInstruction. ** Support xml:base. ** Implement group. ** Find preferred prefix from schema-locating files. Get rid of rng-preferred-prefix-alist. ** Inserting document element with vacuous schema should complete using document elements declared in schema locating files, and set schema appropriately. ** Add a ruleType attribute to the element? ** Allow processing instruction in prolog to contain the compact syntax schema directly. ** Use RDDL to locate a schema based on the namespace URI. ** Should not prompt to add redundant association to schema locating file. ** Command to reload current schema. * Schema-sensitive features ** Should filter dynamic markup possibilities using schema validity, by adding hook to nxml-mode. ** Dynamic markup word should (at least optionally) be able to look in other buffers that are using nxml-mode. ** Should clicking on Invalid move to next error if already on an error? ** Take advantage of a:documentation. Needs change to schema format. ** Provide feasible validation (as in Jing) toggle. ** Save the validation state as a property on the error overlay to enable more detailed diagnosis. ** Provide an Error Summary buffer showing all the validation errors. ** Pop-up menu. What is useful? Tag a region (should be greyed out if the region is not balanced). Suggestions based on error messages. ** Have configurable list of namespace URIs so that we can provide namespace URI completion on extension elements or with schema-less documents. ** Allow validation to handle XInclude. ** ID/IDREF support. * Completion ** Make it work with icomplete. Only use a function to complete when some of the possible names have undeclared namespaces. ** How should C-return in mixed text work? ** When there's a vacuous schema, C-return after < will insert the end-tag. Is this a bug or a feature? ** After completing start-tag, ensure we don't get unhelpful message from validation ** Syntax table for completion. ** Should complete start-tag name with a space if namespace attributes are required. ** When completing start-tag name with no prefix and it doesn't match should try to infer namespace from local name. ** Should completion pay attention to characters after point? If so, how? ** When completing start-tag name, add required atts if only one required attribute. ** When completing attribute name, add attribute value if only one value is possible. ** After attribute-value completion, insert space after close delimiter if more attributes are required. ** Complete on enumerated data values in elements. ** When in context that allows only elements, should get tag completion without having to type < first. ** When immediately after start-tag name, and name is valid and not prefix of any other name, should C-return complete on attribute names? ** When completing attributes, more consistent to ignore all attributes after point. ** Inserting attribute value completions needs to be sensitive to what delimiter is used so that it quotes the correct character. ** Complete on encoding-names in XML decl. ** Complete namespace declarations by searching for all namespaces mentioned in the schema. * Well-formed XML support ** Deal better with Mule-UCS ** Deal with UTF-8 BOM when reading. ** Complete entity names. ** Provide some support for entity names for MathML. ** Command to repeat the last tag. ** Support for changing between character references and characters. Need to check that context is one in which character references are allowed. xmltok prolog parsing will need to distinguish parameter literals from other kinds of literal. ** Provide a comment command to bind to M-; that works better than the normal one. ** Make indenting in a multi-line comment work. ** Structure view. Separate buffer displaying element tree. Be able to navigate from structure view to document and vice-versa. ** Flash matching >. ** Smart selection command that selects increasingly large syntactically coherent chunks of XML. If point is in an attribute value, first select complete value; then if command is repeated, select value plus delimiters, then select attribute name as well, then complete start-tag, then complete element, then enclosing element, etc. ** ispell integration. ** Block-level items in mixed content should be indented, e.g: This is list: