Re: editing xhtml fragments

Stephen Langer <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
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.  

Is nxml supposed to work when editing an xml fragment that's included in another document?  For example, here's the outer document:

> <?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>

and here's chapter_one.xml:

> <chapter>
>  etc.
> </chapter

How do you tell nxml how to find the dtd and that the contents of this file are inside <book> tags?  Is there a better way to include the file in the master document, one that nxml understands?
 
  -- 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.