From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Command in nxml-mode to show the current place in the structure(path)?
Date: Wed, 17 May 2006 09:02:41 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEEDIDGAA.drew.adams@oracle.com> (raw)
In-Reply-To: <1147877558.337927.152160@i39g2000cwa.googlegroups.com>
compactly indicates where in the
structure we currently are. For example,
<e><a><b>oh</b><c/><d>point is here</d></a></e>
The command in question should show something like /e/a/d, i.e.,
an XML path to the current element.
I haven't (yet) used nxml (if it supported XML Schema, I'd use it in a
heartbeat), but I second your suggestion about path/position feedback
(assuming that feature is not already in nxml).
Taking it further, XPath navigation (not just telling you where you are)
would be helpful (a must, no?). I'd like an XML editor to take an XPath
expression and select (if multi-regions are available), or at least
highlight, all of the targeted nodes - and then let me cycle through them,
navigating to them. And that includes navigation using relative XPath
expressions (navigate from where point is now, along different axes).
There are lots of other things an XML editor could do if it was XPath-aware.
Perhaps nxml already is; I don't know. That could be a separate library
(xpath.el?), I suppose, but it sure would be useful.
Taking it one step further, how about an XQuery mode (every XPath expression
is an XQuery expression)?
next prev parent reply other threads:[~2006-05-17 16:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-17 14:52 Command in nxml-mode to show the current place in the structure (path)? arndt.jonasson
2006-05-17 16:02 ` Drew Adams [this message]
2006-05-17 18:02 ` Command in nxml-mode to show the current place in the structure(path)? Lennart Borgman
2006-05-17 17:55 ` Command in nxml-mode to show the current place in the structure (path)? Lennart Borgman
2006-05-18 8:16 ` Florent Georges
2006-05-18 8:30 ` Florent Georges
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICEEDIDGAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.