From: Michael Orlitzky Date: Wed, 18 Jun 2014 14:54:09 +0000 (-0400) Subject: Add SportInfo support for MLBSBSuccessXML.dtd. X-Git-Tag: 0.0.6~154 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=90f5d21c6234ee96541ec9633deeb21ec9f173d6;p=dead%2Fhtsn-import.git Add SportInfo support for MLBSBSuccessXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 76fb54e..5682a0e 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -210,6 +210,8 @@ mlbrunsleadersxml.dtd MLBSacFliesXML.dtd .IP \[bu] MLBSacrificesXML.dtd +.IP \[bu] +MLBSBSuccessXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBSBSuccessXML.dtd b/schema/MLBSBSuccessXML.dtd new file mode 100644 index 0000000..5db045d --- /dev/null +++ b/schema/MLBSBSuccessXML.dtd @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBSBSuccessXML/MLBSBSuccessXML.xml b/schemagen/MLBSBSuccessXML/MLBSBSuccessXML.xml new file mode 100644 index 0000000..21e1623 --- /dev/null +++ b/schemagen/MLBSBSuccessXML/MLBSBSuccessXML.xml @@ -0,0 +1,290 @@ + + + +1785611 +AAX%AL-SBSUCCESS-LEADERS +Statistics +MLB +2002 AL Stolen Base Success Leaders ++1 +Chuck Knoblauch, KC +1.0% +12 +0 + ++ +Derek Jeter, NYY +.9% +17 +1 + ++ +Mike Cameron, SEA +.9% +11 +1 + ++ +Brad Fullmer, ANA +.9% +7 +1 + ++ +Jason Tyner, TB +.9% +7 +1 + ++ +Carlos Beltran, KC +.9% +19 +3 + ++ +Darin Erstad, ANA +.9% +12 +2 + ++ +Ray Durham, SOX +.8% +17 +3 + ++ +Jerry Hairston, BAL +.8% +9 +2 + ++ +Raul Mondesi, TOR +.8% +9 +2 + ++ +Johnny Damon, BOS +.8% +17 +4 + ++ +Alfonso Soriano, NYY +.8% +21 +5 + ++ +Carlos Febles, KC +.8% +12 +3 + ++ +Chris Singleton, BAL +.8% +8 +2 + ++ +Randy Winn, TB +.8% +15 +4 + ++ +Michael Tucker, KC +.8% +11 +3 + ++ +Kenny Lofton, SOX +.8% +21 +6 + ++ +Bobby Higginson, DET +.8% +7 +2 + ++ +Brian Roberts, BAL +.8% +7 +2 + ++ +Frank Catalanotto, TEX +.8% +6 +2 + ++ +Garret Anderson, ANA +.8% +6 +2 + ++ +Torii Hunter, MIN +.7% +11 +4 + ++ +Ichiro Suzuki, SEA +.7% +19 +8 + ++ +Jeff Cirillo, SEA +.7% +7 +3 + ++ +Adam Kennedy, ANA +.7% +7 +3 + ++ +Mark McLemore, SEA +.7% +12 +6 + ++ +Melvin Mora, BAL +.7% +12 +6 + ++ +Jose Offerman, BOS +.7% +6 +3 + ++ +Magglio Ordonez, SOX +.7% +6 +3 + ++ +Michael Young, TEX +.7% +6 +3 + ++ +David Eckstein, ANA +.7% +13 +7 + ++ +Gary Matthews Jr, BAL +.6% +7 +4 + ++ +Alex Rodriguez, TEX +.6% +5 +3 + ++ +Desi Relaford, SEA +.6% +5 +3 + ++ +Tim Salmon, ANA +.6% +5 +3 + ++ +Bret Boone, SEA +.6% +6 +4 + ++ +Brent Abernathy, TB +.6% +6 +4 + ++ +Jacque Jones, MIN +.6% +5 +4 + ++ +Omar Vizquel, CLE +.6% +11 +9 + ++ +Corey Koskie, MIN +.5% +6 +5 + + June 27, 2002, at 11:52 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 8040d50..4ba23a3 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -122,7 +122,7 @@ dtds = "mlbrunsleadersxml.dtd", "MLBSacFliesXML.dtd", "MLBSacrificesXML.dtd", - "MLBSBSuccessXML.dtd", -- no dtd + "MLBSBSuccessXML.dtd", "mlbsluggingpctxml.dtd", -- no dtd "mlbstandxml.dtd", -- no dtd "mlbstandxml_preseason.dtd", -- no dtd @@ -366,7 +366,8 @@ sport_info_test_files = "mlbrbisxml.xml", "mlbrunsleadersxml.xml", "MLBSacFliesXML.xml", - "MLBSacrificesXML.xml" + "MLBSacrificesXML.xml", + "MLBSBSuccessXML.xml" ] diff --git a/test/xml/sportinfo/MLBSBSuccessXML.dtd b/test/xml/sportinfo/MLBSBSuccessXML.dtd new file mode 100644 index 0000000..5db045d --- /dev/null +++ b/test/xml/sportinfo/MLBSBSuccessXML.dtd @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBSBSuccessXML.xml b/test/xml/sportinfo/MLBSBSuccessXML.xml new file mode 100644 index 0000000..21e1623 --- /dev/null +++ b/test/xml/sportinfo/MLBSBSuccessXML.xml @@ -0,0 +1,290 @@ + + + +1785611 +AAX%AL-SBSUCCESS-LEADERS +Statistics +MLB +2002 AL Stolen Base Success Leaders ++1 +Chuck Knoblauch, KC +1.0% +12 +0 + ++ +Derek Jeter, NYY +.9% +17 +1 + ++ +Mike Cameron, SEA +.9% +11 +1 + ++ +Brad Fullmer, ANA +.9% +7 +1 + ++ +Jason Tyner, TB +.9% +7 +1 + ++ +Carlos Beltran, KC +.9% +19 +3 + ++ +Darin Erstad, ANA +.9% +12 +2 + ++ +Ray Durham, SOX +.8% +17 +3 + ++ +Jerry Hairston, BAL +.8% +9 +2 + ++ +Raul Mondesi, TOR +.8% +9 +2 + ++ +Johnny Damon, BOS +.8% +17 +4 + ++ +Alfonso Soriano, NYY +.8% +21 +5 + ++ +Carlos Febles, KC +.8% +12 +3 + ++ +Chris Singleton, BAL +.8% +8 +2 + ++ +Randy Winn, TB +.8% +15 +4 + ++ +Michael Tucker, KC +.8% +11 +3 + ++ +Kenny Lofton, SOX +.8% +21 +6 + ++ +Bobby Higginson, DET +.8% +7 +2 + ++ +Brian Roberts, BAL +.8% +7 +2 + ++ +Frank Catalanotto, TEX +.8% +6 +2 + ++ +Garret Anderson, ANA +.8% +6 +2 + ++ +Torii Hunter, MIN +.7% +11 +4 + ++ +Ichiro Suzuki, SEA +.7% +19 +8 + ++ +Jeff Cirillo, SEA +.7% +7 +3 + ++ +Adam Kennedy, ANA +.7% +7 +3 + ++ +Mark McLemore, SEA +.7% +12 +6 + ++ +Melvin Mora, BAL +.7% +12 +6 + ++ +Jose Offerman, BOS +.7% +6 +3 + ++ +Magglio Ordonez, SOX +.7% +6 +3 + ++ +Michael Young, TEX +.7% +6 +3 + ++ +David Eckstein, ANA +.7% +13 +7 + ++ +Gary Matthews Jr, BAL +.6% +7 +4 + ++ +Alex Rodriguez, TEX +.6% +5 +3 + ++ +Desi Relaford, SEA +.6% +5 +3 + ++ +Tim Salmon, ANA +.6% +5 +3 + ++ +Bret Boone, SEA +.6% +6 +4 + ++ +Brent Abernathy, TB +.6% +6 +4 + ++ +Jacque Jones, MIN +.6% +5 +4 + ++ +Omar Vizquel, CLE +.6% +11 +9 + ++ +Corey Koskie, MIN +.5% +6 +5 + + June 27, 2002, at 11:52 AM ET +