This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Docbook Structuring Problems
- To: <docbook-apps at lists dot oasis-open dot org>
- Subject: RE: DOCBOOK-APPS: Docbook Structuring Problems
- From: "Dave Pawson" <dave dot pawson at virgin dot net>
- Date: Wed, 24 May 2000 19:20:15 +0100
- Reply-To: <dave dot pawson at virgin dot net>
Norman Walsh writes:
>
> Yep, one of the nice things about Epic (disclaimer: I used to
> work for Arbortext) is that it can edit chunks that aren't
> technically legal (it uses a doctype declaration hidden in a
> comment). Then you can stitch these together as you wish.
I've heard tell that you can associate DTDs with sgml subfiles
in Emacs psgml,
and it remembers (by filename association or something) but I
don't know the
details.
The details are really nice and simple.
Main file has the entity definition and the entity.
the 'subdoc' simply has the element and a comment
at the end of the file E.G.
<website>
...
</website>
<!--
Local Variables:
mode: xml
sgml-parent-document: ("dpawson.xml" "website" )
End:
-->
this says the root file is dpawson.xml and the outer element
in this subdoc is website.
Its documented, but until I had it explained to me I couldn't follow
it. Now, when I load the subdoc, psgml parses the document.
Only trick is that to parse again, ensure the cursor is beneath
the outer element in the subdoc. Quirk, but a small price to pay.
HTH DaveP