From: Michael Orlitzky Date: Tue, 17 Jun 2014 14:28:07 +0000 (-0400) Subject: Add SportInfo support for MLBKORateXML.dtd. X-Git-Tag: 0.0.6~162 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c55ee03fa85119a8e898f0603a198cea12e69f7c;p=dead%2Fhtsn-import.git Add SportInfo support for MLBKORateXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index bbee9d7..1e76185 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -194,6 +194,8 @@ mlbhomerunsxml.dtd MLBHRFreqXML.dtd .IP \[bu] MLBIntWalksXML.dtd +.IP \[bu] +MLBKORateXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBKORateXML.dtd b/schema/MLBKORateXML.dtd new file mode 100644 index 0000000..a7146dd --- /dev/null +++ b/schema/MLBKORateXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBKORateXML/MLBKORateXML.xml b/schemagen/MLBKORateXML/MLBKORateXML.xml new file mode 100644 index 0000000..7f52fe2 --- /dev/null +++ b/schemagen/MLBKORateXML/MLBKORateXML.xml @@ -0,0 +1,450 @@ + + + +9173817 +AAX%AL-STRIKEOUTRATE-LEADERS +Statistics +MLB +2002 AL StrikeOut Rate Leaders ++1 +Randall Simon, DET +20.2 +13 +254 +5 +2 +2 +0 + ++ +Matt Lawton, CLE +19.5 +16 +266 +41 +4 +0 +1 + ++3 +David Eckstein, ANA +17.9 +17 +262 +25 +9 +3 +6 + ++4 +Bobby Higginson, DET +15.7 +15 +208 +23 +1 +4 +0 + ++5 +Ben Molina, ANA +15.0 +17 +242 +7 +2 +4 +0 + ++ +Shannon Stewart, TOR +14.9 +18 +244 +19 +4 +1 +0 + ++7 +Ichiro Suzuki, SEA +14.1 +25 +307 +37 +2 +4 +2 + ++8 +Johnny Damon, BOS +13.0 +25 +292 +27 +2 +4 +1 + ++ +Mike Sweeney, KC +12.8 +24 +272 +30 +2 +4 +0 + ++ +Nomar Garciaparra, BOS +12.6 +25 +288 +20 +2 +6 +0 + ++11 +Omar Vizquel, CLE +12.4 +26 +275 +36 +4 +7 +1 + ++ +Darin Erstad, ANA +12.3 +25 +289 +14 +1 +2 +1 + ++13 +Brent Abernathy, TB +10.2 +29 +277 +16 +1 +0 +3 + ++ +Neifi Perez, KC +9.8 +32 +300 +8 +0 +4 +3 + ++ +Jeff Cirillo, SEA +9.8 +29 +248 +16 +7 +6 +8 + ++ +Scott Hatteberg, OAK +9.8 +28 +236 +34 +4 +0 +0 + ++17 +Doug Mientkiewicz, MIN +9.5 +31 +235 +51 +5 +3 +0 + ++ +Miguel Tejada, OAK +9.3 +36 +316 +15 +4 +0 +0 + ++ +Cristian Guzman, MIN +9.1 +36 +311 +6 +2 +4 +4 + ++ +Brad Fullmer, ANA +9.0 +27 +220 +17 +5 +1 +0 + ++ +John Olerud, SEA +8.8 +37 +267 +51 +1 +6 +0 + ++ +Paul Konerko, SOX +8.8 +36 +290 +21 +2 +3 +0 + ++23 +Scott Spiezio, ANA +8.4 +30 +212 +34 +1 +4 +1 + ++ +Joe Randa, KC +8.2 +33 +234 +24 +4 +8 +2 + ++ +Chris Gomez, TB +8.0 +32 +235 +13 +4 +2 +2 + ++ +Ricky Gutierrez, CLE +7.9 +31 +226 +10 +5 +0 +3 + ++ +Adam Kennedy, ANA +7.9 +31 +223 +10 +5 +2 +4 + ++ +Carlos Lee, SOX +7.8 +34 +237 +24 +0 +5 +0 + ++ +Kenny Lofton, SOX +7.7 +39 +261 +37 +0 +1 +3 + ++ +Rafael Palmeiro, TEX +7.6 +39 +251 +41 +2 +4 +0 + ++31 +Randy Winn, TB +7.3 +44 +295 +19 +4 +2 +1 + ++ +Magglio Ordonez, SOX +7.2 +43 +281 +27 +0 +1 +0 + ++ +Garret Anderson, ANA +7.1 +46 +310 +13 +0 +5 +0 + ++ +Robert Fick, DET +7.1 +42 +269 +25 +3 +2 +0 + ++ +Vernon Wells, TOR +7.0 +40 +260 +16 +1 +2 +2 + ++ +Jay Gibbons, BAL +7.0 +38 +235 +29 +0 +2 +0 + ++ +Tony Batista, BAL +6.9 +45 +276 +24 +6 +4 +0 + ++ +Mike Bordick, BAL +6.8 +35 +209 +23 +1 +1 +5 + ++ +Carlos Febles, KC +6.8 +36 +209 +28 +4 +0 +4 + ++ +Bret Boone, SEA +6.8 +47 +285 +28 +2 +3 +1 + + June 27, 2002, at 11:52 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 695b0f3..6a36123 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -114,7 +114,7 @@ dtds = "mlbhomerunsxml.dtd", "MLBHRFreqXML.dtd", "MLBIntWalksXML.dtd", - "MLBKORateXML.dtd", -- no dtd + "MLBKORateXML.dtd", "mlbonbasepctxml.dtd", -- no dtd "MLBOPSXML.dtd", -- no dtd "MLBPlateAppsXML.dtd", -- no dtd @@ -358,7 +358,8 @@ sport_info_test_files = "mlbhitsleadersxml.xml", "mlbhomerunsxml.xml", "MLBHRFreqXML.xml", - "MLBIntWalksXML.xml" + "MLBIntWalksXML.xml", + "MLBKORateXML.xml" ] diff --git a/test/xml/sportinfo/MLBKORateXML.dtd b/test/xml/sportinfo/MLBKORateXML.dtd new file mode 100644 index 0000000..a7146dd --- /dev/null +++ b/test/xml/sportinfo/MLBKORateXML.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBKORateXML.xml b/test/xml/sportinfo/MLBKORateXML.xml new file mode 100644 index 0000000..7f52fe2 --- /dev/null +++ b/test/xml/sportinfo/MLBKORateXML.xml @@ -0,0 +1,450 @@ + + + +9173817 +AAX%AL-STRIKEOUTRATE-LEADERS +Statistics +MLB +2002 AL StrikeOut Rate Leaders ++1 +Randall Simon, DET +20.2 +13 +254 +5 +2 +2 +0 + ++ +Matt Lawton, CLE +19.5 +16 +266 +41 +4 +0 +1 + ++3 +David Eckstein, ANA +17.9 +17 +262 +25 +9 +3 +6 + ++4 +Bobby Higginson, DET +15.7 +15 +208 +23 +1 +4 +0 + ++5 +Ben Molina, ANA +15.0 +17 +242 +7 +2 +4 +0 + ++ +Shannon Stewart, TOR +14.9 +18 +244 +19 +4 +1 +0 + ++7 +Ichiro Suzuki, SEA +14.1 +25 +307 +37 +2 +4 +2 + ++8 +Johnny Damon, BOS +13.0 +25 +292 +27 +2 +4 +1 + ++ +Mike Sweeney, KC +12.8 +24 +272 +30 +2 +4 +0 + ++ +Nomar Garciaparra, BOS +12.6 +25 +288 +20 +2 +6 +0 + ++11 +Omar Vizquel, CLE +12.4 +26 +275 +36 +4 +7 +1 + ++ +Darin Erstad, ANA +12.3 +25 +289 +14 +1 +2 +1 + ++13 +Brent Abernathy, TB +10.2 +29 +277 +16 +1 +0 +3 + ++ +Neifi Perez, KC +9.8 +32 +300 +8 +0 +4 +3 + ++ +Jeff Cirillo, SEA +9.8 +29 +248 +16 +7 +6 +8 + ++ +Scott Hatteberg, OAK +9.8 +28 +236 +34 +4 +0 +0 + ++17 +Doug Mientkiewicz, MIN +9.5 +31 +235 +51 +5 +3 +0 + ++ +Miguel Tejada, OAK +9.3 +36 +316 +15 +4 +0 +0 + ++ +Cristian Guzman, MIN +9.1 +36 +311 +6 +2 +4 +4 + ++ +Brad Fullmer, ANA +9.0 +27 +220 +17 +5 +1 +0 + ++ +John Olerud, SEA +8.8 +37 +267 +51 +1 +6 +0 + ++ +Paul Konerko, SOX +8.8 +36 +290 +21 +2 +3 +0 + ++23 +Scott Spiezio, ANA +8.4 +30 +212 +34 +1 +4 +1 + ++ +Joe Randa, KC +8.2 +33 +234 +24 +4 +8 +2 + ++ +Chris Gomez, TB +8.0 +32 +235 +13 +4 +2 +2 + ++ +Ricky Gutierrez, CLE +7.9 +31 +226 +10 +5 +0 +3 + ++ +Adam Kennedy, ANA +7.9 +31 +223 +10 +5 +2 +4 + ++ +Carlos Lee, SOX +7.8 +34 +237 +24 +0 +5 +0 + ++ +Kenny Lofton, SOX +7.7 +39 +261 +37 +0 +1 +3 + ++ +Rafael Palmeiro, TEX +7.6 +39 +251 +41 +2 +4 +0 + ++31 +Randy Winn, TB +7.3 +44 +295 +19 +4 +2 +1 + ++ +Magglio Ordonez, SOX +7.2 +43 +281 +27 +0 +1 +0 + ++ +Garret Anderson, ANA +7.1 +46 +310 +13 +0 +5 +0 + ++ +Robert Fick, DET +7.1 +42 +269 +25 +3 +2 +0 + ++ +Vernon Wells, TOR +7.0 +40 +260 +16 +1 +2 +2 + ++ +Jay Gibbons, BAL +7.0 +38 +235 +29 +0 +2 +0 + ++ +Tony Batista, BAL +6.9 +45 +276 +24 +6 +4 +0 + ++ +Mike Bordick, BAL +6.8 +35 +209 +23 +1 +1 +5 + ++ +Carlos Febles, KC +6.8 +36 +209 +28 +4 +0 +4 + ++ +Bret Boone, SEA +6.8 +47 +285 +28 +2 +3 +1 + + June 27, 2002, at 11:52 AM ET +