This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Emacs PSGML mode for XSL
- To: David dot Natter at msdw dot com
- Subject: Re: Emacs PSGML mode for XSL
- From: housel at home dot com (Peter S. Housel)
- Date: Thu, 19 Oct 2000 12:10:54 -0700
- Cc: xsl-list at mulberrytech dot com
- References: <39EF3BC8.F004225E@msdw.com>
- Reply-To: xsl-list at mulberrytech dot com
At Thu, 19 Oct 2000 14:22:00 -0400, David Natter <David.Natter@msdw.com> wrote:
> Is anyone using (X)Emacs PSGML mode for editing XSL files? I am trying
> to set this up, but I seem to need the DTD for XSL so that PSGML knows
> what tags are valid in what context. Where could one find the DTD for
> XSL? Or am I misunderstanding something?
I do this. At the beginning of my stylesheet I put:
<!--
<!DOCTYPE xsl:stylesheet SYSTEM "xslt.dtd" [
<!ENTITY % xslfo.dtd SYSTEM "xslfo.dtd">
%xslfo.dtd;
<!ENTITY % result-elements "
| %basic-inlines;
| %basic-blocks;
| %out-of-lines;
| %wrappers;">
]>
-->
(It's not legal XML, so I leave it commented.) When I load the file
into PSGML, I uncomment the DOCTYPE, do an sgml-parser-prolog (C-c
C-p), and then comment it out again.
I got the xslfo.dtd file from
http://www.renderx.com/Tests/validator/fo2000.dtd.html
This isn't completely successful since elements of both the xml:
namespace and the fo: namespace are intertwined, and the DTD's don't
completely capture this. But it's better than nothing.
Cheers,
-Peter S. Housel- housel@acm.org http://members.home.com/housel/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list