From: "Štěpán Němec" <stepnem@gmail.com>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: 'Chong Yidong' <cyd@stupidchicken.com>,
'Thien-Thi Nguyen' <ttn@gnuvola.org>,
joakim@verona.se, 'Emacs developers' <emacs-devel@gnu.org>,
"'Andrew W. Nosenko'" <andrew.w.nosenko@gmail.com>,
Drew Adams <drew.adams@oracle.com>
Subject: Re: online conversion support from xsd to rng?
Date: Fri, 10 Dec 2010 07:49:31 +0100 [thread overview]
Message-ID: <87ei9q5dhg.fsf@gmail.com> (raw)
In-Reply-To: <877hfitmwi.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Fri, 10 Dec 2010 10:52:13 +0900")
"Stephen J. Turnbull" <stephen@xemacs.org> writes:
> Štěpán Němec writes:
>
> > This is nonsense. XPath and friends are not bound to the external
> > representation of the data in any way. They operate on the DOM tree. So
> > as long as your XML conversion to sexp format is lossless (which it
> > should be, of course), you lose nothing, only gain the advantages of
> > saner format (i.e. sexp) both for humans and the machine -- you just
> > need an XPath etc. implementation for your language.
>
> Sure. But our language doesn't have a standard lossless format yet,
> it doesn't have an XPath implementation at all, and it's not clear to
> me why a lossless sexp format would be all that much more readable
> than XML (assuming an XML mode designed to be readable, which would
> probably be a bigger gain than XML-to-Lisp -- all XML modes I've seen
> have been designed for use by those who think XML is readable).
>
> I think you've got a lot of work ahead of you.
I don't enjoy lengthy unfocused discussions/parallel monologues as much
as you (seem to) do, so I'm not going to try to address all of what you
write (sorry). This time I just somehow couldn't resist and replied to
the nonsense Drew wrote, which in hindsight was probably a mistake.
If you're interested in working with XML in Emacs Lisp, have a look at
the relevant Emacs Wiki page:
http://www.emacswiki.org/emacs/CategoryXML
Granted, the situation in Elisp is not nearly as good as in Scheme for
instance [1], but there is also an XPath implementation linked from
here:
http://www.emacswiki.org/emacs/XmlParser
[1] Which is quite understandable, given the relative quality of Elisp
the language (for me personally, having Scheme in Emacs/Emacs on Scheme
would be no less than a redemption), the related "policies", and how
some of (X)Emacs developers spend the limited amount of time available,
right?
http://okmij.org/ftp/Scheme/xml.html
Štěpán
next prev parent reply other threads:[~2010-12-10 6:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-30 9:37 online conversion support from xsd to rng? joakim
2010-12-01 9:57 ` joakim
2010-12-07 17:18 ` Chong Yidong
2010-12-07 22:42 ` joakim
2010-12-08 1:31 ` Thien-Thi Nguyen
2010-12-08 8:19 ` joakim
2010-12-08 15:58 ` Thien-Thi Nguyen
2010-12-08 10:45 ` Andrew W. Nosenko
2010-12-08 15:54 ` Thien-Thi Nguyen
2010-12-09 16:19 ` Drew Adams
2010-12-10 0:06 ` Štěpán Němec
2010-12-10 1:10 ` Lennart Borgman
2010-12-10 1:47 ` Drew Adams
2010-12-10 1:52 ` Stephen J. Turnbull
2010-12-10 6:49 ` Štěpán Němec [this message]
2010-12-11 2:17 ` Stephen J. Turnbull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ei9q5dhg.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=andrew.w.nosenko@gmail.com \
--cc=cyd@stupidchicken.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=joakim@verona.se \
--cc=stephen@xemacs.org \
--cc=ttn@gnuvola.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).