This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Emacs PSGML mode for XSL


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]