From: Michael Orlitzky Date: Tue, 17 Jun 2014 13:46:27 +0000 (-0400) Subject: Add SportInfo support for mlbhomerunsxml.dtd. X-Git-Tag: 0.0.6~165 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c842c8e53ea54e5a1e7bacb6aa4b19bd4f883654;p=dead%2Fhtsn-import.git Add SportInfo support for mlbhomerunsxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 7c48eb6..86dee64 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -188,6 +188,8 @@ MLBGIDPXML.dtd MLBHitByPitchXML.dtd .IP \[bu] mlbhitsleadersxml.dtd +.IP \[bu] +mlbhomerunsxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbhomerunsxml.dtd b/schema/mlbhomerunsxml.dtd new file mode 100644 index 0000000..a6892ac --- /dev/null +++ b/schema/mlbhomerunsxml.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbhomerunsxml/mlbhomerunsxml.xml b/schemagen/mlbhomerunsxml/mlbhomerunsxml.xml new file mode 100644 index 0000000..730153e --- /dev/null +++ b/schemagen/mlbhomerunsxml/mlbhomerunsxml.xml @@ -0,0 +1,490 @@ + + + +6070317 +AAX%AL-HOMERUN-LEADERS +Statistics +MLB +2001 AL Home Run Leaders ++1 +Manny Ramirez, BOS +25 +82 +.331 +12.2 +14.2 +49 +82 +.429 + ++2 +Alex Rodriguez, TEX +23 +67 +.315 +13.8 +15.8 +42 +62 +.401 + ++3 +Jim Thome, CLE +22 +53 +.276 +11.4 +13.6 +49 +80 +.397 + ++ +Carlos Delgado, TOR +22 +54 +.250 +13.1 +16.0 +61 +77 +.393 + ++5 +Mike Sweeney, KC +21 +63 +.335 +15.0 +16.9 +34 +41 +.395 + ++ +Juan Gonzalez, CLE +21 +74 +.341 +14.1 +15.5 +21 +47 +.378 + ++ +Rafael Palmeiro, TEX +21 +60 +.262 +14.2 +16.8 +52 +46 +.371 + ++ +Troy Glaus, ANA +21 +52 +.250 +14.1 +16.8 +52 +70 +.362 + ++ +Bret Boone, SEA +21 +80 +.326 +15.0 +16.6 +20 +54 +.362 + ++10 +Ellis Burks, CLE +20 +53 +.295 +13.1 +15.0 +33 +45 +.371 + ++ +Greg Vaughn, TB +20 +56 +.247 +14.8 +16.8 +38 +80 +.332 + ++12 +Magglio Ordonez, SOX +19 +54 +.304 +15.1 +16.9 +36 +41 +.386 + ++ +Jason Giambi, OAK +19 +60 +.337 +14.1 +18.1 +71 +45 +.481 + ++14 +Paul Konerko, SOX +16 +46 +.277 +17.1 +18.9 +27 +51 +.353 + ++ +Miguel Tejada, OAK +16 +50 +.268 +19.8 +21.1 +20 +42 +.324 + ++ +Raul Mondesi, TOR +16 +47 +.283 +19.7 +22.5 +44 +73 +.375 + ++ +Ivan Rodriguez, TEX +16 +41 +.292 +16.5 +17.4 +14 +42 +.329 + ++18 +Jose Valentin, SOX +14 +36 +.286 +16.2 +18.1 +20 +56 +.344 + ++ +Mike Cameron, SEA +14 +54 +.270 +19.3 +22.2 +35 +76 +.355 + ++ +Tony Batista, BAL +14 +49 +.206 +20.8 +22.1 +16 +68 +.255 + ++ +Fred McGriff, TB +14 +47 +.332 +19.4 +21.7 +31 +48 +.398 + ++ +Brian Daubach, BOS +14 +44 +.285 +15.8 +17.8 +22 +65 +.349 + ++ +Tino Martinez, NYY +14 +57 +.260 +22.0 +23.9 +25 +45 +.315 + ++ +Bernie Williams, NYY +14 +46 +.324 +17.6 +20.5 +35 +28 +.409 + ++25 +Russell Branyan, CLE +13 +37 +.235 +15.7 +17.8 +24 +81 +.318 + ++ +Carlos Lee, SOX +13 +46 +.302 +20.6 +21.6 +13 +38 +.339 + ++ +Jorge Posada, NYY +13 +61 +.310 +18.8 +21.8 +36 +62 +.402 + ++28 +Carlos Beltran, KC +12 +42 +.266 +26.0 +28.3 +22 +70 +.312 + ++ +Ruben Sierra, TEX +12 +34 +.315 +10.8 +11.3 +2 +22 +.319 + ++ +Garret Anderson, ANA +12 +53 +.273 +28.1 +29.5 +13 +47 +.297 + ++ +Robert Fick, DET +12 +32 +.304 +15.3 +16.6 +14 +30 +.355 + ++ +Tony Clark, DET +12 +46 +.300 +20.6 +23.7 +33 +76 +.379 + ++ +Torii Hunter, MIN +12 +43 +.247 +21.9 +22.8 +11 +59 +.285 + ++ +Edgar Martinez, SEA +12 +64 +.303 +22.3 +27.8 +62 +49 +.437 + ++ +Trot Nixon, BOS +12 +39 +.263 +20.0 +24.1 +41 +45 +.377 + ++36 +Dean Palmer, DET +11 +40 +.222 +19.6 +22.1 +27 +59 +.317 + ++ +Jermaine Dye, KC +11 +38 +.283 +27.3 +30.0 +26 +57 +.343 + ++ +Doug Mientkiewicz, MIN +11 +50 +.312 +25.9 +28.7 +29 +50 +.383 + ++ +Corey Koskie, MIN +11 +50 +.262 +25.0 +28.6 +36 +50 +.355 + ++ +Eric Chavez, OAK +11 +43 +.247 +26.1 +28.2 +21 +64 +.306 + + July 3, 2001, at 12:36 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 9fda564..6631613 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -111,7 +111,7 @@ dtds = "MLBGIDPXML.dtd", "MLBHitByPitchXML.dtd", "mlbhitsleadersxml.dtd", - "mlbhomerunsxml.dtd", -- no dtd + "mlbhomerunsxml.dtd", "MLBHRFreqXML.dtd", -- no dtd "MLBIntWalksXML.dtd", -- no dtd "MLBKORateXML.dtd", -- no dtd @@ -355,7 +355,8 @@ sport_info_test_files = "MLBGamesPlayedXML.xml", "MLBGIDPXML.xml", "MLBHitByPitchXML.xml", - "mlbhitsleadersxml.xml" + "mlbhitsleadersxml.xml", + "mlbhomerunsxml.xml" ] diff --git a/test/xml/sportinfo/mlbhomerunsxml.dtd b/test/xml/sportinfo/mlbhomerunsxml.dtd new file mode 100644 index 0000000..a6892ac --- /dev/null +++ b/test/xml/sportinfo/mlbhomerunsxml.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbhomerunsxml.xml b/test/xml/sportinfo/mlbhomerunsxml.xml new file mode 100644 index 0000000..730153e --- /dev/null +++ b/test/xml/sportinfo/mlbhomerunsxml.xml @@ -0,0 +1,490 @@ + + + +6070317 +AAX%AL-HOMERUN-LEADERS +Statistics +MLB +2001 AL Home Run Leaders ++1 +Manny Ramirez, BOS +25 +82 +.331 +12.2 +14.2 +49 +82 +.429 + ++2 +Alex Rodriguez, TEX +23 +67 +.315 +13.8 +15.8 +42 +62 +.401 + ++3 +Jim Thome, CLE +22 +53 +.276 +11.4 +13.6 +49 +80 +.397 + ++ +Carlos Delgado, TOR +22 +54 +.250 +13.1 +16.0 +61 +77 +.393 + ++5 +Mike Sweeney, KC +21 +63 +.335 +15.0 +16.9 +34 +41 +.395 + ++ +Juan Gonzalez, CLE +21 +74 +.341 +14.1 +15.5 +21 +47 +.378 + ++ +Rafael Palmeiro, TEX +21 +60 +.262 +14.2 +16.8 +52 +46 +.371 + ++ +Troy Glaus, ANA +21 +52 +.250 +14.1 +16.8 +52 +70 +.362 + ++ +Bret Boone, SEA +21 +80 +.326 +15.0 +16.6 +20 +54 +.362 + ++10 +Ellis Burks, CLE +20 +53 +.295 +13.1 +15.0 +33 +45 +.371 + ++ +Greg Vaughn, TB +20 +56 +.247 +14.8 +16.8 +38 +80 +.332 + ++12 +Magglio Ordonez, SOX +19 +54 +.304 +15.1 +16.9 +36 +41 +.386 + ++ +Jason Giambi, OAK +19 +60 +.337 +14.1 +18.1 +71 +45 +.481 + ++14 +Paul Konerko, SOX +16 +46 +.277 +17.1 +18.9 +27 +51 +.353 + ++ +Miguel Tejada, OAK +16 +50 +.268 +19.8 +21.1 +20 +42 +.324 + ++ +Raul Mondesi, TOR +16 +47 +.283 +19.7 +22.5 +44 +73 +.375 + ++ +Ivan Rodriguez, TEX +16 +41 +.292 +16.5 +17.4 +14 +42 +.329 + ++18 +Jose Valentin, SOX +14 +36 +.286 +16.2 +18.1 +20 +56 +.344 + ++ +Mike Cameron, SEA +14 +54 +.270 +19.3 +22.2 +35 +76 +.355 + ++ +Tony Batista, BAL +14 +49 +.206 +20.8 +22.1 +16 +68 +.255 + ++ +Fred McGriff, TB +14 +47 +.332 +19.4 +21.7 +31 +48 +.398 + ++ +Brian Daubach, BOS +14 +44 +.285 +15.8 +17.8 +22 +65 +.349 + ++ +Tino Martinez, NYY +14 +57 +.260 +22.0 +23.9 +25 +45 +.315 + ++ +Bernie Williams, NYY +14 +46 +.324 +17.6 +20.5 +35 +28 +.409 + ++25 +Russell Branyan, CLE +13 +37 +.235 +15.7 +17.8 +24 +81 +.318 + ++ +Carlos Lee, SOX +13 +46 +.302 +20.6 +21.6 +13 +38 +.339 + ++ +Jorge Posada, NYY +13 +61 +.310 +18.8 +21.8 +36 +62 +.402 + ++28 +Carlos Beltran, KC +12 +42 +.266 +26.0 +28.3 +22 +70 +.312 + ++ +Ruben Sierra, TEX +12 +34 +.315 +10.8 +11.3 +2 +22 +.319 + ++ +Garret Anderson, ANA +12 +53 +.273 +28.1 +29.5 +13 +47 +.297 + ++ +Robert Fick, DET +12 +32 +.304 +15.3 +16.6 +14 +30 +.355 + ++ +Tony Clark, DET +12 +46 +.300 +20.6 +23.7 +33 +76 +.379 + ++ +Torii Hunter, MIN +12 +43 +.247 +21.9 +22.8 +11 +59 +.285 + ++ +Edgar Martinez, SEA +12 +64 +.303 +22.3 +27.8 +62 +49 +.437 + ++ +Trot Nixon, BOS +12 +39 +.263 +20.0 +24.1 +41 +45 +.377 + ++36 +Dean Palmer, DET +11 +40 +.222 +19.6 +22.1 +27 +59 +.317 + ++ +Jermaine Dye, KC +11 +38 +.283 +27.3 +30.0 +26 +57 +.343 + ++ +Doug Mientkiewicz, MIN +11 +50 +.312 +25.9 +28.7 +29 +50 +.383 + ++ +Corey Koskie, MIN +11 +50 +.262 +25.0 +28.6 +36 +50 +.355 + ++ +Eric Chavez, OAK +11 +43 +.247 +26.1 +28.2 +21 +64 +.306 + + July 3, 2001, at 12:36 PM ET +