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

Java question

  • From: Tim Bray <tbray@t...>
  • To: xml-dev@i...
  • Date: Sun, 14 Dec 1997 17:19:49 -0800

java question
O Java gureaux, the recent discussions about compactness have started me
thinking.  I'm now debugging the validation code for Lark.  I've got it
in a separate package, textuality.validator; the validation code is
half-again as large as the basic WF code: 60+ K as opposed to 45K; it
has classes like 'DTD' and 'Attlist' and 'Validator' and so on.

I'd like for people who want to use Lark as just a WF checker to 
avoid the overhead of downloading 60K of validation rubbish.  Lark now
has a method called lark.validate(boolean) and if it's not turned on,
none of those textuality.validator classes will ever get invoked.
However, is an applet loader going to pull 'em all in over the 
network regardless?

I suppose if this is the case, I could create two different Lark
distributions, using the trick documented in the O'Reilly book
where I say 

private static final boolean sVALIDATE = false;

and then bracket all refs to validation classes with

if (sVALIDATE)
{

}

which won't get compiled.

Or, should I provide stubbed-out class files for the only two classes
that are directly referenced, DTD and Validator?

Or, is this worth worrying about?  Or is there a standard way to
achieve this effect?  Wisdom welcome. -Tim

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.