Re: editing xhtml fragments
Dave Pawson <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <CAEncD4cRR4UrpVoVBWZSM0-74t+gioADFrgb-Hm3B7bUJgM-Yg@mail.gmail.com> |
On 17 August 2011 19:19, Stephen Langer <[email protected]> wrote: > > On Aug 17, 2011, at 11:48 AM, Dave Pawson wrote: > >>> Thanks. I'd forgotten that I'd already done that. But I never figured out how to tell nxml that a file whose first xml tag was <chapter> or <para> is valid, because it's included in another file which contains the required surrounding tags. >> >> Wrong tool >> Validate on the command line, > > But isn't the whole point that nxml helps you write valid xml, by showing you your mistakes and suggesting and autocompleting the valid tags at any point? What's the point of using nxml if you have to validate outside of emacs? In which case provide the rnc schema for nxml-mode to use. nxml-mode doesn't hack xinclude or external entities. > >> or edit the rnc file to tell nxml-mode >> that the entity can start on chapter? > > But I have lots of included files, and they aren't all chapters, and it's not practical to have separate rnc files for them all. I didn't suggest it was. Modify the start element in one schema covering the entire included document. > > What would be useful would be for each file to contain a special comment that says what the enclosing elements are. I think I used to use psgml mode to do this. I don't remember exactly what prompted me to switch to nxml. Doesn't exist. Revert to sgml-mode? 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/