From: Michael Orlitzky Date: Tue, 17 Jun 2014 14:36:41 +0000 (-0400) Subject: Add SportInfo support for mlbonbasepctxml.dtd. X-Git-Tag: 0.0.6~161 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=791bc974c091565579738a91cbb0285e6b7556ac;p=dead%2Fhtsn-import.git Add SportInfo support for mlbonbasepctxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 1e76185..77afd35 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -196,6 +196,8 @@ MLBHRFreqXML.dtd MLBIntWalksXML.dtd .IP \[bu] MLBKORateXML.dtd +.IP \[bu] +mlbonbasepctxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbonbasepctxml.dtd b/schema/mlbonbasepctxml.dtd new file mode 100644 index 0000000..ace2c25 --- /dev/null +++ b/schema/mlbonbasepctxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbonbasepctxml/mlbonbasepctxml.xml b/schemagen/mlbonbasepctxml/mlbonbasepctxml.xml new file mode 100644 index 0000000..0d291f4 --- /dev/null +++ b/schemagen/mlbonbasepctxml/mlbonbasepctxml.xml @@ -0,0 +1,410 @@ + + + +21024217 +AAX%AL-ONBASEPCT-LEADERS +Statistics +MLB +2001 AL On Base Percentage Leaders ++1 +Jason Giambi, OAK +.481 +.337 +46 +90 +71 +8 + ++2 +Edgar Martinez, SEA +.437 +.303 +48 +81 +62 +5 + ++3 +Manny Ramirez, BOS +.429 +.331 +55 +101 +49 +3 + ++4 +John Olerud, SEA +.427 +.317 +52 +91 +55 +3 + ++5 +Roberto Alomar, CLE +.426 +.354 +54 +103 +40 +2 + ++6 +Matt Lawton, MIN +.410 +.299 +56 +87 +55 +1 + ++7 +Bernie Williams, NYY +.409 +.324 +53 +80 +35 +4 + ++8 +Jeff Conine, BAL +.402 +.326 +35 +76 +28 +3 + ++9 +Jorge Posada, NYY +.402 +.310 +33 +76 +36 +3 + ++10 +Alex Rodriguez, TEX +.401 +.315 +70 +100 +42 +6 + ++11 +Bobby Higginson, DET +.400 +.291 +41 +68 +46 +0 + ++12 +Fred McGriff, TB +.398 +.332 +33 +90 +31 +0 + ++13 +Jim Thome, CLE +.397 +.276 +47 +69 +49 +2 + ++14 +Mike Sweeney, KC +.395 +.335 +68 +106 +34 +0 + ++15 +Carlos Delgado, TOR +.393 +.250 +49 +72 +61 +8 + ++16 +Frank Menechino, OAK +.392 +.283 +46 +73 +38 +10 + ++17 +Magglio Ordonez, SOX +.386 +.304 +48 +87 +36 +2 + ++18 +Shannon Stewart, TOR +.385 +.323 +58 +109 +30 +4 + ++19 +Doug Mientkiewicz, MIN +.383 +.312 +43 +89 +29 +5 + ++20 +Tony Clark, DET +.379 +.300 +44 +74 +33 +1 + ++21 +Juan Gonzalez, CLE +.378 +.341 +57 +101 +21 +2 + ++22 +Ichiro Suzuki, SEA +.378 +.349 +71 +126 +14 +4 + ++23 +Trot Nixon, BOS +.377 +.263 +46 +63 +41 +6 + ++24 +Raul Mondesi, TOR +.375 +.283 +57 +89 +44 +3 + ++25 +Rafael Palmeiro, TEX +.371 +.262 +43 +78 +52 +1 + ++26 +Melvin Mora, BAL +.371 +.292 +30 +70 +23 +9 + ++27 +Ellis Burks, CLE +.371 +.295 +53 +77 +33 +2 + ++28 +Derek Jeter, NYY +.367 +.288 +52 +91 +37 +3 + ++29 +Adam Kennedy, ANA +.366 +.303 +29 +73 +20 +5 + ++30 +David Eckstein, ANA +.363 +.283 +41 +82 +25 +12 + ++31 +Tim Salmon, ANA +.363 +.206 +33 +52 +58 +5 + ++32 +Damion Easley, DET +.362 +.285 +33 +78 +28 +6 + ++33 +Bret Boone, SEA +.362 +.326 +60 +103 +20 +3 + ++34 +Troy Glaus, ANA +.362 +.250 +48 +74 +52 +2 + ++35 +Scott Brosius, NYY +.359 +.290 +43 +81 +30 +1 + ++36 +Corey Koskie, MIN +.355 +.262 +48 +72 +36 +6 + ++37 +Mike Cameron, SEA +.355 +.270 +56 +73 +35 +3 + ++38 +Paul Konerko, SOX +.353 +.277 +48 +76 +27 +6 + ++39 +Ben Grieve, TB +.352 +.245 +32 +69 +44 +3 + ++40 +Darin Erstad, ANA +.349 +.283 +47 +91 +28 +6 + + July 3, 2001, at 12:36 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 6a36123..4468831 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -115,7 +115,7 @@ dtds = "MLBHRFreqXML.dtd", "MLBIntWalksXML.dtd", "MLBKORateXML.dtd", - "mlbonbasepctxml.dtd", -- no dtd + "mlbonbasepctxml.dtd", "MLBOPSXML.dtd", -- no dtd "MLBPlateAppsXML.dtd", -- no dtd "mlbrbisxml.dtd", -- no dtd @@ -359,7 +359,8 @@ sport_info_test_files = "mlbhomerunsxml.xml", "MLBHRFreqXML.xml", "MLBIntWalksXML.xml", - "MLBKORateXML.xml" + "MLBKORateXML.xml", + "mlbonbasepctxml.xml" ] diff --git a/test/xml/sportinfo/mlbonbasepctxml.dtd b/test/xml/sportinfo/mlbonbasepctxml.dtd new file mode 100644 index 0000000..ace2c25 --- /dev/null +++ b/test/xml/sportinfo/mlbonbasepctxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbonbasepctxml.xml b/test/xml/sportinfo/mlbonbasepctxml.xml new file mode 100644 index 0000000..0d291f4 --- /dev/null +++ b/test/xml/sportinfo/mlbonbasepctxml.xml @@ -0,0 +1,410 @@ + + + +21024217 +AAX%AL-ONBASEPCT-LEADERS +Statistics +MLB +2001 AL On Base Percentage Leaders ++1 +Jason Giambi, OAK +.481 +.337 +46 +90 +71 +8 + ++2 +Edgar Martinez, SEA +.437 +.303 +48 +81 +62 +5 + ++3 +Manny Ramirez, BOS +.429 +.331 +55 +101 +49 +3 + ++4 +John Olerud, SEA +.427 +.317 +52 +91 +55 +3 + ++5 +Roberto Alomar, CLE +.426 +.354 +54 +103 +40 +2 + ++6 +Matt Lawton, MIN +.410 +.299 +56 +87 +55 +1 + ++7 +Bernie Williams, NYY +.409 +.324 +53 +80 +35 +4 + ++8 +Jeff Conine, BAL +.402 +.326 +35 +76 +28 +3 + ++9 +Jorge Posada, NYY +.402 +.310 +33 +76 +36 +3 + ++10 +Alex Rodriguez, TEX +.401 +.315 +70 +100 +42 +6 + ++11 +Bobby Higginson, DET +.400 +.291 +41 +68 +46 +0 + ++12 +Fred McGriff, TB +.398 +.332 +33 +90 +31 +0 + ++13 +Jim Thome, CLE +.397 +.276 +47 +69 +49 +2 + ++14 +Mike Sweeney, KC +.395 +.335 +68 +106 +34 +0 + ++15 +Carlos Delgado, TOR +.393 +.250 +49 +72 +61 +8 + ++16 +Frank Menechino, OAK +.392 +.283 +46 +73 +38 +10 + ++17 +Magglio Ordonez, SOX +.386 +.304 +48 +87 +36 +2 + ++18 +Shannon Stewart, TOR +.385 +.323 +58 +109 +30 +4 + ++19 +Doug Mientkiewicz, MIN +.383 +.312 +43 +89 +29 +5 + ++20 +Tony Clark, DET +.379 +.300 +44 +74 +33 +1 + ++21 +Juan Gonzalez, CLE +.378 +.341 +57 +101 +21 +2 + ++22 +Ichiro Suzuki, SEA +.378 +.349 +71 +126 +14 +4 + ++23 +Trot Nixon, BOS +.377 +.263 +46 +63 +41 +6 + ++24 +Raul Mondesi, TOR +.375 +.283 +57 +89 +44 +3 + ++25 +Rafael Palmeiro, TEX +.371 +.262 +43 +78 +52 +1 + ++26 +Melvin Mora, BAL +.371 +.292 +30 +70 +23 +9 + ++27 +Ellis Burks, CLE +.371 +.295 +53 +77 +33 +2 + ++28 +Derek Jeter, NYY +.367 +.288 +52 +91 +37 +3 + ++29 +Adam Kennedy, ANA +.366 +.303 +29 +73 +20 +5 + ++30 +David Eckstein, ANA +.363 +.283 +41 +82 +25 +12 + ++31 +Tim Salmon, ANA +.363 +.206 +33 +52 +58 +5 + ++32 +Damion Easley, DET +.362 +.285 +33 +78 +28 +6 + ++33 +Bret Boone, SEA +.362 +.326 +60 +103 +20 +3 + ++34 +Troy Glaus, ANA +.362 +.250 +48 +74 +52 +2 + ++35 +Scott Brosius, NYY +.359 +.290 +43 +81 +30 +1 + ++36 +Corey Koskie, MIN +.355 +.262 +48 +72 +36 +6 + ++37 +Mike Cameron, SEA +.355 +.270 +56 +73 +35 +3 + ++38 +Paul Konerko, SOX +.353 +.277 +48 +76 +27 +6 + ++39 +Ben Grieve, TB +.352 +.245 +32 +69 +44 +3 + ++40 +Darin Erstad, ANA +.349 +.283 +47 +91 +28 +6 + + July 3, 2001, at 12:36 PM ET +