Re: Re: nxml-mode, docbook, xinclude

Steinar Bang <[email protected]>
Newsgroups gmane.emacs.nxml.general
Organization Probably a good idea
Message-ID <[email protected]>
>>>>> Lennart Borgman <[email protected]>:

> Thanks. So a doctypePublicId could be used to distinguish different
> Docbook versions?

As expressed in a DOCTYPE declaration of a document?  Yes, it can.

I've used that a lot for legacy formats.

You can also match on the document element (i.e. the outermost element
in an XML document), in two way:
 - local name, with an optional prefix
 - document element default namespace
(but, curiously enough, not document element default name space and
local name)

And you can match on a processing instruction.

And you can match on file URI, with wildcards (you can e.g. match on
extensions). 


> On the OASIS site I see that they do not distinguish rng files for
> different Docbook versions by file name, but by file path/location. Is
> that a convenient way in nxml-mode? Can you use for example

>   <typeId id="DocBook4.5" uri="docbook/dokbook4.5.rnc"/>

Without having actually tried it, I'm guessing yes.  I have everything
in a flat structure (how many schemas do one need? I have maven, and
ant, and something called CPE, that I can no longer remember what is,
and a custom version of docbook, all in a single directory, with a
schemas.xml file), and no time to experiment.



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

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:
    mailto:[email protected] 
    mailto:[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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.