SXML in Emacs
Oliver Scholz <[email protected]> Thu, 15 Jul 2004 15:33:23 +0200
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Hello!
I am working on an XML parser framework, much inspired by SSAX, for
GNU Emacs. An important part of this will probably be an XML->SXML
parser.
I am going to have a couple of questions regarding the SXML standard,
but right now a particular problem is of more concern for me:
For my XML processing tasks I need a data structure that allows to
keep the contents of a text-node in an Emacs buffer, as an alternative
to keeping them only in Lisp strings. The plan is to have a unique
Lisp object denoting a text node which contains a reference to the
buffer holding the text. The according text in the buffer in turn,
will have this object in a text property.
Obviously this would require an extension to SXML. Since this is
very Emacs-specific, I guess that shouldn't be a problem. However, I
am asking here to get some opinions.
I imagine something like this as an alternative to a string in an
SXML document:
(*TEXT* <buffer> <parent-element>)
With <buffer> being the Emacs buffer holding the text (which a program
would then extract by searching for the right text property). And
<parent-element> being a back-reference to the containing element.
Any thoughts? Or is SXML just not the right thing for me? I have no
particular need for it myself, but I fancied that it would be nice for
users to have a somewhat standard s-expression representation.
Oliver
--
Oliver Scholz 28 Messidor an 212 de la Révolution
Ostendstr. 61 Liberté, Egalité, Fraternité!
60314 Frankfurt a. M.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click