[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Emacs PSGML mode for XSL

Subject: Re: Emacs PSGML mode for XSL
From: housel@xxxxxxxx (Peter S. Housel)
Date: Thu, 19 Oct 2000 12:10:54 -0700
emacs fo mode
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.