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

Re: Should XSLT be used to generate a plain text docu

Subject: Re: Should XSLT be used to generate a plain text document?
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Wed, 27 Apr 2005 11:30:26 +0200
Re:  Should XSLT be used to generate a plain text  docu
Chris wrote:

> I would like to know if it is possible to use XSLT to create a
> document, like the above example, from an XML file.
>
> I'm still new to XSL/T so i'm not really sure of its limitations, or
> even if this is something i should be attempting with with it.
>
> When i think about it transforming to plain text doesn't sound right,
> but some expert opinions would be good :)

XSLT doesn't have any built-in support for wrapping paragraphs and
layouting tables. You can do this sort of task in XSLT, but it is a lot
of work.

I would suggest you little bit different approach. Write stylesheet that
will produce HTML output from your XML files. Then use some text-based
web browser (lynx, links, ...) to render this HTML into plain text. This
way HTML browser will take care of laying out text -- which is the
hardest part of your problem.

					Jirka

--
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@xxxxxxxx     http://www.kosek.cz
------------------------------------------------------------------
   Profesionalnm 9kolenm a poradenstvm v oblasti technologim XML.
      Podmvejte se na na9 novl spu9tln} web http://DocBook.cz
        Podrobn} pxehled 9kolenm http://xmlguru.cz/skoleni/
------------------------------------------------------------------

[demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]

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.