RE: Complex transformations using Jade

Subject: RE: Complex transformations using Jade
From: "joseph, Gershon" <Gershon_joseph@xxxxxxxxxxxxx>
Date: Tue, 3 Aug 1999 14:07:10 +0300
Yes, please post the stylesheet. I'll try to use it to write my own
transformation stylesheet. If I can get it to work, I'll publish the result,
because it's a semi-generic RTF to DocBook transformation, which I'm sure
many people will find useful.

Brandon Ibach [mailto:bibach@xxxxxxxxxxxxxx] wrote:

Quoting joseph, Gershon <Gershon_joseph@xxxxxxxxxxxxx>:
> Has anyone done complex SGML transformations using Jade? I spent a day
> investigating using Jade to transform a flat RTF-like instance to a
DocBook
> like instance. The problem is that, while source instance has all elements
> at the same level (para), the target must have elements inside elements,
> e.g., title and para inside section. I have started to write this
> transformation in Omnimark, but would prefer a standards-based solution if
> it is possible.
> 
> Is the transformation side of DSSSL, for which there is not yet an engine,
> capable of this type of transformation, or is it like XSLT, meant for
> preparing an instance for formatting, and not full-bore complex
> transformations?
> 
   While I do, personally, believe that the DSSSL transformation
language would serve as a better base for implementing these types of
transformations, Jade's non-standard SGML transformation backend works
quite nicely for this sort of thing.  Just look at what Norm Walsh has
done with it to create the Docbook->HTML style sheet.
   I'm not sure I completely understand your concern about elements
inside other elements, but I'm relatively sure you can do it with this
method.
   If you'd like, I could post a stylesheet (with example input and
output documents) that I created to transform a custom DTD into HTML
(which is just another SGML DTD, really).  It probably shows most of
the constructs that you'd use, as well as a few neat tricks to make
some parts of the process a little easier (such as an interesting
"template" mechanism for transforming certain parts).  Let me know.

-Brandon :)


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread