|
Subject: Re: Emacs PSGML mode for XSL From: housel@xxxxxxxx (Peter S. Housel) Date: Thu, 19 Oct 2000 12:10:54 -0700 |
At Thu, 19 Oct 2000 14:22:00 -0400, David Natter <David.Natter@xxxxxxxx> 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@xxxxxxx http://members.home.com/housel/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Variable with Namespace, Steve Muench | Thread | Re: Emacs PSGML mode for XSL, Ovidiu Predescu |
| Re: Emacs PSGML mode for XSL, Tony Graham | Date | RE: Emacs PSGML mode for XSL, Eileen Kinley |
| Month |