IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

APIs XML Discussion :

Problème XPAth avec DOM généré par XHTMLRenderer (Flying Saucer)


Sujet :

APIs XML

  1. #1
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut Problème XPAth avec DOM généré par XHTMLRenderer (Flying Saucer)
    Bonjour,

    Je teste d'une part Cobra mais aussi XHTMLRenderer qu'adiGuba semble avoir conseillé dans un autre fil.

    Mon problème survient après avoir généré un document DOM résultat du parsing d'un flux HTML.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    Reader reader = getReader("http://www.holdemresources.net/hr/sngs/icmcalculator.html?action=calculate&bb=200&sb=100&ante=0&structure=0.5%2C0.3%2C0.2&s1=1500&s2=1400&s3=1600&s4=2000&s5=1000&s6=6000&s7=&s8=&s9=");
     
    XMLResource xmlr = XMLRessource.loard(reader);
    org.w3c.dom.Document doc = xmlr.getDocument()
    Le document est correctement crée, pas d'erreur à l'exécution. Je peux même le sérailiser en string et visualiser le contenu.

    Mon problème est que mes instructions XPath ne me renvoient rien, alors que ces mêmes instructions fonctionnent avec un Document DOM généré par le parser Cobra.
    D'où ma question: XPath fonctionne t'il sur des DOM générés par Flying Saucer ?
    Ai je loupé quelquechose ?

  2. #2
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    136
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 136
    Points : 132
    Points
    132
    Par défaut
    Bonjour,

    j'ai en effet un peu le même problème avec Flying Saucer.

    Je n'arrive pas à faire appliquer certaines parties d'une feuille de style que j'applique sur le Dom récupéré via FlyingSaucer.

    Et c'est au niveau de des expressions XPath qu'il semble y avoir le problème.

    par contre je n'ai pas encore trouvé de solution.

    Cdlt,

  3. #3
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    Hum...
    Pas rassurant du tout, ça.
    Quelqu'un d'autre confirme avoir rencontré le même problème ?

  4. #4
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    Cet outil à l'air d'être un OVNI, au vu du faibkle nombre de réponses...

  5. #5
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    136
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 136
    Points : 132
    Points
    132
    Par défaut
    Pourtant il fonctionne vraiment bien.

    Je vais aller poser la question sur le forum du projet, ils sont plutôt réactif.

    Je posterai la réponse ici du coup (si j'en obtiens une.).

  6. #6
    Membre expérimenté
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    1 466
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 1 466
    Points : 1 610
    Points
    1 610
    Par défaut
    Ben, j'ai jamais utilisé Flying Saucer, mais si vous mettiez le xml qu'il génère, je pourrais comprendre pourquoi ce Dom ne semble plus marcher.

    C'est peut être un pb de namespace.

  7. #7
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    Citation Envoyé par Morbo Voir le message
    Ben, j'ai jamais utilisé Flying Saucer, mais si vous mettiez le xml qu'il génère, je pourrais comprendre pourquoi ce Dom ne semble plus marcher.

    C'est peut être un pb de namespace.
    Je poste le résultat ce soir ...un peu de patience !

  8. #8
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    Voici le XML généré par un DOMSerializer (classe standard documentée dans le livre d'OReilly Java&XML) à partir des instructions suivantes:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
                XMLResource xmlr = XMLResource.load(reader);
                Document doc = xmlr.getDocument();
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    1331
    1332
    1333
    1334
    1335
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    1347
    1348
    1349
    1350
    1351
    1352
    1353
    1354
    1355
    1356
    1357
    1358
    1359
    1360
    1361
    1362
    1363
    1364
    1365
    1366
    1367
    1368
    1369
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    1384
    1385
    1386
    1387
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
    1403
    1404
    1405
    1406
    1407
    1408
    1409
    1410
    1411
    1412
    1413
    1414
    1415
    1416
    1417
    1418
    1419
    1420
    1421
    1422
    1423
    1424
    1425
    1426
    1427
    1428
    1429
    1430
    1431
    1432
    1433
    1434
    1435
    1436
    1437
    1438
    1439
    1440
    1441
    1442
    1443
    1444
    1445
    1446
     
    <?xml version="1.0"?>
    <!-- 
       Extensible HTML version 1.0 Strict DTD
     
       This is the same as HTML 4 Strict except for
       changes due to the differences between XML and SGML.
     
       Namespace = http://www.w3.org/1999/xhtml
     
       For further information, see: http://www.w3.org/TR/xhtml1
     
       Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
       All Rights Reserved. 
     
       This DTD module is identified by the PUBLIC and SYSTEM identifiers:
     
       PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
     
       $Revision: 1.1 $
       $Date: 2005/03/28 14:23:17 $
     
     -->
    <!-- ================ Character mnemonic entities ========================= -->
    <!--  Portions (C) International Organization for Standardization 1986
         Permission to copy in any form is granted for use with
         conforming SGML systems and applications as defined in
         ISO 8879, provided this notice is included in all copies.
     -->
    <!--  Character entity set. Typical invocation:
        <!ENTITY % HTMLlat1 PUBLIC
           "-//W3C//ENTITIES Latin 1 for XHTML//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
        %HTMLlat1;
     -->
    <!--  no-break space = non-breaking space,
                                      U+00A0 ISOnum  -->
    <!--  inverted exclamation mark, U+00A1 ISOnum  -->
    <!--  cent sign, U+00A2 ISOnum  -->
    <!--  pound sign, U+00A3 ISOnum  -->
    <!--  currency sign, U+00A4 ISOnum  -->
    <!--  yen sign = yuan sign, U+00A5 ISOnum  -->
    <!--  broken bar = broken vertical bar,
                                      U+00A6 ISOnum  -->
    <!--  section sign, U+00A7 ISOnum  -->
    <!--  diaeresis = spacing diaeresis,
                                      U+00A8 ISOdia  -->
    <!--  copyright sign, U+00A9 ISOnum  -->
    <!--  feminine ordinal indicator, U+00AA ISOnum  -->
    <!--  left-pointing double angle quotation mark
                                      = left pointing guillemet, U+00AB ISOnum  -->
    <!--  not sign = angled dash,
                                      U+00AC ISOnum  -->
    <!--  soft hyphen = discretionary hyphen,
                                      U+00AD ISOnum  -->
    <!--  registered sign = registered trade mark sign,
                                      U+00AE ISOnum  -->
    <!--  macron = spacing macron = overline
                                      = APL overbar, U+00AF ISOdia  -->
    <!--  degree sign, U+00B0 ISOnum  -->
    <!--  plus-minus sign = plus-or-minus sign,
                                      U+00B1 ISOnum  -->
    <!--  superscript two = superscript digit two
                                      = squared, U+00B2 ISOnum  -->
    <!--  superscript three = superscript digit three
                                      = cubed, U+00B3 ISOnum  -->
    <!--  acute accent = spacing acute,
                                      U+00B4 ISOdia  -->
    <!--  micro sign, U+00B5 ISOnum  -->
    <!--  pilcrow sign = paragraph sign,
                                      U+00B6 ISOnum  -->
    <!--  middle dot = Georgian comma
                                      = Greek middle dot, U+00B7 ISOnum  -->
    <!--  cedilla = spacing cedilla, U+00B8 ISOdia  -->
    <!--  superscript one = superscript digit one,
                                      U+00B9 ISOnum  -->
    <!--  masculine ordinal indicator,
                                      U+00BA ISOnum  -->
    <!--  right-pointing double angle quotation mark
                                      = right pointing guillemet, U+00BB ISOnum  -->
    <!--  vulgar fraction one quarter
                                      = fraction one quarter, U+00BC ISOnum  -->
    <!--  vulgar fraction one half
                                      = fraction one half, U+00BD ISOnum  -->
    <!--  vulgar fraction three quarters
                                      = fraction three quarters, U+00BE ISOnum  -->
    <!--  inverted question mark
                                      = turned question mark, U+00BF ISOnum  -->
    <!--  latin capital letter A with grave
                                      = latin capital letter A grave,
                                      U+00C0 ISOlat1  -->
    <!--  latin capital letter A with acute,
                                      U+00C1 ISOlat1  -->
    <!--  latin capital letter A with circumflex,
                                      U+00C2 ISOlat1  -->
    <!--  latin capital letter A with tilde,
                                      U+00C3 ISOlat1  -->
    <!--  latin capital letter A with diaeresis,
                                      U+00C4 ISOlat1  -->
    <!--  latin capital letter A with ring above
                                      = latin capital letter A ring,
                                      U+00C5 ISOlat1  -->
    <!--  latin capital letter AE
                                      = latin capital ligature AE,
                                      U+00C6 ISOlat1  -->
    <!--  latin capital letter C with cedilla,
                                      U+00C7 ISOlat1  -->
    <!--  latin capital letter E with grave,
                                      U+00C8 ISOlat1  -->
    <!--  latin capital letter E with acute,
                                      U+00C9 ISOlat1  -->
    <!--  latin capital letter E with circumflex,
                                      U+00CA ISOlat1  -->
    <!--  latin capital letter E with diaeresis,
                                      U+00CB ISOlat1  -->
    <!--  latin capital letter I with grave,
                                      U+00CC ISOlat1  -->
    <!--  latin capital letter I with acute,
                                      U+00CD ISOlat1  -->
    <!--  latin capital letter I with circumflex,
                                      U+00CE ISOlat1  -->
    <!--  latin capital letter I with diaeresis,
                                      U+00CF ISOlat1  -->
    <!--  latin capital letter ETH, U+00D0 ISOlat1  -->
    <!--  latin capital letter N with tilde,
                                      U+00D1 ISOlat1  -->
    <!--  latin capital letter O with grave,
                                      U+00D2 ISOlat1  -->
    <!--  latin capital letter O with acute,
                                      U+00D3 ISOlat1  -->
    <!--  latin capital letter O with circumflex,
                                      U+00D4 ISOlat1  -->
    <!--  latin capital letter O with tilde,
                                      U+00D5 ISOlat1  -->
    <!--  latin capital letter O with diaeresis,
                                      U+00D6 ISOlat1  -->
    <!--  multiplication sign, U+00D7 ISOnum  -->
    <!--  latin capital letter O with stroke
                                      = latin capital letter O slash,
                                      U+00D8 ISOlat1  -->
    <!--  latin capital letter U with grave,
                                      U+00D9 ISOlat1  -->
    <!--  latin capital letter U with acute,
                                      U+00DA ISOlat1  -->
    <!--  latin capital letter U with circumflex,
                                      U+00DB ISOlat1  -->
    <!--  latin capital letter U with diaeresis,
                                      U+00DC ISOlat1  -->
    <!--  latin capital letter Y with acute,
                                      U+00DD ISOlat1  -->
    <!--  latin capital letter THORN,
                                      U+00DE ISOlat1  -->
    <!--  latin small letter sharp s = ess-zed,
                                      U+00DF ISOlat1  -->
    <!--  latin small letter a with grave
                                      = latin small letter a grave,
                                      U+00E0 ISOlat1  -->
    <!--  latin small letter a with acute,
                                      U+00E1 ISOlat1  -->
    <!--  latin small letter a with circumflex,
                                      U+00E2 ISOlat1  -->
    <!--  latin small letter a with tilde,
                                      U+00E3 ISOlat1  -->
    <!--  latin small letter a with diaeresis,
                                      U+00E4 ISOlat1  -->
    <!--  latin small letter a with ring above
                                      = latin small letter a ring,
                                      U+00E5 ISOlat1  -->
    <!--  latin small letter ae
                                      = latin small ligature ae, U+00E6 ISOlat1  -->
    <!--  latin small letter c with cedilla,
                                      U+00E7 ISOlat1  -->
    <!--  latin small letter e with grave,
                                      U+00E8 ISOlat1  -->
    <!--  latin small letter e with acute,
                                      U+00E9 ISOlat1  -->
    <!--  latin small letter e with circumflex,
                                      U+00EA ISOlat1  -->
    <!--  latin small letter e with diaeresis,
                                      U+00EB ISOlat1  -->
    <!--  latin small letter i with grave,
                                      U+00EC ISOlat1  -->
    <!--  latin small letter i with acute,
                                      U+00ED ISOlat1  -->
    <!--  latin small letter i with circumflex,
                                      U+00EE ISOlat1  -->
    <!--  latin small letter i with diaeresis,
                                      U+00EF ISOlat1  -->
    <!--  latin small letter eth, U+00F0 ISOlat1  -->
    <!--  latin small letter n with tilde,
                                      U+00F1 ISOlat1  -->
    <!--  latin small letter o with grave,
                                      U+00F2 ISOlat1  -->
    <!--  latin small letter o with acute,
                                      U+00F3 ISOlat1  -->
    <!--  latin small letter o with circumflex,
                                      U+00F4 ISOlat1  -->
    <!--  latin small letter o with tilde,
                                      U+00F5 ISOlat1  -->
    <!--  latin small letter o with diaeresis,
                                      U+00F6 ISOlat1  -->
    <!--  division sign, U+00F7 ISOnum  -->
    <!--  latin small letter o with stroke,
                                      = latin small letter o slash,
                                      U+00F8 ISOlat1  -->
    <!--  latin small letter u with grave,
                                      U+00F9 ISOlat1  -->
    <!--  latin small letter u with acute,
                                      U+00FA ISOlat1  -->
    <!--  latin small letter u with circumflex,
                                      U+00FB ISOlat1  -->
    <!--  latin small letter u with diaeresis,
                                      U+00FC ISOlat1  -->
    <!--  latin small letter y with acute,
                                      U+00FD ISOlat1  -->
    <!--  latin small letter thorn,
                                      U+00FE ISOlat1  -->
    <!--  latin small letter y with diaeresis,
                                      U+00FF ISOlat1  -->
    <!--  Mathematical, Greek and Symbolic characters for XHTML  -->
    <!--  Character entity set. Typical invocation:
         <!ENTITY % HTMLsymbol PUBLIC
            "-//W3C//ENTITIES Symbols for XHTML//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
         %HTMLsymbol;
     -->
    <!--  Portions (C) International Organization for Standardization 1986:
         Permission to copy in any form is granted for use with
         conforming SGML systems and applications as defined in
         ISO 8879, provided this notice is included in all copies.
     -->
    <!--  Relevant ISO entity set is given unless names are newly introduced.
         New names (i.e., not in ISO 8879 list) do not clash with any
         existing ISO 8879 entity names. ISO 10646 character numbers
         are given for each character, in hex. values are decimal
         conversions of the ISO 10646 values and refer to the document
         character set. Names are Unicode names. 
     -->
    <!--  Latin Extended-B  -->
    <!--  latin small letter f with hook = function
                                        = florin, U+0192 ISOtech  -->
    <!--  Greek  -->
    <!--  greek capital letter alpha, U+0391  -->
    <!--  greek capital letter beta, U+0392  -->
    <!--  greek capital letter gamma,
                                        U+0393 ISOgrk3  -->
    <!--  greek capital letter delta,
                                        U+0394 ISOgrk3  -->
    <!--  greek capital letter epsilon, U+0395  -->
    <!--  greek capital letter zeta, U+0396  -->
    <!--  greek capital letter eta, U+0397  -->
    <!--  greek capital letter theta,
                                        U+0398 ISOgrk3  -->
    <!--  greek capital letter iota, U+0399  -->
    <!--  greek capital letter kappa, U+039A  -->
    <!--  greek capital letter lamda,
                                        U+039B ISOgrk3  -->
    <!--  greek capital letter mu, U+039C  -->
    <!--  greek capital letter nu, U+039D  -->
    <!--  greek capital letter xi, U+039E ISOgrk3  -->
    <!--  greek capital letter omicron, U+039F  -->
    <!--  greek capital letter pi, U+03A0 ISOgrk3  -->
    <!--  greek capital letter rho, U+03A1  -->
    <!--  there is no Sigmaf, and no U+03A2 character either  -->
    <!--  greek capital letter sigma,
                                        U+03A3 ISOgrk3  -->
    <!--  greek capital letter tau, U+03A4  -->
    <!--  greek capital letter upsilon,
                                        U+03A5 ISOgrk3  -->
    <!--  greek capital letter phi,
                                        U+03A6 ISOgrk3  -->
    <!--  greek capital letter chi, U+03A7  -->
    <!--  greek capital letter psi,
                                        U+03A8 ISOgrk3  -->
    <!--  greek capital letter omega,
                                        U+03A9 ISOgrk3  -->
    <!--  greek small letter alpha,
                                        U+03B1 ISOgrk3  -->
    <!--  greek small letter beta, U+03B2 ISOgrk3  -->
    <!--  greek small letter gamma,
                                        U+03B3 ISOgrk3  -->
    <!--  greek small letter delta,
                                        U+03B4 ISOgrk3  -->
    <!--  greek small letter epsilon,
                                        U+03B5 ISOgrk3  -->
    <!--  greek small letter zeta, U+03B6 ISOgrk3  -->
    <!--  greek small letter eta, U+03B7 ISOgrk3  -->
    <!--  greek small letter theta,
                                        U+03B8 ISOgrk3  -->
    <!--  greek small letter iota, U+03B9 ISOgrk3  -->
    <!--  greek small letter kappa,
                                        U+03BA ISOgrk3  -->
    <!--  greek small letter lamda,
                                        U+03BB ISOgrk3  -->
    <!--  greek small letter mu, U+03BC ISOgrk3  -->
    <!--  greek small letter nu, U+03BD ISOgrk3  -->
    <!--  greek small letter xi, U+03BE ISOgrk3  -->
    <!--  greek small letter omicron, U+03BF NEW  -->
    <!--  greek small letter pi, U+03C0 ISOgrk3  -->
    <!--  greek small letter rho, U+03C1 ISOgrk3  -->
    <!--  greek small letter final sigma,
                                        U+03C2 ISOgrk3  -->
    <!--  greek small letter sigma,
                                        U+03C3 ISOgrk3  -->
    <!--  greek small letter tau, U+03C4 ISOgrk3  -->
    <!--  greek small letter upsilon,
                                        U+03C5 ISOgrk3  -->
    <!--  greek small letter phi, U+03C6 ISOgrk3  -->
    <!--  greek small letter chi, U+03C7 ISOgrk3  -->
    <!--  greek small letter psi, U+03C8 ISOgrk3  -->
    <!--  greek small letter omega,
                                        U+03C9 ISOgrk3  -->
    <!--  greek theta symbol,
                                        U+03D1 NEW  -->
    <!--  greek upsilon with hook symbol,
                                        U+03D2 NEW  -->
    <!--  greek pi symbol, U+03D6 ISOgrk3  -->
    <!--  General Punctuation  -->
    <!--  bullet = black small circle,
                                         U+2022 ISOpub   -->
    <!--  bullet is NOT the same as bullet operator, U+2219  -->
    <!--  horizontal ellipsis = three dot leader,
                                         U+2026 ISOpub   -->
    <!--  prime = minutes = feet, U+2032 ISOtech  -->
    <!--  double prime = seconds = inches,
                                         U+2033 ISOtech  -->
    <!--  overline = spacing overscore,
                                         U+203E NEW  -->
    <!--  fraction slash, U+2044 NEW  -->
    <!--  Letterlike Symbols  -->
    <!--  script capital P = power set
                                         = Weierstrass p, U+2118 ISOamso  -->
    <!--  black-letter capital I = imaginary part,
                                         U+2111 ISOamso  -->
    <!--  black-letter capital R = real part symbol,
                                         U+211C ISOamso  -->
    <!--  trade mark sign, U+2122 ISOnum  -->
    <!--  alef symbol = first transfinite cardinal,
                                         U+2135 NEW  -->
    <!--  alef symbol is NOT the same as hebrew letter alef,
         U+05D0 although the same glyph could be used to depict both characters  -->
    <!--  Arrows  -->
    <!--  leftwards arrow, U+2190 ISOnum  -->
    <!--  upwards arrow, U+2191 ISOnum -->
    <!--  rightwards arrow, U+2192 ISOnum  -->
    <!--  downwards arrow, U+2193 ISOnum  -->
    <!--  left right arrow, U+2194 ISOamsa  -->
    <!--  downwards arrow with corner leftwards
                                         = carriage return, U+21B5 NEW  -->
    <!--  leftwards double arrow, U+21D0 ISOtech  -->
    <!--  Unicode does not say that lArr is the same as the 'is implied by' arrow
        but also does not have any other character for that function. So lArr can
        be used for 'is implied by' as ISOtech suggests  -->
    <!--  upwards double arrow, U+21D1 ISOamsa  -->
    <!--  rightwards double arrow,
                                         U+21D2 ISOtech  -->
    <!--  Unicode does not say this is the 'implies' character but does not have 
         another character with this function so rArr can be used for 'implies'
         as ISOtech suggests  -->
    <!--  downwards double arrow, U+21D3 ISOamsa  -->
    <!--  left right double arrow,
                                         U+21D4 ISOamsa  -->
    <!--  Mathematical Operators  -->
    <!--  for all, U+2200 ISOtech  -->
    <!--  partial differential, U+2202 ISOtech   -->
    <!--  there exists, U+2203 ISOtech  -->
    <!--  empty set = null set, U+2205 ISOamso  -->
    <!--  nabla = backward difference,
                                         U+2207 ISOtech  -->
    <!--  element of, U+2208 ISOtech  -->
    <!--  not an element of, U+2209 ISOtech  -->
    <!--  contains as member, U+220B ISOtech  -->
    <!--  n-ary product = product sign,
                                         U+220F ISOamsb  -->
    <!--  prod is NOT the same character as U+03A0 'greek capital letter pi' though
         the same glyph might be used for both  -->
    <!--  n-ary summation, U+2211 ISOamsb  -->
    <!--  sum is NOT the same character as U+03A3 'greek capital letter sigma'
         though the same glyph might be used for both  -->
    <!--  minus sign, U+2212 ISOtech  -->
    <!--  asterisk operator, U+2217 ISOtech  -->
    <!--  square root = radical sign,
                                         U+221A ISOtech  -->
    <!--  proportional to, U+221D ISOtech  -->
    <!--  infinity, U+221E ISOtech  -->
    <!--  angle, U+2220 ISOamso  -->
    <!--  logical and = wedge, U+2227 ISOtech  -->
    <!--  logical or = vee, U+2228 ISOtech  -->
    <!--  intersection = cap, U+2229 ISOtech  -->
    <!--  union = cup, U+222A ISOtech  -->
    <!--  integral, U+222B ISOtech  -->
    <!--  therefore, U+2234 ISOtech  -->
    <!--  tilde operator = varies with = similar to,
                                         U+223C ISOtech  -->
    <!--  tilde operator is NOT the same character as the tilde, U+007E,
         although the same glyph might be used to represent both   -->
    <!--  approximately equal to, U+2245 ISOtech  -->
    <!--  almost equal to = asymptotic to,
                                         U+2248 ISOamsr  -->
    <!--  not equal to, U+2260 ISOtech  -->
    <!--  identical to, U+2261 ISOtech  -->
    <!--  less-than or equal to, U+2264 ISOtech  -->
    <!--  greater-than or equal to,
                                         U+2265 ISOtech  -->
    <!--  subset of, U+2282 ISOtech  -->
    <!--  superset of, U+2283 ISOtech  -->
    <!--  not a subset of, U+2284 ISOamsn  -->
    <!--  subset of or equal to, U+2286 ISOtech  -->
    <!--  superset of or equal to,
                                         U+2287 ISOtech  -->
    <!--  circled plus = direct sum,
                                         U+2295 ISOamsb  -->
    <!--  circled times = vector product,
                                         U+2297 ISOamsb  -->
    <!--  up tack = orthogonal to = perpendicular,
                                         U+22A5 ISOtech  -->
    <!--  dot operator, U+22C5 ISOamsb  -->
    <!--  dot operator is NOT the same character as U+00B7 middle dot  -->
    <!--  Miscellaneous Technical  -->
    <!--  left ceiling = APL upstile,
                                         U+2308 ISOamsc   -->
    <!--  right ceiling, U+2309 ISOamsc   -->
    <!--  left floor = APL downstile,
                                         U+230A ISOamsc   -->
    <!--  right floor, U+230B ISOamsc   -->
    <!--  left-pointing angle bracket = bra,
                                         U+2329 ISOtech  -->
    <!--  lang is NOT the same character as U+003C 'less than sign' 
         or U+2039 'single left-pointing angle quotation mark'  -->
    <!--  right-pointing angle bracket = ket,
                                         U+232A ISOtech  -->
    <!--  rang is NOT the same character as U+003E 'greater than sign' 
         or U+203A 'single right-pointing angle quotation mark'  -->
    <!--  Geometric Shapes  -->
    <!--  lozenge, U+25CA ISOpub  -->
    <!--  Miscellaneous Symbols  -->
    <!--  black spade suit, U+2660 ISOpub  -->
    <!--  black here seems to mean filled as opposed to hollow  -->
    <!--  black club suit = shamrock,
                                         U+2663 ISOpub  -->
    <!--  black heart suit = valentine,
                                         U+2665 ISOpub  -->
    <!--  black diamond suit, U+2666 ISOpub  -->
    <!--  Special characters for XHTML  -->
    <!--  Character entity set. Typical invocation:
         <!ENTITY % HTMLspecial PUBLIC
            "-//W3C//ENTITIES Special for XHTML//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
         %HTMLspecial;
     -->
    <!--  Portions (C) International Organization for Standardization 1986:
         Permission to copy in any form is granted for use with
         conforming SGML systems and applications as defined in
         ISO 8879, provided this notice is included in all copies.
     -->
    <!--  Relevant ISO entity set is given unless names are newly introduced.
         New names (i.e., not in ISO 8879 list) do not clash with any
         existing ISO 8879 entity names. ISO 10646 character numbers
         are given for each character, in hex. values are decimal
         conversions of the ISO 10646 values and refer to the document
         character set. Names are Unicode names. 
     -->
    <!--  C0 Controls and Basic Latin  -->
    <!--   quotation mark, U+0022 ISOnum  -->
    <!--   ampersand, U+0026 ISOnum  -->
    <!--   less-than sign, U+003C ISOnum  -->
    <!--   greater-than sign, U+003E ISOnum  -->
    <!--   apostrophe = APL quote, U+0027 ISOnum  -->
    <!--  Latin Extended-A  -->
    <!--   latin capital ligature OE,
                                        U+0152 ISOlat2  -->
    <!--   latin small ligature oe, U+0153 ISOlat2  -->
    <!--  ligature is a misnomer, this is a separate character in some languages  -->
    <!--   latin capital letter S with caron,
                                        U+0160 ISOlat2  -->
    <!--   latin small letter s with caron,
                                        U+0161 ISOlat2  -->
    <!--   latin capital letter Y with diaeresis,
                                        U+0178 ISOlat2  -->
    <!--  Spacing Modifier Letters  -->
    <!--   modifier letter circumflex accent,
                                        U+02C6 ISOpub  -->
    <!--   small tilde, U+02DC ISOdia  -->
    <!--  General Punctuation  -->
    <!--  en space, U+2002 ISOpub  -->
    <!--  em space, U+2003 ISOpub  -->
    <!--  thin space, U+2009 ISOpub  -->
    <!--  zero width non-joiner,
                                        U+200C NEW RFC 2070  -->
    <!--  zero width joiner, U+200D NEW RFC 2070  -->
    <!--  left-to-right mark, U+200E NEW RFC 2070  -->
    <!--  right-to-left mark, U+200F NEW RFC 2070  -->
    <!--  en dash, U+2013 ISOpub  -->
    <!--  em dash, U+2014 ISOpub  -->
    <!--  left single quotation mark,
                                        U+2018 ISOnum  -->
    <!--  right single quotation mark,
                                        U+2019 ISOnum  -->
    <!--  single low-9 quotation mark, U+201A NEW  -->
    <!--  left double quotation mark,
                                        U+201C ISOnum  -->
    <!--  right double quotation mark,
                                        U+201D ISOnum  -->
    <!--  double low-9 quotation mark, U+201E NEW  -->
    <!--  dagger, U+2020 ISOpub  -->
    <!--  double dagger, U+2021 ISOpub  -->
    <!--  per mille sign, U+2030 ISOtech  -->
    <!--  single left-pointing angle quotation mark,
                                        U+2039 ISO proposed  -->
    <!--  lsaquo is proposed but not yet ISO standardized  -->
    <!--  single right-pointing angle quotation mark,
                                        U+203A ISO proposed  -->
    <!--  rsaquo is proposed but not yet ISO standardized  -->
    <!--  Currency Symbols  -->
    <!--   euro sign, U+20AC NEW  -->
    <!-- ================== Imported Names ==================================== -->
    <!--  media type, as per [RFC2045]  -->
    <!--  comma-separated list of media types, as per [RFC2045]  -->
    <!--  a character encoding, as per [RFC2045]  -->
    <!--  a space separated list of character encodings, as per [RFC2045]  -->
    <!--  a language code, as per [RFC3066]  -->
    <!--  a single character, as per section 2.2 of [XML]  -->
    <!--  one or more digits  -->
    <!--  space-separated list of link types  -->
    <!--  single or comma-separated list of media descriptors  -->
    <!--  a Uniform Resource Identifier, see [RFC2396]  -->
    <!--  a space separated list of Uniform Resource Identifiers  -->
    <!--  date and time information. ISO date format  -->
    <!--  script expression  -->
    <!--  style sheet data  -->
    <!--  used for titles etc.  -->
    <!--  nn for pixels or nn% for percentage length  -->
    <!--  pixel, percentage, or relative  -->
    <!--  integer representing length in pixels  -->
    <!--  these are used for image maps  -->
    <!--  comma separated list of lengths  -->
    <!-- =================== Generic Attributes =============================== -->
    <!--  core attributes common to most elements
      id       document-wide unique id
      class    space separated list of classes
      style    associated style info
      title    advisory title/amplification
     -->
    <!--  internationalization attributes
      lang        language code (backwards compatible)
      xml:lang    language code (as per XML 1.0 spec)
      dir         direction for weak/neutral text
     -->
    <!--  attributes for common UI events
      onclick     a pointer button was clicked
      ondblclick  a pointer button was double clicked
      onmousedown a pointer button was pressed down
      onmouseup   a pointer button was released
      onmousemove a pointer was moved onto the element
      onmouseout  a pointer was moved away from the element
      onkeypress  a key was pressed and released
      onkeydown   a key was pressed down
      onkeyup     a key was released
     -->
    <!--  attributes for elements that can get the focus
      accesskey   accessibility key character
      tabindex    position in tabbing order
      onfocus     the element got the focus
      onblur      the element lost the focus
     -->
    <!-- =================== Text Elements ==================================== -->
    <!--  these can occur at block or inline level  -->
    <!--  these can only occur at block level  -->
    <!--  %Inline; covers inline or "text-level" elements  -->
    <!-- ================== Block level elements ============================== -->
    <!--  %Flow; mixes block and inline and is used for list items etc.  -->
    <!-- ================== Content models for exclusions ===================== -->
    <!--  a elements use %Inline; excluding a  -->
    <!--  pre uses %Inline excluding big, small, sup or sup  -->
    <!--  form uses %Block; excluding form  -->
    <!--  button uses %Flow; but excludes a, form and form controls  -->
    <!-- ================ Document Structure ================================== -->
    <!--  the namespace URI designates the document profile  -->
    <!-- ================ Document Head ======================================= -->
    <!--  content model is %head.misc; combined with a single
         title and an optional base element in any order  -->
    <!--  The title element is not considered part of the flow of text.
           It should be displayed, for example as the page header or
           window title. Exactly one title is required per document.
         -->
    <!--  document base URI  -->
    <!--  generic metainformation  -->
    <!-- 
      Relationship values can be used in principle:
     
       a) for document specific toolbars/menus when used
          with the link element in document head e.g.
            start, contents, previous, next, index, end, help
       b) to link to a separate style sheet (rel="stylesheet")
       c) to make a link to a script (rel="script")
       d) by stylesheets to control how collections of
          html nodes are rendered into printed documents
       e) to make a link to a printable version of this document
          e.g. a PostScript or PDF version (rel="alternate" media="print")
     -->
    <!--  style info, which may include CDATA sections  -->
    <!--  script statements, which may include CDATA sections  -->
    <!--  alternate content container for non script-based rendering  -->
    <!-- =================== Document Body ==================================== -->
    <!--  generic language/style container  -->
    <!-- =================== Paragraphs ======================================= -->
    <!-- =================== Headings ========================================= -->
    <!-- 
      There are six levels of headings from h1 (the most important)
      to h6 (the least important).
     -->
    <!-- =================== Lists ============================================ -->
    <!--  Unordered list  -->
    <!--  Ordered (numbered) list  -->
    <!--  list item  -->
    <!--  definition lists - dt for term, dd for its definition  -->
    <!-- =================== Address ========================================== -->
    <!--  information on author  -->
    <!-- =================== Horizontal Rule ================================== -->
    <!-- =================== Preformatted Text ================================ -->
    <!--  content is %Inline; excluding "img|object|big|small|sub|sup"  -->
    <!-- =================== Block-like Quotes ================================ -->
    <!-- =================== Inserted/Deleted Text ============================ -->
    <!-- 
      ins/del are allowed in block and inline content, but its
      inappropriate to include block content within an ins element
      occurring in inline content.
     -->
    <!-- ================== The Anchor Element ================================ -->
    <!--  content is %Inline; except that anchors shouldn't be nested  -->
    <!-- ===================== Inline Elements ================================ -->
    <!--  generic language/style container  -->
    <!--  I18N BiDi over-ride  -->
    <!--  forced line break  -->
    <!--  emphasis  -->
    <!--  strong emphasis  -->
    <!--  definitional  -->
    <!--  program code  -->
    <!--  sample  -->
    <!--  something user would type  -->
    <!--  variable  -->
    <!--  citation  -->
    <!--  abbreviation  -->
    <!--  acronym  -->
    <!--  inlined quote  -->
    <!--  subscript  -->
    <!--  superscript  -->
    <!--  fixed pitch font  -->
    <!--  italic font  -->
    <!--  bold font  -->
    <!--  bigger font  -->
    <!--  smaller font  -->
    <!-- ==================== Object ====================================== -->
    <!-- 
      object is used to embed objects as part of HTML pages.
      param elements should precede other content. Parameters
      can also be expressed as attribute/value pairs on the
      object element itself when brevity is desired.
     -->
    <!-- 
      param is used to supply a named property value.
      In XML it would seem natural to follow RDF and support an
      abbreviated syntax where the param elements are replaced
      by attribute value pairs on the object start tag.
     -->
    <!-- =================== Images =========================================== -->
    <!-- 
       To avoid accessibility problems for people who aren't
       able to see the image, you should provide a text
       description using the alt and longdesc attributes.
       In addition, avoid the use of server-side image maps.
       Note that in this DTD there is no name attribute. That
       is only available in the transitional and frameset DTD.
     -->
    <!--  usemap points to a map element which may be in this document
      or an external document, although the latter is not widely supported  -->
    <!-- ================== Client-side image maps ============================ -->
    <!--  These can be placed in the same document or grouped in a
         separate document although this isn't yet widely supported  -->
    <!-- ================ Forms =============================================== -->
    <!--  forms shouldn't be nested  -->
    <!-- 
      Each label must not contain more than ONE field
      Label elements shouldn't be nested.
     -->
    <!--  the name attribute is required for all but submit & reset  -->
    <!--  form control  -->
    <!--  option selector  -->
    <!--  option group  -->
    <!--  selectable choice  -->
    <!--  multi-line text field  -->
    <!-- 
      The fieldset element is used to group form fields.
      Only one legend element should occur in the content
      and if present should only be preceded by whitespace.
     -->
    <!--  fieldset label  -->
    <!-- 
     Content is %Flow; excluding a, form and form controls
     -->
    <!--  push button  -->
    <!-- ======================= Tables ======================================= -->
    <!--  Derived from IETF HTML table standard, see [RFC1942]  -->
    <!-- 
     The border attribute sets the thickness of the frame around the
     table. The default units are screen pixels.
     
     The frame attribute specifies which parts of the frame around
     the table should be rendered. The values are not the same as
     CALS to avoid a name clash with the valign attribute.
     -->
    <!-- 
     The rules attribute defines which rules to draw between cells:
     
     If rules is absent then assume:
         "none" if border is absent or border="0" otherwise "all"
     -->
    <!--  horizontal alignment attributes for cell contents
     
      char        alignment char, e.g. char=':'
      charoff     offset for alignment char
     -->
    <!--  vertical alignment attributes for cell contents  -->
    <!-- 
    colgroup groups a set of col elements. It allows you to group
    several semantically related columns together.
     -->
    <!-- 
     col elements define the alignment properties for cells in
     one or more columns.
     
     The width attribute specifies the width of the columns, e.g.
     
         width=64        width in screen pixels
         width=0.5*      relative width of 0.5
     
     The span attribute causes the attributes of one
     col element to apply to more than one column.
     -->
    <!-- 
        Use thead to duplicate headers when breaking table
        across page boundaries, or for static headers when
        tbody sections are rendered in scrolling panel.
     
        Use tfoot to duplicate footers when breaking table
        across page boundaries, or for static footers when
        tbody sections are rendered in scrolling panel.
     
        Use multiple tbody sections when rules are needed
        between groups of table rows.
     -->
    <!--  Scope is simpler than headers attribute for common tables  -->
    <!--  th is for headers, td for data and for cells acting as both  -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link href="/hr/live/css/page.css" rel="stylesheet" type="text/css"></link>
    <meta content="Apache Lenya" name="generator"></meta>
    <meta content="application/xhtml+xml; charset=UTF-8" http-equiv="Content-Type"></meta>
    <meta content="Free SnG Hand Analyzer: Calculate ICM (Independent Chip Model) equity and approximate Nash Equilibrium Push/Fold ranges for NLHE SnG hands." name="description"></meta>
    <link href="?lenya.usecase=neutron&lenya.step=introspect" rel="neutron-introspection" type="application/neutron+xml"></link>
    <title>HoldemResources.net: ICM Nash Calculator</title>
    </head>
    <body>
    <div id="page">
    <table border="0" cellpadding="0" cellspacing="12" width="100%">
    <tr>
    <td align="left" colspan="1" id="project-logo" rowspan="1">
    <img align="left" alt="project logo" src="/hr/live/images/project-logo.png"></img>
    </td>
    <td align="right" colspan="1" rowspan="1">
    <table cellpadding="0" cellspacing="0">
    <tr>
    <td colspan="1" rowspan="1">
    <script type="text/javascript" xml:space="preserve"><!-- 
    		google_ad_client = "pub-8564017309641110";
    		google_ad_width = 468;
    		google_ad_height = 60;
    		google_ad_format = "468x60_as";
    		google_ad_type = "text_image";
    		google_ad_channel = "";
    		google_color_border = "DDBBBB";
    		google_color_bg = "FFFFFF";
    		google_color_link = "800000";
    		google_color_text = "000000";
    		google_color_url = "9B2C2C";
    		google_ui_features = "rc:0";
    		 -->
    </script>
    <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript" xml:space="preserve"><!-- dummycomment -->
    </script>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <div id="tabs">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td colspan="1" rowspan="1">
    <div class="tab-pre-separator">Â*</div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab">
    <a href="http://www.holdemresources.net/hr/index.html" shape="rect">Home</a>
    </div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab-separator">Â*</div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab-selected">
    <a href="http://www.holdemresources.net/hr/sngs.html" shape="rect">Sit 'n' Go</a>
    </div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab-separator">Â*</div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab">
    <a href="http://www.holdemresources.net/hr/linuxpoker.html" shape="rect">Linux Poker</a>
    </div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab-separator">Â*</div>
    </td>
    <td colspan="1" rowspan="1">
    <div class="tab">
    <a href="http://www.holdemresources.net/hr/contact.html" shape="rect">Contact</a>
    </div>
    </td>
    <td class="tab-post-separator" colspan="1" rowspan="1">
    <div class="tab-separator">Â*</div>
    </td>
    </tr>
    </table>
    </div>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td colspan="1" rowspan="1" valign="top">
    <div id="menu">
    <div class="menublock-1">
    <div class="menuitem-1">
    <a href="http://www.holdemresources.net/hr/index.html" shape="rect">Home</a>
    </div>
    </div>
    <div class="menublock-selected-1">
    <div class="menuitem-1">
    <a href="http://www.holdemresources.net/hr/sngs.html" shape="rect">Sit 'n' Go</a>
    </div>
    <div class="menublock-selected-2">
    <div class="menuitem-selected-2">ICM Calculator</div>
    <div class="menublock-3">
    <div class="menuitem-3">
    <a href="http://www.holdemresources.net/hr/sngs/icmcalculator/icmcalcfaq.html" shape="rect">Calculator FAQ</a>
    </div>
    </div>
    </div>
    <div class="menublock-2">
    <div class="menuitem-2">
    <a href="http://www.holdemresources.net/hr/sngs/icm.html" shape="rect">Independent Chip Model</a>
    </div>
    <div class="menublock-3">
    <div class="menuitem-3">
    <a href="http://www.holdemresources.net/hr/sngs/icm/icmjava.html" shape="rect">Sample Implementation</a>
    </div>
    </div>
    </div>
    <div class="menublock-2">
    <div class="menuitem-2">
    <a href="http://www.holdemresources.net/hr/sngs/hune.html" shape="rect">HeadsUp Nash Equilibrium</a>
    </div>
    </div>
    </div>
    <div class="menublock-1">
    <div class="menuitem-1">
    <a href="http://www.holdemresources.net/hr/linuxpoker.html" shape="rect">Linux Poker</a>
    </div>
    <div class="menublock-2">
    <div class="menuitem-2">
    <a href="http://www.holdemresources.net/hr/linuxpoker/pokertracker.html" shape="rect">PokerTracker</a>
    </div>
    </div>
    <div class="menublock-2">
    <div class="menuitem-2">
    <a href="http://www.holdemresources.net/hr/linuxpoker/pahud.html" shape="rect">PokerAce Hud</a>
    </div>
    </div>
    </div>
    <div class="menublock-1">
    <div class="menuitem-1">
    <a href="http://www.holdemresources.net/hr/contact.html" shape="rect">Contact</a>
    </div>
    </div>
    </div>
    <table cellpadding="0" cellspacing="3">
    <tr>
    <td align="right" colspan="1" rowspan="1">
    <script type="text/javascript" xml:space="preserve"><!-- 
    		google_ad_client = "pub-8564017309641110";
    		google_ad_width = 200;
    		google_ad_height = 200;
    		google_ad_format = "200x200_as";
    		google_ad_type = "text_image";
    		google_ad_channel = "";
    		google_color_border = "DDBBBB";
    		google_color_bg = "FFFFFF";
    		google_color_link = "800000";
    		google_color_text = "000000";
    		google_color_url = "9B2C2C";
    		google_ui_features = "rc:0";
    		 -->
    </script>
    <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript" xml:space="preserve"><!-- dummycomment -->
    </script>
    </td>
    </tr>
    </table>
    </td>
    <td colspan="1" rowspan="1" valign="top" width="5000">
    <div id="main">
    <div id="breadcrumb">
      »
    <a href="http://www.holdemresources.net/hr/sngs.html" shape="rect">Sit 'n' Go</a>
     
      »
    ICM Calculator</div>
    <div id="body">
    <h1>ICM Nash Calculator Results</h1>
    <p>
    <ul>
    <li>
    <a href="icmcalculator.html" shape="rect">Calculate new hand</a>
    </li>
    </ul>
    </p>
    <p>
    	Level: 100.0/200.0/0.0<br></br>
     
    	Structure: 0.5/0.3/0.2<br></br>
     
    	Players: 7<br></br>
     
    	Runtime: 1115ms [300  Iterations]<br></br>
    </p>
    <table border="1" cellpadding="3" cellspacing="2" class="simple">
    <tr>
    <th colspan="1" rowspan="1">Player</th>
    <th colspan="1" rowspan="1">Stack</th>
    <th colspan="1" rowspan="1">Push%</th>
    <th colspan="1" rowspan="1">EQPre</th>
    <th colspan="1" rowspan="1">EQPost</th>
    <th colspan="1" rowspan="1">EQDiff</th>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">UTG</td>
    <td colspan="1" rowspan="1">1500.0</td>
    <td colspan="1" rowspan="1">14.8%</td>
    <td colspan="1" rowspan="1">0.1183</td>
    <td colspan="1" rowspan="1">0.1202</td>
    <td colspan="1" rowspan="1">0.00184</td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">UTG+1</td>
    <td colspan="1" rowspan="1">1400.0</td>
    <td colspan="1" rowspan="1">18.6%</td>
    <td colspan="1" rowspan="1">0.1112</td>
    <td colspan="1" rowspan="1">0.1132</td>
    <td colspan="1" rowspan="1">0.00201</td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">UTG+2</td>
    <td colspan="1" rowspan="1">1600.0</td>
    <td colspan="1" rowspan="1">20.7%</td>
    <td colspan="1" rowspan="1">0.1253</td>
    <td colspan="1" rowspan="1">0.1275</td>
    <td colspan="1" rowspan="1">0.00215</td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1">2000.0</td>
    <td colspan="1" rowspan="1">26.4%</td>
    <td colspan="1" rowspan="1">0.152</td>
    <td colspan="1" rowspan="1">0.1541</td>
    <td colspan="1" rowspan="1">0.00218</td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">1000.0</td>
    <td colspan="1" rowspan="1">35.1%</td>
    <td colspan="1" rowspan="1">0.0816</td>
    <td colspan="1" rowspan="1">0.0844</td>
    <td colspan="1" rowspan="1">0.00273</td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">3800.0</td>
    <td colspan="1" rowspan="1">79.2%</td>
    <td colspan="1" rowspan="1">0.247</td>
    <td colspan="1" rowspan="1">0.2448</td>
    <td colspan="1" rowspan="1">-0.00222</td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">2200.0</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">0.1645</td>
    <td colspan="1" rowspan="1">0.1558</td>
    <td colspan="1" rowspan="1">-0.00868</td>
    </tr>
    </table>
    <p>
    <br></br>
     
    	Explanation:
    	<ul>
    <li>Stack: Players stack before posting blinds.</li>
    <li>Push%: Percentage of hands a player open-pushes.</li>
    <li>EQPre: ICM equity before blinds.</li>
    <li>EQPost: ICM equity after hand.</li>
    <li>EQDiff: ICM equity change during hand.</li>
    </ul>
    </p>
    <br></br>
    <table border="1" cellpadding="3" cellspacing="2" class="simple">
    <tr>
    <th colspan="1" rowspan="1" width="40">PU</th>
    <th colspan="1" rowspan="1" width="40">CA</th>
    <th colspan="1" rowspan="1" width="40">OC</th>
    <th colspan="1" rowspan="1">Range</th>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">UTG</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">14.8%, 33+ A8s+ A5s-A3s ATo+ K9s+ KQo QTs+ JTs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">UTG+1</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">5.6%, 88+ AQs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">UTG+2</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">UTG+2</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">5.6%, 88+ AQs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1">1.4%, QQ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">5.6%, 88+ AQs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">6.3%, 77+ AJs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">3.9%, 99+ AKs AKo </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">3.9%, 99+ AKs AKo </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">6.3%, 77+ AJs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.4%, QQ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">8.0%, 66+ ATs+ AJo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">UTG+1</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">18.6%, 22+ A7s+ A5s-A2s ATo+ K9s+ KJo+ Q9s+ QJo J9s+ T9s </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">UTG+2</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">5.9%, 88+ AJs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">7.2%, 77+ AJs+ AJo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">8.4%, 55+ ATs+ AJo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">4.2%, 99+ AQs+ AKo </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">6.0%, 77+ AQs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">8.9%, 66+ ATs+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">10.1%, 44+ A9s+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">UTG+2</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">20.7%, 22+ A2s+ ATo+ K8s+ KTo+ Q8s+ QJo J9s+ T9s 98s </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">7.1%, 88+ ATs+ AJo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1">2.6%, TT+ AKs </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">8.9%, 66+ ATs+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">5.6%, 88+ AQs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">6.0%, 77+ AQs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">8.9%, 66+ ATs+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">10.1%, 44+ A9s+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">CO</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">26.4%, 22+ A2s+ A8o+ K4s+ KTo+ Q8s+ QTo+ J8s+ JTo T8s+ 98s 87s </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">10.0%, 55+ A8s+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1">5.9%, 88+ AJs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">5.9%, 88+ AJs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">8.7%, 77+ A9s+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">1.8%, JJ+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">9.7%, 55+ A9s+ ATo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">BU</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">35.1%, 22+ Ax+ K3s+ K8o+ Q8s+ QTo+ J8s+ JTo T7s+ 97s+ 86s+ 76s </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">20.8%, 33+ A2s+ A7o+ A5o K9s+ KTo+ QTs+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1">5.4%, 99+ AJs+ AQo+ </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">32.7%, 22+ Ax+ K4s+ K8o+ Q8s+ QTo+ J8s+ JTo T9s </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1">SB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">79.2%, 22+ Kx+ Q2s+ Q3o+ J2s+ J4o+ T2s+ T6o+ 92s+ 95o+ 82s+ 85o+ 72s+ 75o+ 62s+ 64o+ 52s+ 54o 42s+ 32s </td>
    </tr>
    <tr>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">BB</td>
    <td colspan="1" rowspan="1"></td>
    <td colspan="1" rowspan="1">21.7%, 55+ A3s+ A5o+ K8s+ K9o+ QTs+ </td>
    </tr>
    </table>
    <p>
    <br></br>
     
    	Explanation:
    	<ul>
    <li>PU: Pushing Player. <i>Applies when no other player entered the pot yet.</i>
    </li>
    <li>CA: Calling Player. <i>Player pushes after another player (PU) is already in the pot.</i>
    </li>
    <li>OC: OverCalling Player. <i>Player pushes after two other players (PU, CA) are already in the pot.</i>
    </li>
    </ul>
    </p>
    <br></br>
    <form enctype="application/x-www-form-urlencoded" method="get">
    <p>Results URL:<br></br>
    <textarea cols="80" readonly="true" rows="2">http://www.holdemresources.net/hr/sngs/icmcalculator.html?action=calculate&bb=200&sb=100&ante=0&structure=0.5%2C0.3%2C0.2&s1=1500&s2=1400&s3=1600&s4=2000&s5=1000&s6=3800&s7=2200&s8=&s9=</textarea>
    </p>
    <p>UBB-Code for Forum Links:<br></br>
    <textarea cols="80" readonly="true" rows="2"><a href="http://www.holdemresources.net/hr/sngs/icmcalculator.html?action=calculate&bb=200&sb=100&ante=0&structure=0.5%2C0.3%2C0.2&s1=1500&s2=1400&s3=1600&s4=2000&s5=1000&s6=3800&s7=2200&s8=&s9=" target="_blank">ICM Nash Calculator Results</a></textarea>
    </p>
    </form>
    </div>
    </div>
    </td>
    </tr>
    <tr>
    <td colspan="2" rowspan="1" valign="top">
    <div id="footer"></div>
    </td>
    </tr>
    </table>
    </div>
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript" xml:space="preserve"><!-- dummycomment -->
    </script>
    <script type="text/javascript" xml:space="preserve">
    _uacct = "UA-2568378-1";
    urchinTracker();
    </script>
    </body>
    </html>

  9. #9
    Membre expérimenté
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    1 466
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 1 466
    Points : 1 610
    Points
    1 610
    Par défaut
    Ben faut faire gaffe à utiliser le namespace d'xhtml :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <html xmlns="http://www.w3.org/1999/xhtml">
    dans l'expression du chemin xpath.

  10. #10
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    Citation Envoyé par Morbo Voir le message
    Ben faut faire gaffe à utiliser le namespace d'xhtml :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <html xmlns="http://www.w3.org/1999/xhtml">
    dans l'expression du chemin xpath.
    Comment prendre en compte ce namespace (je précise que je ne connais pas trop XPath et apprends à m'en servir...sur le tas !)

    Mes expressions XPath sont codées de la façon suivante (pour rechercher une table ayant un attribut class égal à "simple":

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
            XPath xpa = XPathFactory.newInstance().newXPath();
            /* Recherche de la liste des tables */
            NodeList nodeList = (NodeList) xpa.evaluate("//table[@class='simple']", document, XPathConstants.NODESET);
    Que dois-je modifier ?

  11. #11
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    J'ai fouillé dans le forum et je pense avoir trouvé une partie de la solution:
    J'ajoute une gestion de namespace de la façon suivante:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
     
     
            XPath xpa = XPathFactory.newInstance().newXPath();
     
            NamespaceContext namespace = new NamespaceContext() {
     
                    public String getNamespaceURI(String prefix) {
                        return "http://www.w3.org/1999/xhtml";
                    }
     
                    public String getPrefix(String namespaceURI) {
                        return "";
                    }
     
                    public Iterator getPrefixes(String namespaceURI) {
                        return null;
                    }
                };
            xpa.setNamespaceContext(namespace);
            /* Recherche de la liste des tables */
            NodeList nodeList = (NodeList) xpa.evaluate("//table[@class='simple']", document, XPathConstants.NODESET);
    Est ce bien ainsi qu'il faut procéder ?
    La question que je me pose, c'est que, contrairement aux examples trouvés dans le forum, il n'y a pas de préfix associé à la déclaration de ce namespace <html xmlns="http://www.w3.org/1999/xhtml">

  12. #12
    Membre expérimenté
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    1 466
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 1 466
    Points : 1 610
    Points
    1 610
    Par défaut
    Il y a un bon exemple d'utilisation de namespace sans préfixe :
    http://www.ibm.com/developerworks/xm...x.html?ca=drs-
    Le fait qu'il n'y ait pas de préfixe se détecte comme ça :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    prefix.equals(XMLConstants.DEFAULT_NS_PREFIX)

  13. #13
    Membre à l'essai
    Inscrit en
    Avril 2010
    Messages
    45
    Détails du profil
    Informations forums :
    Inscription : Avril 2010
    Messages : 45
    Points : 19
    Points
    19
    Par défaut
    Merci pour l'article qui m'a permis de voir ce que je devais modifier.
    Ainsi:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
     
            NamespaceContext namespace = new NamespaceContext() {
     
                    public String getNamespaceURI(String prefix) {
                        if (prefix.equals(XMLConstants.DEFAULT_NS_PREFIX)) {
                            return "http://www.w3.org/1999/xhtml";
                        } else {
                            return XMLConstants.NULL_NS_URI;
                        }
                    }
     
                    public String getPrefix(String namespaceURI) {
                        return null;
                    }
     
                    public Iterator getPrefixes(String namespaceURI) {
                        return null;
                    }
                };
            xpa.setNamespaceContext(namespace);
            NodeList nodeList = (NodeList) xpa.evaluate("//:table[@class='simple']", document, XPathConstants.NODESET);
    me permet de récupérer les tables attendues !

  14. #14
    Modérateur

    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    12 551
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 12 551
    Points : 21 607
    Points
    21 607
    Par défaut
    Beuh. Le fait est que ça marche par le hasard des implémentations, mais ça ne devrait pas. D'autres outils, des outils qui ne nécessitent pas d'implémenter soi-même un NamespaceContext par exemple, refuseraient ça.
    Une expression XPath ne tolère pas de namespace par défaut, c'est-à-dire qu'un namespace doit avoir un vrai préfixe associé, ou ne pas être utilisé.

    Quant au préfixe à donner au namespace "http://www.w3.org/1999/xhtml", il n'y en a pas habituellement, eh ben on peut lui mettre "h" ou "html" ou "zorglub".
    Ce qui donnerait les expressions XPath "//h:table[@class='simple']" ou "//html:table[@class='simple']" ou "//zorglub:table[@class='simple']"
    Comme on veut, ça n'a pas d'importance. Il faut juste définir un préfixe et d'y tenir.
    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 31/05/2010, 12h35
  2. Problème de chargement xml généré par php
    Par Smiff dans le forum ActionScript 3
    Réponses: 5
    Dernier message: 21/10/2008, 13h07
  3. Réponses: 1
    Dernier message: 16/04/2007, 08h52
  4. [DOM] Problème bizarre avec DOM et XPath
    Par fragmonster dans le forum Bibliothèques et frameworks
    Réponses: 2
    Dernier message: 16/03/2006, 14h43
  5. Problème mémoire avec une dll par chargement dynamique
    Par widze19 dans le forum C++Builder
    Réponses: 6
    Dernier message: 15/12/2003, 13h20

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo