Re: Re: Specifying outlining scheme

Dave Pawson <[email protected]> Sun, 14 Oct 2012 07:56:39 +0100
Newsgroups gmane.emacs.nxml.general
Message-ID <CAEncD4eWUA2p97MZyTBsJJBRDtrw0jNZnJ5mxJx8WjO9DgnWYw@mail.gmail.com>
On 13 October 2012 22:48, RonB <[email protected]> wrote:
> How terrifically unclear I must have been for you to imagine that "read the documentation" could be a helpful response! :-) Let me try to do a better job than my initial poor attempt:
>
> Manually changing "nxml-section-element-name-regexp" every time I open a new XML file that has a different associated schema (to be excruciatingly explicit: I've read the documentation, schemas are being loaded just fine, and are beside the point of the question) is an error-prone waste of my time. My question was whether there's some trick to avoiding this that I haven't grokked and, assuming not (given I've of course read the documentation and far too many web ramblings as well, along with goodly chunks of the code), whether anyone has a patch that would produce the fairly obvious solution of letting people store (what is, after all, meta-schema information that doesn't logically belong in an editor variable) this directive inside their .rnc schema file as an annotation?

I apologise if I misinterpreted the question. I can now state that I
really don't understand it.
fyi. Having used nxml-mode since it was released (by James Clark, not
emacsen) I have never had to use nxml-section-element-name-regexp
so I can't see what the problem was. I assumed (wrongly it seems) that
you wanted to associate another schema with some subset of
the document that was not a valid start point for the schema in use.



>
> Perhaps nxml-mode users are very homogenous and pretty much all work on just DocBook (the default regexp appears to be DocBook-centric) and so this just isn't an issue for most people, I dunno. Clearly, it's not a design anybody who works on a wide variety of schemas would find tolerable, unless there's a trick I've missed.

I do work in docbook, but also about a dozen others, some my own...
how does this affect your question?



>
> Barring any nice workaround laying about, I wonder if anyone on the list has enough experience with the code to give me a code review if I get ambitious enough to write my own patch?

Clearly not. I use elisp a little, but not enough to rise to JC level of code.

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/