Re: editing xhtml fragments
Stephen Langer <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
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? > 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. 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. -- Steve -- -- [email protected] Tel: (301) 975-5423 -- -- http://math.nist.gov/~SLanger/ Fax: (301) 975-3553 -- -- NIST, 100 Bureau Drive, Stop 8910, Gaithersburg, Md 20899-8910 -- -- "I don't think this will work. That's why it's science." -- -- Naomi Langer (age 6), 17 Feb 2003 -- ------------------------------------ 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/