From: Michael Orlitzky Date: Sun, 22 Jun 2014 19:30:50 +0000 (-0400) Subject: Add SportInfo support for MLB_Pitching_WL_Leaders.dtd. X-Git-Tag: 0.0.6~126 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=adb901a81d69d4abf19bc52a1b39a8a1868be368;p=dead%2Fhtsn-import.git Add SportInfo support for MLB_Pitching_WL_Leaders.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index cf8e0d7..433ecf0 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -266,6 +266,8 @@ MLB_Pitching_WHIP_Leaders.dtd MLB_Pitching_Wild_Pitches_Leaders.dtd .IP \[bu] MLB_Pitching_Win_Percentage_Leaders.dtd +.IP \[bu] +MLB_Pitching_WL_Leaders.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLB_Pitching_WL_Leaders.dtd b/schema/MLB_Pitching_WL_Leaders.dtd new file mode 100644 index 0000000..32279e6 --- /dev/null +++ b/schema/MLB_Pitching_WL_Leaders.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLB_Pitching_WL_Leaders/MLB_Pitching_WL_Leaders.xml b/schemagen/MLB_Pitching_WL_Leaders/MLB_Pitching_WL_Leaders.xml new file mode 100644 index 0000000..12d1ed9 --- /dev/null +++ b/schemagen/MLB_Pitching_WL_Leaders/MLB_Pitching_WL_Leaders.xml @@ -0,0 +1,452 @@ + + + +296217 +AAX%AL-LOSSES-LEADERS +Statistics +MLB +2002 AL Losses Leaders + ++1 +Chuck Finley, CLE +4 +9 +0.308 +3.84 +89.0 +92 +80 + ++ +Todd Ritchie, SOX +4 +9 +0.308 +5.11 +93.1 +112 +53 + ++ +Ryan Rupe, TB +5 +9 +0.357 +5.54 +87.2 +79 +67 + ++4 +Tanyon Sturtze, TB +0 +8 +0.000 +5.09 +97.1 +124 +60 + ++ +Jeff Weaver, DET +5 +8 +0.385 +3.32 +114.0 +105 +71 + ++ +Danny Wright, SOX +5 +8 +0.385 +5.48 +92.0 +97 +53 + ++7 +Luke Prokopec, TOR +2 +7 +0.222 +5.86 +63.0 +77 +37 + ++ +Mark Redman, DET +3 +7 +0.300 +3.66 +105.2 +108 +53 + ++ +Steve Sparks, DET +3 +7 +0.300 +5.94 +86.1 +118 +36 + ++ +Frank Castillo, BOS +5 +7 +0.417 +4.55 +83.0 +72 +52 + ++11 +Paul Wilson, TB +2 +6 +0.250 +4.06 +95.1 +101 +55 + ++ +Cory Lidle, OAK +2 +6 +0.250 +5.57 +74.1 +104 +48 + ++ +Matt Kinney, MIN +2 +6 +0.250 +4.35 +60.0 +67 +42 + ++ +Scott Erickson, BAL +3 +6 +0.333 +4.76 +96.1 +105 +40 + ++ +Hideki Irabu, TEX +3 +6 +0.333 +5.71 +41.0 +43 +26 + ++ +Ismael Valdes, TEX +4 +6 +0.400 +3.86 +86.1 +83 +40 + ++ +Joe Kennedy, TB +5 +6 +0.455 +4.26 +101.1 +103 +64 + ++ +James Baldwin, SEA +5 +6 +0.455 +4.93 +84.0 +92 +50 + ++ +Jeff Suppan, KC +5 +6 +0.455 +4.66 +100.1 +100 +54 + ++ +Tim Hudson, OAK +5 +6 +0.455 +3.73 +108.2 +108 +78 + ++ +C.C. Sabathia, CLE +5 +6 +0.455 +5.00 +90.0 +89 +65 + ++ +Kevin Appier, ANA +6 +6 +0.500 +4.26 +82.1 +97 +57 + ++23 +Calvin Maduro, BAL +2 +5 +0.286 +5.56 +56.2 +64 +29 + ++ +Dan Reichert, KC +2 +5 +0.286 +5.16 +61.0 +73 +35 + ++ +Jason Johnson, BAL +2 +5 +0.286 +4.27 +46.1 +46 +34 + ++ +Ted Lilly, NYY +3 +5 +0.375 +2.97 +72.2 +50 +57 + ++ +Doug Davis, TEX +3 +5 +0.375 +4.98 +59.2 +67 +28 + ++ +Darren Oliver, BOS +4 +5 +0.444 +4.66 +58.0 +70 +32 + ++ +Danys Baez, CLE +5 +5 +0.500 +4.22 +81.0 +74 +68 + ++ +Scott Schoeneweis, ANA +6 +5 +0.545 +4.83 +85.2 +92 +42 + ++ +Jon Garland, SOX +6 +5 +0.545 +4.42 +91.2 +93 +46 + ++ +Kyle Lohse, MIN +6 +5 +0.545 +5.40 +81.2 +96 +50 + ++ +Aaron Sele, ANA +6 +5 +0.545 +5.54 +89.1 +119 +42 + ++ +David Wells, NYY +7 +5 +0.583 +3.61 +99.2 +95 +67 + ++ +Ryan Drese, CLE +7 +5 +0.583 +5.49 +80.1 +94 +63 + ++ +Eric Milton, MIN +8 +5 +0.615 +5.27 +94.0 +100 +57 + ++ +Ramon Ortiz, ANA +8 +5 +0.615 +3.34 +102.1 +80 +79 + ++ +Paul Byrd, KC +9 +5 +0.643 +4.25 +97.1 +95 +57 + ++ +Mark Buehrle, SOX +10 +5 +0.667 +2.86 +110.0 +96 +65 + ++ +Freddy Garcia, SEA +10 +5 +0.667 +3.73 +113.1 +98 +96 + + + June 25, 2002, at 10:42 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index ddfc358..9fa4725 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -151,7 +151,7 @@ dtds = "MLB_Pitching_WHIP_Leaders.dtd", "MLB_Pitching_Wild_Pitches_Leaders.dtd", "MLB_Pitching_Win_Percentage_Leaders.dtd", - "MLB_Pitching_WL_Leaders.dtd", -- no dtd + "MLB_Pitching_WL_Leaders.dtd", "NBA_Team_Stats_XML.dtd", -- no dtd "NBA3PPctXML.dtd", -- no dtd "NBAAssistsXML.dtd", -- no dtd @@ -394,7 +394,8 @@ sport_info_test_files = "MLB_Pitching_Walks_Leaders.xml", "MLB_Pitching_WHIP_Leaders.xml", "MLB_Pitching_Wild_Pitches_Leaders.xml", - "MLB_Pitching_Win_Percentage_Leaders.xml" + "MLB_Pitching_Win_Percentage_Leaders.xml", + "MLB_Pitching_WL_Leaders.xml" ] diff --git a/test/xml/sportinfo/MLB_Pitching_WL_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_WL_Leaders.dtd new file mode 100644 index 0000000..32279e6 --- /dev/null +++ b/test/xml/sportinfo/MLB_Pitching_WL_Leaders.dtd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLB_Pitching_WL_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_WL_Leaders.xml new file mode 100644 index 0000000..12d1ed9 --- /dev/null +++ b/test/xml/sportinfo/MLB_Pitching_WL_Leaders.xml @@ -0,0 +1,452 @@ + + + +296217 +AAX%AL-LOSSES-LEADERS +Statistics +MLB +2002 AL Losses Leaders + ++1 +Chuck Finley, CLE +4 +9 +0.308 +3.84 +89.0 +92 +80 + ++ +Todd Ritchie, SOX +4 +9 +0.308 +5.11 +93.1 +112 +53 + ++ +Ryan Rupe, TB +5 +9 +0.357 +5.54 +87.2 +79 +67 + ++4 +Tanyon Sturtze, TB +0 +8 +0.000 +5.09 +97.1 +124 +60 + ++ +Jeff Weaver, DET +5 +8 +0.385 +3.32 +114.0 +105 +71 + ++ +Danny Wright, SOX +5 +8 +0.385 +5.48 +92.0 +97 +53 + ++7 +Luke Prokopec, TOR +2 +7 +0.222 +5.86 +63.0 +77 +37 + ++ +Mark Redman, DET +3 +7 +0.300 +3.66 +105.2 +108 +53 + ++ +Steve Sparks, DET +3 +7 +0.300 +5.94 +86.1 +118 +36 + ++ +Frank Castillo, BOS +5 +7 +0.417 +4.55 +83.0 +72 +52 + ++11 +Paul Wilson, TB +2 +6 +0.250 +4.06 +95.1 +101 +55 + ++ +Cory Lidle, OAK +2 +6 +0.250 +5.57 +74.1 +104 +48 + ++ +Matt Kinney, MIN +2 +6 +0.250 +4.35 +60.0 +67 +42 + ++ +Scott Erickson, BAL +3 +6 +0.333 +4.76 +96.1 +105 +40 + ++ +Hideki Irabu, TEX +3 +6 +0.333 +5.71 +41.0 +43 +26 + ++ +Ismael Valdes, TEX +4 +6 +0.400 +3.86 +86.1 +83 +40 + ++ +Joe Kennedy, TB +5 +6 +0.455 +4.26 +101.1 +103 +64 + ++ +James Baldwin, SEA +5 +6 +0.455 +4.93 +84.0 +92 +50 + ++ +Jeff Suppan, KC +5 +6 +0.455 +4.66 +100.1 +100 +54 + ++ +Tim Hudson, OAK +5 +6 +0.455 +3.73 +108.2 +108 +78 + ++ +C.C. Sabathia, CLE +5 +6 +0.455 +5.00 +90.0 +89 +65 + ++ +Kevin Appier, ANA +6 +6 +0.500 +4.26 +82.1 +97 +57 + ++23 +Calvin Maduro, BAL +2 +5 +0.286 +5.56 +56.2 +64 +29 + ++ +Dan Reichert, KC +2 +5 +0.286 +5.16 +61.0 +73 +35 + ++ +Jason Johnson, BAL +2 +5 +0.286 +4.27 +46.1 +46 +34 + ++ +Ted Lilly, NYY +3 +5 +0.375 +2.97 +72.2 +50 +57 + ++ +Doug Davis, TEX +3 +5 +0.375 +4.98 +59.2 +67 +28 + ++ +Darren Oliver, BOS +4 +5 +0.444 +4.66 +58.0 +70 +32 + ++ +Danys Baez, CLE +5 +5 +0.500 +4.22 +81.0 +74 +68 + ++ +Scott Schoeneweis, ANA +6 +5 +0.545 +4.83 +85.2 +92 +42 + ++ +Jon Garland, SOX +6 +5 +0.545 +4.42 +91.2 +93 +46 + ++ +Kyle Lohse, MIN +6 +5 +0.545 +5.40 +81.2 +96 +50 + ++ +Aaron Sele, ANA +6 +5 +0.545 +5.54 +89.1 +119 +42 + ++ +David Wells, NYY +7 +5 +0.583 +3.61 +99.2 +95 +67 + ++ +Ryan Drese, CLE +7 +5 +0.583 +5.49 +80.1 +94 +63 + ++ +Eric Milton, MIN +8 +5 +0.615 +5.27 +94.0 +100 +57 + ++ +Ramon Ortiz, ANA +8 +5 +0.615 +3.34 +102.1 +80 +79 + ++ +Paul Byrd, KC +9 +5 +0.643 +4.25 +97.1 +95 +57 + ++ +Mark Buehrle, SOX +10 +5 +0.667 +2.86 +110.0 +96 +65 + ++ +Freddy Garcia, SEA +10 +5 +0.667 +3.73 +113.1 +98 +96 + + + June 25, 2002, at 10:42 AM ET +