[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Emacs PSGML mode for XSL
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|