From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Command in nxml-mode to show the current place in the structure(path)? Date: Wed, 17 May 2006 20:02:27 +0200 Message-ID: <446B6533.7090704@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147888991 9250 80.91.229.2 (17 May 2006 18:03:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 May 2006 18:03:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 17 20:03:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FgQM7-00021C-Ua for geh-help-gnu-emacs@m.gmane.org; Wed, 17 May 2006 20:02:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgQM7-0006zQ-Jh for geh-help-gnu-emacs@m.gmane.org; Wed, 17 May 2006 14:02:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgQLw-0006z3-K6 for help-gnu-emacs@gnu.org; Wed, 17 May 2006 14:02:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgQLv-0006yp-RZ for help-gnu-emacs@gnu.org; Wed, 17 May 2006 14:02:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgQLv-0006ym-MK for help-gnu-emacs@gnu.org; Wed, 17 May 2006 14:02:31 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgQOq-0003xi-1G for help-gnu-emacs@gnu.org; Wed, 17 May 2006 14:05:32 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn2.hy.skanova.net (7.2.072.1) id 4469AC900006B99C; Wed, 17 May 2006 20:02:29 +0200 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) Original-To: Drew Adams In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35115 Archived-At: Drew Adams wrote: > compactly indicates where in the > structure we currently are. For example, > ohpoint is here > 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 is an xpath for Emacs http://www.emacswiki.org/cgi-bin/wiki/xpath.el but I have never tried it.