[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texinfo XML support in Emacs Info browser
From: |
Juri Linkov |
Subject: |
Re: Texinfo XML support in Emacs Info browser |
Date: |
Mon, 04 Jun 2007 01:47:45 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> How about fixing xml-parse-file so that it can be "permissive"?
> It seems rather strange to use regexps when something was developed
> specifically to parse XML files. Not that it's my call.
I like xml-parse-file approach, but I doubt that xml-parse-file can be fixed to
parse non-well-formed XML.
After fixing bugs in makeinfo we can achieve the state when Texinfo XML
output of makeinfo is well-formed, so we could completely rely on
correctness of its output, and use xml-parse-file.
Using XML structures from xml-parse-file is very different approach from using
text-based Info files and poses many interesting problems. For example,
how to search manuals for a regexp. One solution is to traverse the XML tree
and to match its text elements. But what to do with text split between
different
XML elements? Another solution is to search a regexp in the rendered text
of all nodes.
--
Juri Linkov
http://www.jurta.org/emacs/