Re: psgml and XInclude elements

Steinar Bang <[email protected]>
Newsgroups gmane.emacs.psgml.user
Organization Probably a good idea
Message-ID <[email protected]>
>>>>> Steinar Bang <[email protected]>:

> Is it possible to make psgml allow XInclude tags into a document
> otherwise conforming to a DTD?  Ie. make `C-c C-o' not stop on all
> <xi:include> tags encountered, when checking the document?

> I'd rather not change the DTD (DocBook XML 4.2 in my case).

What I've done, is to modify the DocBook XML DTD in the internal
subset: 

<!DOCTYPE article
  PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [

  <!-- Add <xi:include> to <programlisting> to be able to use -->
  <!-- xsltproc instead of Saxon or Xalan, when including     -->
  <!-- programlisting from external files                     -->
  <!ENTITY % local.section.attrib
    "xmlns:xi CDATA #FIXED 'http://www.w3.org/2001/XInclude'" >
  <!ENTITY % local.para.char.mix
    "|xi:include" >
  <!ELEMENT xi:include EMPTY >
  <!ATTLIST xi:include
     href CDATA #REQUIRED
     parse (xml|text) "xml"
     encoding CDATA #IMPLIED >
]>

This may not be an optimal solution, but for now, it works.


- Steinar





-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
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.