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

RE: xml too big

Subject: RE: xml too big
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2001 16:39:30 +0300
RE:  xml too big
Hip hei!

> I've trasformed some files xml in wml using xsl and xalan.
> I'm working in a wap project so I have to check if the wml files
> that I have
> generated are too big for the browser and if it is I have to
> divide the file
> in 2 or more files.
> Is it possible do this with xsl?
> How I can do it?

With an extension. Modify the Xalan Redirect extension element to write
contents into a ByteArray and to return the number of bits used by the
redirected output. Then generate each deck into a variable and test it's
size with the extension. This works, but slows things down quite
considerably. If your WML output doesn't vary a lot or is mostly text, you
could just approximate the deck size by using string-length() and
basically... make a wild quess :)

There are better solutions, but hope this helps,

Jarno - Wumpscut: I Want You


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


Current Thread
  • xml too big
    • CONTE Silvia - Wed, 18 Apr 2001 09:01:21 -0400 (EDT)
      • Jarno Elovirta - Wed, 18 Apr 2001 09:37:17 -0400 (EDT) <=
      • Kurt Cagle - Wed, 18 Apr 2001 15:22:59 -0400 (EDT)

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.