Re: `High-level' format specifications with XSL?
Paul Grosso wrote: > > Then it sounds like what you need to do is: > > 1. define some XML document type definition with elements like 'heading' > and such--let's call this the MLPL (mid-level presentation language) DTD; > 2. define one or more XSL transformation specs that map your XML source > documents into an MLPL document; > 3a. define one or more XSL stylesheets that map your MLPL documents into > flow objects and properties that can be processed by some tool into > something that some formatter can handle, and/or > 3b. define one or more XSL transformation specs that map your MLPL documents > into HTML plus CSS that give you the desired view in a browser. > > Then running an XSL processor on your input document and the transformation > spec developed in 2 above gives you the level of abstraction that I think you > want, e.g., mapping input element types to headings. Doesn't this all strike you as being substantially harder than merely allowing flow objects to be constructed out of other flow objects, in the way that LaTeX macros are constructed out of other LaTeX macros? Knuth could easily have said the same thing about TeX, when people were asking about how to build higher level abstractions in it: "Just use your favourite programming language to convert from your high-level TeX-like language to TeX." Yes, you CAN work around this limitation in XSL (and DSSSL). But it is still a limitation in each of those languages. Paul Prescod - http://itrc.uwaterloo.ca/~papresco "In general, as syntactic description becomes deeper, what appear to be semantic questions fall increasingly within its scope; and it is not entirely obvious whether or where one can draw a natural bound between grammar and 'logical grammar'." - Noam Chomsky, 1963 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