Re: editing xhtml fragments
Dave Pawson <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <CAEncD4cc8QJT-HN+-cHZhz3fFcLRmyLT5KfuWfuicji=3cc0fw@mail.gmail.com> |
On 17 August 2011 15:08, Stephen Langer <[email protected]> wrote: > > On Aug 17, 2011, at 2:45 AM, Dave Pawson wrote: > >> >> >> >>> - nXML is very strict when I use my malformed XML document >> >> As intended. > > It seems to be *too* strict. No. Appropriate for xml. > > Is nxml supposed to work when editing an xml fragment that's included in another document? Yes. Any xml. > >> <?xml version='1.0'?> >> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "dtd/docbook-xml-4.5/docbookx.dtd" >> [ >> <!ENTITY chapterone SYSTEM "chapter_one.xml"> >> ]> >> >> <book> >> &chapterone; >> </book> nxml-mode isn't too happy working with DTD's. > > and here's chapter_one.xml: > >> <chapter> >> etc. >> </chapter > > How do you tell nxml how to find the dtd You don't. Use trang to convert to relax NG, then use the rnc file via the schema association. HTH -- 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/