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

RE: stylesheet to create wml cards

Subject: RE: stylesheet to create wml cards
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 3 Mar 2004 16:08:38 +0200
create wml
Hi,

> I have a stylesheet that converts xml to  wml but I'm not 
> sure how to split 
> the wml up into cards.  The output needs to be displayed on a 
> simulator and 
> so I dont want the user to have to scroll through hundreds of 
> lines of text 
> on the one screen, it would be more usable to split it up into cards, 
> perhaps displaying about 10 lines of text on each card.
> 
> Is it possible to do this using a stylesheet?

Go through the text word by word, counting how many words will fit into one line (you know the maximum number of characters per line) and create a new card when ever you've output 10 lines. Recursive template to tokenize the text and count the lines, and some string manipulation functions, shouldn't be too difficult.

Cheers,

Jarno - God Module: Lunacy

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.