xsl-list
[Top] [All Lists]

Re: Should XSLT be used to generate a plain text document?

2005-04-27 02:30:26
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(_at_)kosek(_dot_)cz     http://www.kosek.cz
------------------------------------------------------------------
  Profesionální školení a poradenství v oblasti technologií XML.
     Podívejte se na náš nově spuštěný web http://DocBook.cz
       Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

<Prev in Thread] Current Thread [Next in Thread>