--- In emacs-nxml-mode@yahoogroups.com, Daniel Colascione <danc@...> wrote:
>
> On Monday 09 June 2008, rossburton42 wrote:
> > I'm using nxml-mode to validate my Docbook and so on as I write, but
> > I've hit a small annoyance. In my current document I'm using XInclude
> > to bring in source code snippets but nxml is for obviously reasons
> > marking <xi:include .../> as invalid. Is there a way to get nxml-mode
> > to ignore certain namespaces or some other cunning way around this?
> > If I could say that all http://www.w3.org/2001/XInclude namespaced
> > nodes are valid anywhere (and then should be validated with another
> > schema for bonus points) then that would be great.
>
> The only way to do that currently is to modify the Relax NG schema.
>
I've rewritten the Xinclude grammar in nXhtml to conform to the official
Xinclude XSD. If this is useful for you can you double check it and maybe add
the productions rules in Docbook's grammar?
Hi, I'm using nxml-mode to validate my Docbook and so on as I write, but I've hit a small annoyance. In my current document I'm using XInclude to bring in...
... Not really. I use it by having a top level (book or article) which is nearly empty, and uses xinclude. Then I write chapters (or sections) which validate...
... The expanded copy is only used for validation, then dumped. I work on the 'chunks'. It does work. I've written quite a bit of docbook that way. -- Dave...
... I've rewritten the Xinclude grammar in nXhtml to conform to the official Xinclude XSD. If this is useful for you can you double check it and maybe add the...
... You should be using the docbook v5 schema. nxml-mode has that as valid. ... Already done by the docbook group at Oasis. regards -- Dave Pawson XSLT XSL-FO...
... The question was about docbook? I don't think even your nxml-mode includes that (nor should it?) docbook is available from sourceforge. With the schema for...
... Then either pick up both versions, 4.5 and 5.0 (and keep them up to date I guess) or link to where the schemas can be picked up. -- Dave Pawson XSLT XSL-FO...
... Just my point. I don't think this should be an emacs issue If you want docbook schema, html or any other schema the end user should pick up that schema...
... Thanks. I see. I really think they should be part of Emacs distribution (as they are now) and wondered whether you have some suggestion regarding Docbook ...
... 4.5 is the current Oasis standard. As I said, either keep up or simply tell people where docbook is. How many schemas are you going to try and manage? ...
... It is a very good point to show them where to get the newest version since Emacs and docbook schemas might not always be in sync. I think that should be in...
... http://www.dpawson.co.uk/relaxng/nxml/schemaloc.html#d574e168 Full explanation in the documentation provided with the original nxml-mode from JC -- Dave...
... Thanks. So a doctypePublicId could be used to distinguish different Docbook versions? On the OASIS site I see that they do not distinguish rng files for ...
... It seems that the xinclude grammar is directly merged into the docbook grammar. But xinclude is meant to be general purpose, how do people validate other...
... It is. It is also an xml namespaced element like any other? Hence it needs to be declared in the schema for the instance you're generating using nxml-mode....
... You could use the DocBook RELAX NG grammar that includes XInclude :-) ... You can probably do that with NVDL, but not in nxml-mode. Be seeing you, norm -- ...
... 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...
Steinar Bang
sb@...
Aug 23, 2009 6:22 pm
Thanks Steinar, I will look at this more later....
... This might be more appropriate on the docbook-apps mailing list? Certainly for the schema related questions. regards -- Dave Pawson XSLT XSL-FO FAQ. ...