Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM file causes my Eclipse editor to crash

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'Dave Pawson'" <dave.pawson AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM file causes my Eclipse editor to crash
  • Date: Thu, 18 Oct 2007 11:59:59 +0100

>
> It would be nice to see a small example of that Michael?

There are some large examples in the source code...

UnicodeData.java is about 2400 lines of stuff like

public static final String[] canonicalClassKeys = {
"0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,",
"j,k,l,m,n,o,p,q,r,s,t,u,v,10,11,12,13,14,15,16,",
"17,18,19,1a,1b,1c,1d,1e,1f,1g,1h,1i,1j,1k,1l,1m,1n,1o,1p,1q,",
...
"vl,vm,vn,vo,vp,vq,vr,vs,vt,vu,vv,100,101,102,103,104,105,106,107,108,",
"109,10a,10b,10c,10d,10e,10f,10g,10h,10i,10j,10k,10l,10m,10n,10o,10p,10q,10r
,10s,",
"10t,10u,10v,110,111,112,113,114,115,116,117,118,119,11a,11b,11c,11d,11e,11f
,11g,",
...
"3kam,3kan,3kao,3kap,3kaq,3kar,3kas,3kat,3kau,3kav,3kb0,3kb1,3kb2,3kb3,3kb4,
3kb5,3kb6,3kb7,3kb8,3kb9,",
"3kba,3kbb,3kbc,3kbd,3kbe,3kbf,3kbg,3kbh,3kbi,3kbj,3kbk,3kbl,3kbm,3kbn,3kbo,
3kbp,3kbq,3kbr,3kbs,3kbt,",

and so on.

Looking at that again, I'm not sure why I didn't use ranges, which is what I
did for some of the character encoding tables.

Michael Kay

>
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk





Archive powered by MHonArc 2.6.24.

Top of Page