cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Convert text to wml
Date Fri, 06 Aug 2004 08:13:53 GMT
Remember that a generator (start of match in a pipeline)
is expected to produce a "stream" of XML  - if your text
file has no tags at all you will need to write your own
generator to add these tags in the right places, see:

(possibly an XSP might be a one way to get
started with this... - alternatively, if your text has at
least some structure to it, maybe try the SLOP generator - 
look in your installation of Cocoon under:

Output will require transformation (often the second
step after the generation phase) into WML format...
you will probably require a custom stylesheet whose
code will depend on what you get from your generator
(see above) - the serializer is *not* responsible for 
doing the "formatting" - this is the job of the transformation 
step.  Perhaps you could read up more on the basic 
Cocoon concepts: 
or this: 
(both are a little dated, but the basic ideas are there).

>>> 2004/08/06 09:02:06 AM >>>
i recieve a file in text format from a certain url.

The file has no tags at all. 
How can this text be output in wml format?

Can xsl be used to read a text file without tags?
Is using a wml serializer enough to give the output in wml format?

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message