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

Re: XHTML to WML problem

Subject: Re: XHTML to WML problem
From: Tom Myers <tom.myers@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 May 2000 16:45:42 -0400
convert xhtml to wml
>Date: Tue, 30 May 2000 11:08:36 +0100
>From: Mark Lynch <Mark.Lynch@xxxxxxxxxxxxxxx>
>Subject: XHTML to WML problem
>
>Hi all,
>I want to convert an XHTML document to WML and deliver it to a WAP device.
>However there is a limitation on the amount of information that can be sent
>down to the WAP device - on Nokia 7110 I thinks its about 1.4Kb. I use XSLT
>to convert to WML. I then need to break down this file into 1.4Kb chunks.
>Has anybody out there done anything like this? 

A related problem which _may_ be helpful...in Ch 19 of "Professional JSP"
(Wrox, just out at http://www.amazon.com/exec/obidos/ASIN/1861003625) 
you'll see one way of emergency-pruning of XSL output for WML limits.
(The chapter is "Case Study: Weather with JSP, XSLT, and WAP", fwiw.)
For instance, on page 682 there's
<xsl:value-of select="pruner:prune($theSessionID,string($Zip),$Plim)"/>
which turns out to mean "try to produce the zip code as pulled from 
the last database query of this httpSession, but don't go past a
total of $Plim output characters since the last reset (which happens
once per request). Notice that here we're pruning content, not tags,
all tags are always produced; the actual output content will depend
on the order of XSL evaluation, but correctness will not. (public 
class XSLPrune is on pp674-675; it's not complicated.) 
  If you have trouble with it, tell me :-) 'cos my co-author, Sasha 
Nakhimovsky, isn't on this list. (Nor is he on the amazon list of 
authors; they always mess up somewhere.) BTW, I've since learned how 
to do the XSL much better,  but not in any way that affects the 
pruning issue.

It does work, but I would love to see a simpler approach, and I don't
know how it would apply to your problem; not directly, of course. I 
suspect that the best approach to your problem is going to depend on 
the specifics of the problem; feel free to post more details. :-)

Tom Myers


 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.