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

RE: Transformation Format

Subject: RE: Transformation Format
From: "DuCharme, Robert" <Robert.DuCharme@xxxxxxxxxx>
Date: Wed, 31 May 2000 17:30:19 -0400
RE: Transformation Format
>If you're asking the question, "how can I make XSLT output editable by
>Word?", as opposed to "how can I get XSLT to generate a binary format, for
>instance, Word's RTF variant?", you could use the ability of more recent
>versions of Word (Word 2000) to work on, and save to, HTML files, so you
>could output HTML or XHTML using XSLT.

Ahh, but you're dealing with Microsoft here, which means that you're playing
by different rules--rules that aren't, as far as I could tell, available to
look over!  At least MS publishes RTF specs; the "HTML" saved by Office 2000
is an ugly mix of XML, ill-formed HTML, scripts, and if statements inside of
square braces. 

I wrote an XSLT stylesheet to turn my own slideshow XML into the HTML that
PowerPoint 2000 reads and writes, so I'm more familiar with that than with
the Word 2000 HTML. I just reverse engineered it by saving a simple
PowerPoint presentation as "HTML" and removing as much as possible by hand,
putting a removed chunk back if removing it prevented PowerPoint from
understanding the file. 

Once I had trimmed it down as much as I could, I had my XSLT stylesheet
output these various chunks of stuff (much of which I could find no
explanation for anywhere at microsoft.com or elsewhere) in and around the
element content, and it all seems to work, although it's still far too messy
to show anyone else (and, some perl scripts are involved). At least I
finally got around to learning how to use disable-output-escaping, without
which I wouldn't have any hard returns in my final product. 

All that being said, I like to think that it will eventually improve, and
putting RTF that much further in the past is a step forward. I'm tired of
all those curly braces. 

Still, be prepared to be very patient for such an endeavor!

Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii


 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.