Subject: Re: [xsl] Should XSLT be used to generate a plain text document? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 27 Apr 2005 11:50:11 -0400 |
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.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Should XSLT be used to ge, Aron Bock | Thread | RE: [xsl] Should XSLT be used to ge, Ross, Douglas |
Re: [xsl] problem with handling con, Aron Bock | Date | RE: [xsl] apply-templates and predi, tom tom |
Month |