From cd9db6c347a6cdd1e17227c2c5d8b0f8544c291a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 22 Jun 2014 13:00:53 -0400 Subject: [PATCH] Add SportInfo support for MLB_Pitching_Shut_Outs_Leaders.dtd. --- doc/man1/htsn-import.1 | 2 + schema/MLB_Pitching_Shut_Outs_Leaders.dtd | 34 +++ .../MLB_Pitching_Shut_Outs_Leaders.xml | 202 ++++++++++++++++++ src/TSN/XML/SportInfo.hs | 5 +- .../MLB_Pitching_Shut_Outs_Leaders.dtd | 34 +++ .../MLB_Pitching_Shut_Outs_Leaders.xml | 202 ++++++++++++++++++ 6 files changed, 477 insertions(+), 2 deletions(-) create mode 100644 schema/MLB_Pitching_Shut_Outs_Leaders.dtd create mode 100644 schemagen/MLB_Pitching_Shut_Outs_Leaders/MLB_Pitching_Shut_Outs_Leaders.xml create mode 100644 test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.dtd create mode 100644 test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.xml diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 6e310db..259762a 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -252,6 +252,8 @@ MLB_Pitching_IP_Leaders.dtd MLB_Pitching_Runs_Allowed_Leaders.dtd .IP \[bu] MLB_Pitching_Saves_Leaders.dtd +.IP \[bu] +MLB_Pitching_Shut_Outs_Leaders.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLB_Pitching_Shut_Outs_Leaders.dtd b/schema/MLB_Pitching_Shut_Outs_Leaders.dtd new file mode 100644 index 0000000..c35e32c --- /dev/null +++ b/schema/MLB_Pitching_Shut_Outs_Leaders.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLB_Pitching_Shut_Outs_Leaders/MLB_Pitching_Shut_Outs_Leaders.xml b/schemagen/MLB_Pitching_Shut_Outs_Leaders/MLB_Pitching_Shut_Outs_Leaders.xml new file mode 100644 index 0000000..e5eac97 --- /dev/null +++ b/schemagen/MLB_Pitching_Shut_Outs_Leaders/MLB_Pitching_Shut_Outs_Leaders.xml @@ -0,0 +1,202 @@ + + + +91848417 +AAX%AL-SHUTOUTS-LEADERS +Statistics +MLB +2002 AL ShutOuts Leaders + ++1 +Jeff Weaver, DET +3 +16 +3 +5 +8 +3.32 + ++2 +Bartolo Colon, CLE +2 +16 +4 +10 +4 +2.55 + ++3 +Joe Kennedy, TB +1 +15 +3 +5 +6 +4.26 + ++ +Derek Lowe, BOS +1 +15 +1 +11 +3 +2.16 + ++ +Paul Byrd, KC +1 +15 +1 +9 +5 +4.25 + ++ +Darren Oliver, BOS +1 +9 +1 +4 +5 +4.66 + ++ +Ted Lilly, NYY +1 +10 +2 +3 +5 +2.97 + ++ +Scott Erickson, BAL +1 +16 +1 +3 +6 +4.76 + ++ +Jeff Suppan, KC +1 +16 +1 +5 +6 +4.66 + ++ +Joel Pineiro, SEA +1 +11 +1 +7 +3 +3.04 + ++ +Mark Mulder, OAK +1 +12 +1 +8 +4 +4.21 + ++ +Kenny Rogers, TEX +1 +16 +2 +8 +4 +3.24 + ++ +Jamie Moyer, SEA +1 +16 +2 +7 +3 +3.47 + ++ +David Wells, NYY +1 +15 +1 +7 +5 +3.61 + ++ +Danny Wright, SOX +1 +16 +1 +5 +8 +5.48 + ++ +Doug Davis, TEX +1 +10 +1 +3 +5 +4.98 + ++ +Roy Halladay, TOR +1 +16 +2 +9 +3 +3.19 + ++ +Darrell May, KC +1 +8 +1 +2 +4 +4.78 + ++ +Esteban Loaiza, TOR +1 +8 +1 +3 +4 +4.44 + + + June 25, 2002, at 11:45 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 40fe529..e93922b 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -144,7 +144,7 @@ dtds = "MLB_Pitching_IP_Leaders.dtd", "MLB_Pitching_Runs_Allowed_Leaders.dtd", "MLB_Pitching_Saves_Leaders.dtd", - "MLB_Pitching_Shut_Outs_Leaders.dtd", -- no dtd + "MLB_Pitching_Shut_Outs_Leaders.dtd", "MLB_Pitching_Starts_Leaders.dtd", -- no dtd "MLB_Pitching_Strike_Outs_Leaders.dtd", -- no dtd "MLB_Pitching_Walks_Leaders.dtd", -- no dtd @@ -387,7 +387,8 @@ sport_info_test_files = "MLB_Pitching_HR_Allowed_Leaders.xml", "MLB_Pitching_IP_Leaders.xml", "MLB_Pitching_Runs_Allowed_Leaders.xml", - "MLB_Pitching_Saves_Leaders.xml" + "MLB_Pitching_Saves_Leaders.xml", + "MLB_Pitching_Shut_Outs_Leaders.xml" ] diff --git a/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.dtd new file mode 100644 index 0000000..c35e32c --- /dev/null +++ b/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.xml new file mode 100644 index 0000000..e5eac97 --- /dev/null +++ b/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.xml @@ -0,0 +1,202 @@ + + + +91848417 +AAX%AL-SHUTOUTS-LEADERS +Statistics +MLB +2002 AL ShutOuts Leaders + ++1 +Jeff Weaver, DET +3 +16 +3 +5 +8 +3.32 + ++2 +Bartolo Colon, CLE +2 +16 +4 +10 +4 +2.55 + ++3 +Joe Kennedy, TB +1 +15 +3 +5 +6 +4.26 + ++ +Derek Lowe, BOS +1 +15 +1 +11 +3 +2.16 + ++ +Paul Byrd, KC +1 +15 +1 +9 +5 +4.25 + ++ +Darren Oliver, BOS +1 +9 +1 +4 +5 +4.66 + ++ +Ted Lilly, NYY +1 +10 +2 +3 +5 +2.97 + ++ +Scott Erickson, BAL +1 +16 +1 +3 +6 +4.76 + ++ +Jeff Suppan, KC +1 +16 +1 +5 +6 +4.66 + ++ +Joel Pineiro, SEA +1 +11 +1 +7 +3 +3.04 + ++ +Mark Mulder, OAK +1 +12 +1 +8 +4 +4.21 + ++ +Kenny Rogers, TEX +1 +16 +2 +8 +4 +3.24 + ++ +Jamie Moyer, SEA +1 +16 +2 +7 +3 +3.47 + ++ +David Wells, NYY +1 +15 +1 +7 +5 +3.61 + ++ +Danny Wright, SOX +1 +16 +1 +5 +8 +5.48 + ++ +Doug Davis, TEX +1 +10 +1 +3 +5 +4.98 + ++ +Roy Halladay, TOR +1 +16 +2 +9 +3 +3.19 + ++ +Darrell May, KC +1 +8 +1 +2 +4 +4.78 + ++ +Esteban Loaiza, TOR +1 +8 +1 +3 +4 +4.44 + + + June 25, 2002, at 11:45 AM ET + -- 2.43.2