From: Michael Orlitzky Date: Wed, 18 Jun 2014 14:32:21 +0000 (-0400) Subject: Add SportInfo support for mlbrunsleadersxml.dtd. X-Git-Tag: 0.0.6~157 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8b5fd854c3d6a22e2977eac78d5ae2e756d8a223;p=dead%2Fhtsn-import.git Add SportInfo support for mlbrunsleadersxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 902324c..963c9bd 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -204,6 +204,8 @@ MLBOPSXML.dtd MLBPlateAppsXML.dtd .IP \[bu] mlbrbisxml.dtd +.IP \[bu] +mlbrunsleadersxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbrunsleadersxml.dtd b/schema/mlbrunsleadersxml.dtd new file mode 100644 index 0000000..a80b5d2 --- /dev/null +++ b/schema/mlbrunsleadersxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbrunsleadersxml/mlbrunsleadersxml.xml b/schemagen/mlbrunsleadersxml/mlbrunsleadersxml.xml new file mode 100644 index 0000000..337f4a6 --- /dev/null +++ b/schemagen/mlbrunsleadersxml/mlbrunsleadersxml.xml @@ -0,0 +1,410 @@ + + + +1002817 +AAX%AL-RUNS-LEADERS +Statistics +MLB +2001 AL Runs Leaders ++1 +Ichiro Suzuki, SEA +71 +.349 +4 +38 +.378 +.465 + ++2 +Alex Rodriguez, TEX +70 +.315 +23 +67 +.401 +.599 + ++3 +Mike Sweeney, KC +68 +.335 +21 +63 +.395 +.646 + ++4 +Bret Boone, SEA +60 +.326 +21 +80 +.362 +.589 + ++5 +Shannon Stewart, TOR +58 +.323 +6 +35 +.385 +.481 + ++6 +Juan Gonzalez, CLE +57 +.341 +21 +74 +.378 +.615 + ++ +Raul Mondesi, TOR +57 +.283 +16 +47 +.375 +.517 + ++8 +Mike Cameron, SEA +56 +.270 +14 +54 +.355 +.522 + ++ +Matt Lawton, MIN +56 +.299 +6 +40 +.410 +.423 + ++ +Cristian Guzman, MIN +56 +.306 +7 +31 +.344 +.500 + ++11 +Manny Ramirez, BOS +55 +.331 +25 +82 +.429 +.649 + ++12 +Roberto Alomar, CLE +54 +.354 +8 +50 +.426 +.536 + ++13 +Ellis Burks, CLE +53 +.295 +20 +53 +.371 +.602 + ++ +Bernie Williams, NYY +53 +.324 +14 +46 +.409 +.551 + ++15 +Derek Jeter, NYY +52 +.288 +6 +38 +.367 +.402 + ++ +John Olerud, SEA +52 +.317 +10 +55 +.427 +.484 + ++17 +Miguel Tejada, OAK +51 +.268 +16 +50 +.324 +.473 + ++18 +Greg Vaughn, TB +50 +.247 +20 +56 +.332 +.502 + ++ +Johnny Damon, OAK +50 +.229 +5 +32 +.292 +.328 + ++20 +Carlos Delgado, TOR +49 +.250 +22 +54 +.393 +.517 + ++21 +Paul Konerko, SOX +48 +.277 +16 +46 +.353 +.507 + ++ +Magglio Ordonez, SOX +48 +.304 +19 +54 +.386 +.556 + ++ +Troy Glaus, ANA +48 +.250 +21 +52 +.362 +.534 + ++ +Corey Koskie, MIN +48 +.262 +11 +50 +.355 +.447 + ++ +Edgar Martinez, SEA +48 +.303 +12 +64 +.437 +.532 + ++ +Tino Martinez, NYY +48 +.260 +14 +57 +.315 +.451 + ++27 +Carlos Beltran, KC +47 +.266 +12 +42 +.312 +.439 + ++ +Jim Thome, CLE +47 +.276 +22 +53 +.397 +.604 + ++ +Ray Durham, SOX +47 +.247 +10 +30 +.320 +.432 + ++ +Darin Erstad, ANA +47 +.283 +5 +38 +.349 +.394 + ++31 +Frank Menechino, OAK +46 +.283 +10 +41 +.392 +.473 + ++ +Omar Vizquel, CLE +46 +.262 +1 +20 +.341 +.318 + ++ +Jason Giambi, OAK +46 +.337 +19 +60 +.481 +.652 + ++ +Carl Everett, BOS +46 +.284 +9 +42 +.344 +.472 + ++ +Trot Nixon, BOS +46 +.263 +12 +39 +.377 +.475 + ++36 +Jose Offerman, BOS +44 +.270 +4 +21 +.343 +.381 + ++ +Jermaine Dye, KC +44 +.283 +11 +38 +.343 +.433 + ++ +Tony Clark, DET +44 +.300 +12 +46 +.379 +.518 + ++ +Paul O`Neill, NYY +44 +.260 +11 +41 +.325 +.433 + ++40 +Rafael Palmeiro, TEX +43 +.262 +21 +60 +.371 +.534 + + July 3, 2001, at 12:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index ff391a9..94093b1 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -119,7 +119,7 @@ dtds = "MLBOPSXML.dtd", "MLBPlateAppsXML.dtd", "mlbrbisxml.dtd", - "mlbrunsleadersxml.dtd", -- no dtd + "mlbrunsleadersxml.dtd", "MLBSacFliesXML.dtd", -- no dtd "MLBSacrificesXML.dtd", -- no dtd "MLBSBSuccessXML.dtd", -- no dtd @@ -363,7 +363,8 @@ sport_info_test_files = "mlbonbasepctxml.xml", "MLBOPSXML.xml", "MLBPlateAppsXML.xml", - "mlbrbisxml.xml" + "mlbrbisxml.xml", + "mlbrunsleadersxml.xml" ] diff --git a/test/xml/sportinfo/mlbrunsleadersxml.dtd b/test/xml/sportinfo/mlbrunsleadersxml.dtd new file mode 100644 index 0000000..a80b5d2 --- /dev/null +++ b/test/xml/sportinfo/mlbrunsleadersxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbrunsleadersxml.xml b/test/xml/sportinfo/mlbrunsleadersxml.xml new file mode 100644 index 0000000..337f4a6 --- /dev/null +++ b/test/xml/sportinfo/mlbrunsleadersxml.xml @@ -0,0 +1,410 @@ + + + +1002817 +AAX%AL-RUNS-LEADERS +Statistics +MLB +2001 AL Runs Leaders ++1 +Ichiro Suzuki, SEA +71 +.349 +4 +38 +.378 +.465 + ++2 +Alex Rodriguez, TEX +70 +.315 +23 +67 +.401 +.599 + ++3 +Mike Sweeney, KC +68 +.335 +21 +63 +.395 +.646 + ++4 +Bret Boone, SEA +60 +.326 +21 +80 +.362 +.589 + ++5 +Shannon Stewart, TOR +58 +.323 +6 +35 +.385 +.481 + ++6 +Juan Gonzalez, CLE +57 +.341 +21 +74 +.378 +.615 + ++ +Raul Mondesi, TOR +57 +.283 +16 +47 +.375 +.517 + ++8 +Mike Cameron, SEA +56 +.270 +14 +54 +.355 +.522 + ++ +Matt Lawton, MIN +56 +.299 +6 +40 +.410 +.423 + ++ +Cristian Guzman, MIN +56 +.306 +7 +31 +.344 +.500 + ++11 +Manny Ramirez, BOS +55 +.331 +25 +82 +.429 +.649 + ++12 +Roberto Alomar, CLE +54 +.354 +8 +50 +.426 +.536 + ++13 +Ellis Burks, CLE +53 +.295 +20 +53 +.371 +.602 + ++ +Bernie Williams, NYY +53 +.324 +14 +46 +.409 +.551 + ++15 +Derek Jeter, NYY +52 +.288 +6 +38 +.367 +.402 + ++ +John Olerud, SEA +52 +.317 +10 +55 +.427 +.484 + ++17 +Miguel Tejada, OAK +51 +.268 +16 +50 +.324 +.473 + ++18 +Greg Vaughn, TB +50 +.247 +20 +56 +.332 +.502 + ++ +Johnny Damon, OAK +50 +.229 +5 +32 +.292 +.328 + ++20 +Carlos Delgado, TOR +49 +.250 +22 +54 +.393 +.517 + ++21 +Paul Konerko, SOX +48 +.277 +16 +46 +.353 +.507 + ++ +Magglio Ordonez, SOX +48 +.304 +19 +54 +.386 +.556 + ++ +Troy Glaus, ANA +48 +.250 +21 +52 +.362 +.534 + ++ +Corey Koskie, MIN +48 +.262 +11 +50 +.355 +.447 + ++ +Edgar Martinez, SEA +48 +.303 +12 +64 +.437 +.532 + ++ +Tino Martinez, NYY +48 +.260 +14 +57 +.315 +.451 + ++27 +Carlos Beltran, KC +47 +.266 +12 +42 +.312 +.439 + ++ +Jim Thome, CLE +47 +.276 +22 +53 +.397 +.604 + ++ +Ray Durham, SOX +47 +.247 +10 +30 +.320 +.432 + ++ +Darin Erstad, ANA +47 +.283 +5 +38 +.349 +.394 + ++31 +Frank Menechino, OAK +46 +.283 +10 +41 +.392 +.473 + ++ +Omar Vizquel, CLE +46 +.262 +1 +20 +.341 +.318 + ++ +Jason Giambi, OAK +46 +.337 +19 +60 +.481 +.652 + ++ +Carl Everett, BOS +46 +.284 +9 +42 +.344 +.472 + ++ +Trot Nixon, BOS +46 +.263 +12 +39 +.377 +.475 + ++36 +Jose Offerman, BOS +44 +.270 +4 +21 +.343 +.381 + ++ +Jermaine Dye, KC +44 +.283 +11 +38 +.343 +.433 + ++ +Tony Clark, DET +44 +.300 +12 +46 +.379 +.518 + ++ +Paul O`Neill, NYY +44 +.260 +11 +41 +.325 +.433 + ++40 +Rafael Palmeiro, TEX +43 +.262 +21 +60 +.371 +.534 + + July 3, 2001, at 12:37 PM ET +