On Wed, Apr 02, 2008 at 04:24:16PM +0900, "Michael(tm) Smith" <[EMAIL PROTECTED]> was heard to say: > Hi Daniel, > > > @2008-04-01 06:50 -0700: > > Thanks for the patch. > > Thanks for your reply, and sorry for my delay in responding. > > > Do you know any way to tell nxml-mode that it's editing a file > > that will be included into another XML file as an entity? > > There's no way to do that, as far as I know. > > > The manpage is set up to work that way for the convenience of > > translators, and it means that I lose the ability to have my editor > > validate against the schema (which would catch things like this). > > When you say you lose the ability to have it validate against the > schema, do you mean the problem of it flagging all the entities > (&VERSION;, &aptitude;, etc.) as errors? (because of the issue of > the definitions for those entities being not being in the > manpage.xml file itself, but in the parent XML file).
Yes, that's part of it; it means that I can't check that I've fixed all the real errors by using nxml's valid/invalid indicator. The other part, though, is that nxml doesn't know I'm editing a DocBook file, so it doesn't flag things like not placing <para> between a <listitem> and the text it contains. It does at least check that the XML is well-formed (so it complains if I, e.g., don't balance my tags out), but none of the more semantic checks are performed. You mentioned having the schema "set" to DocBook. I went through the nxml-mode help yesterday and didn't see a way to do that; is there an Emacs function I have to call to set the schema manually? Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]