-----Original Message----- From: Skip Carter [mailto:[EMAIL PROTECTED]] Sent: 14 January 2003 17:30 To: [EMAIL PROTECTED] Subject: Re: Splitting WML file
>> First off, I'm a fully fledged newbie when it comes to cocoon, so at this >> stage I'm looking for pointers rather than absolute answers - although that >> would be nice ;-) >> >> I've used Cocoon to translate some xml documents to wml format using the >> bog-standard wml converter that the "Hello, World" samples use and it works >> without any problems when viewing them using a desktop browser. >> >> The problem that I have to solve is concerned with using wml with mobile >> devices. These devices often have small amounts of memory, and a limited >> file size that they can accept (eg the Nokia 7110 has a maximum file size of >> 1397 bytes.) >> >> What would be the best strategy to adopt to split the xml or wml file into a >> suitable size (NB the split file must, of course be valid xml.) How have >> other people dealt with this problem? > > > I have handled this by by using statements in a style sheet that extracts out > one subsection of a single XML file before transforming it to WML. So, the Thanks for the reply, Unfortunately your solution wouldn't be appropriate for my situation, and re-reading my original message I should have phrased it better. Our wml essentially uses tags to delimit paragraphs eg. <document> <para>Some text</para> <para>Some more text</para> <para>Third para</para> </document> We serve up html pages and create pdfs from this wml with no problem as there is no limit on the file size with these formats. However, with wml there is essentially a 1397 byte limit so what I think I need to do is process each para until that limit is reached. Then, somehow, when the request for the next page comes in, I need to start at the paragraph where I left off. Any thoughts on where and how I could do this within the cocoon framework? Thanks A --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>