From: Michael Orlitzky Date: Tue, 17 Jun 2014 14:58:53 +0000 (-0400) Subject: Add SportInfo support for mlbrbisxml.dtd. X-Git-Tag: 0.0.6~158 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d1b7898c3ccf785b3815a05ad097d1fd737d800b;p=dead%2Fhtsn-import.git Add SportInfo support for mlbrbisxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index d0b2aa4..902324c 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -202,6 +202,8 @@ mlbonbasepctxml.dtd MLBOPSXML.dtd .IP \[bu] MLBPlateAppsXML.dtd +.IP \[bu] +mlbrbisxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbrbisxml.dtd b/schema/mlbrbisxml.dtd new file mode 100644 index 0000000..122d5c0 --- /dev/null +++ b/schema/mlbrbisxml.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbrbisxml/mlbrbisxml.xml b/schemagen/mlbrbisxml/mlbrbisxml.xml new file mode 100644 index 0000000..ff25100 --- /dev/null +++ b/schemagen/mlbrbisxml/mlbrbisxml.xml @@ -0,0 +1,450 @@ + + + +2970717 +AAX%AL-RBI-LEADERS +Statistics +MLB +2001 AL Runs Batted In (RBI) Leaders ++1 +Manny Ramirez, BOS +82 +.331 +25 +305 +3.7 +4.3 +.429 + ++2 +Bret Boone, SEA +80 +.326 +21 +316 +4.0 +4.4 +.362 + ++3 +Juan Gonzalez, CLE +74 +.341 +21 +296 +4.0 +4.4 +.378 + ++4 +Alex Rodriguez, TEX +67 +.315 +23 +317 +4.7 +5.4 +.401 + ++5 +Edgar Martinez, SEA +64 +.303 +12 +267 +4.2 +5.2 +.437 + ++6 +Mike Sweeney, KC +63 +.335 +21 +316 +5.0 +5.6 +.395 + ++7 +Jorge Posada, NYY +61 +.310 +13 +245 +4.0 +4.6 +.402 + ++8 +Rafael Palmeiro, TEX +60 +.262 +21 +298 +5.0 +5.9 +.371 + ++ +Jason Giambi, OAK +60 +.337 +19 +267 +4.5 +5.7 +.481 + ++10 +Tino Martinez, NYY +57 +.260 +14 +308 +5.4 +5.9 +.315 + ++11 +Greg Vaughn, TB +56 +.247 +20 +295 +5.3 +6.0 +.332 + ++12 +John Olerud, SEA +55 +.317 +10 +287 +5.2 +6.3 +.427 + ++13 +Magglio Ordonez, SOX +54 +.304 +19 +286 +5.3 +6.0 +.386 + ++ +Mike Cameron, SEA +54 +.270 +14 +270 +5.0 +5.8 +.355 + ++ +Carlos Delgado, TOR +54 +.250 +22 +288 +5.3 +6.5 +.393 + ++16 +Jim Thome, CLE +53 +.276 +22 +250 +4.7 +5.7 +.397 + ++ +Ellis Burks, CLE +53 +.295 +20 +261 +4.9 +5.7 +.371 + ++ +Garret Anderson, ANA +53 +.273 +12 +337 +6.4 +6.7 +.297 + ++19 +Troy Glaus, ANA +52 +.250 +21 +296 +5.7 +6.8 +.362 + ++20 +Roberto Alomar, CLE +50 +.354 +8 +291 +5.8 +6.9 +.426 + ++ +Miguel Tejada, OAK +50 +.268 +16 +317 +6.3 +6.8 +.324 + ++ +Doug Mientkiewicz, MIN +50 +.312 +11 +285 +5.7 +6.3 +.383 + ++ +Corey Koskie, MIN +50 +.262 +11 +275 +5.5 +6.3 +.355 + ++ +Joe Randa, KC +50 +.256 +6 +305 +6.1 +6.6 +.313 + ++25 +Tony Batista, BAL +49 +.206 +14 +291 +5.9 +6.3 +.255 + ++26 +Raul Mondesi, TOR +47 +.283 +16 +315 +6.7 +7.7 +.375 + ++ +Fred McGriff, TB +47 +.332 +14 +271 +5.8 +6.5 +.398 + ++28 +Jeff Conine, BAL +46 +.326 +9 +233 +5.1 +5.7 +.402 + ++ +Carlos Lee, SOX +46 +.302 +13 +268 +5.8 +6.1 +.339 + ++ +Paul Konerko, SOX +46 +.277 +16 +274 +6.0 +6.6 +.353 + ++ +Brad Fullmer, TOR +46 +.265 +9 +294 +6.4 +6.8 +.311 + ++ +Tony Clark, DET +46 +.300 +12 +247 +5.4 +6.2 +.379 + ++ +Bernie Williams, NYY +46 +.324 +14 +247 +5.4 +6.2 +.409 + ++34 +Alex Gonzalez, TOR +45 +.257 +7 +323 +7.2 +7.9 +.300 + ++35 +Brian Daubach, BOS +44 +.285 +14 +221 +5.0 +5.7 +.349 + ++36 +Torii Hunter, MIN +43 +.247 +12 +263 +6.1 +6.4 +.285 + ++ +Terrence Long, OAK +43 +.274 +9 +317 +7.4 +8.1 +.329 + ++ +Eric Chavez, OAK +43 +.247 +11 +287 +6.7 +7.2 +.306 + ++39 +Carlos Beltran, KC +42 +.266 +12 +312 +7.4 +8.1 +.312 + ++ +Carl Everett, BOS +42 +.284 +9 +282 +6.7 +7.2 +.344 + + July 3, 2001, at 12:36 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 9e87a3d..ff391a9 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -118,7 +118,7 @@ dtds = "mlbonbasepctxml.dtd", "MLBOPSXML.dtd", "MLBPlateAppsXML.dtd", - "mlbrbisxml.dtd", -- no dtd + "mlbrbisxml.dtd", "mlbrunsleadersxml.dtd", -- no dtd "MLBSacFliesXML.dtd", -- no dtd "MLBSacrificesXML.dtd", -- no dtd @@ -362,7 +362,8 @@ sport_info_test_files = "MLBKORateXML.xml", "mlbonbasepctxml.xml", "MLBOPSXML.xml", - "MLBPlateAppsXML.xml" + "MLBPlateAppsXML.xml", + "mlbrbisxml.xml" ] diff --git a/test/xml/sportinfo/mlbrbisxml.dtd b/test/xml/sportinfo/mlbrbisxml.dtd new file mode 100644 index 0000000..122d5c0 --- /dev/null +++ b/test/xml/sportinfo/mlbrbisxml.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbrbisxml.xml b/test/xml/sportinfo/mlbrbisxml.xml new file mode 100644 index 0000000..ff25100 --- /dev/null +++ b/test/xml/sportinfo/mlbrbisxml.xml @@ -0,0 +1,450 @@ + + + +2970717 +AAX%AL-RBI-LEADERS +Statistics +MLB +2001 AL Runs Batted In (RBI) Leaders ++1 +Manny Ramirez, BOS +82 +.331 +25 +305 +3.7 +4.3 +.429 + ++2 +Bret Boone, SEA +80 +.326 +21 +316 +4.0 +4.4 +.362 + ++3 +Juan Gonzalez, CLE +74 +.341 +21 +296 +4.0 +4.4 +.378 + ++4 +Alex Rodriguez, TEX +67 +.315 +23 +317 +4.7 +5.4 +.401 + ++5 +Edgar Martinez, SEA +64 +.303 +12 +267 +4.2 +5.2 +.437 + ++6 +Mike Sweeney, KC +63 +.335 +21 +316 +5.0 +5.6 +.395 + ++7 +Jorge Posada, NYY +61 +.310 +13 +245 +4.0 +4.6 +.402 + ++8 +Rafael Palmeiro, TEX +60 +.262 +21 +298 +5.0 +5.9 +.371 + ++ +Jason Giambi, OAK +60 +.337 +19 +267 +4.5 +5.7 +.481 + ++10 +Tino Martinez, NYY +57 +.260 +14 +308 +5.4 +5.9 +.315 + ++11 +Greg Vaughn, TB +56 +.247 +20 +295 +5.3 +6.0 +.332 + ++12 +John Olerud, SEA +55 +.317 +10 +287 +5.2 +6.3 +.427 + ++13 +Magglio Ordonez, SOX +54 +.304 +19 +286 +5.3 +6.0 +.386 + ++ +Mike Cameron, SEA +54 +.270 +14 +270 +5.0 +5.8 +.355 + ++ +Carlos Delgado, TOR +54 +.250 +22 +288 +5.3 +6.5 +.393 + ++16 +Jim Thome, CLE +53 +.276 +22 +250 +4.7 +5.7 +.397 + ++ +Ellis Burks, CLE +53 +.295 +20 +261 +4.9 +5.7 +.371 + ++ +Garret Anderson, ANA +53 +.273 +12 +337 +6.4 +6.7 +.297 + ++19 +Troy Glaus, ANA +52 +.250 +21 +296 +5.7 +6.8 +.362 + ++20 +Roberto Alomar, CLE +50 +.354 +8 +291 +5.8 +6.9 +.426 + ++ +Miguel Tejada, OAK +50 +.268 +16 +317 +6.3 +6.8 +.324 + ++ +Doug Mientkiewicz, MIN +50 +.312 +11 +285 +5.7 +6.3 +.383 + ++ +Corey Koskie, MIN +50 +.262 +11 +275 +5.5 +6.3 +.355 + ++ +Joe Randa, KC +50 +.256 +6 +305 +6.1 +6.6 +.313 + ++25 +Tony Batista, BAL +49 +.206 +14 +291 +5.9 +6.3 +.255 + ++26 +Raul Mondesi, TOR +47 +.283 +16 +315 +6.7 +7.7 +.375 + ++ +Fred McGriff, TB +47 +.332 +14 +271 +5.8 +6.5 +.398 + ++28 +Jeff Conine, BAL +46 +.326 +9 +233 +5.1 +5.7 +.402 + ++ +Carlos Lee, SOX +46 +.302 +13 +268 +5.8 +6.1 +.339 + ++ +Paul Konerko, SOX +46 +.277 +16 +274 +6.0 +6.6 +.353 + ++ +Brad Fullmer, TOR +46 +.265 +9 +294 +6.4 +6.8 +.311 + ++ +Tony Clark, DET +46 +.300 +12 +247 +5.4 +6.2 +.379 + ++ +Bernie Williams, NYY +46 +.324 +14 +247 +5.4 +6.2 +.409 + ++34 +Alex Gonzalez, TOR +45 +.257 +7 +323 +7.2 +7.9 +.300 + ++35 +Brian Daubach, BOS +44 +.285 +14 +221 +5.0 +5.7 +.349 + ++36 +Torii Hunter, MIN +43 +.247 +12 +263 +6.1 +6.4 +.285 + ++ +Terrence Long, OAK +43 +.274 +9 +317 +7.4 +8.1 +.329 + ++ +Eric Chavez, OAK +43 +.247 +11 +287 +6.7 +7.2 +.306 + ++39 +Carlos Beltran, KC +42 +.266 +12 +312 +7.4 +8.1 +.312 + ++ +Carl Everett, BOS +42 +.284 +9 +282 +6.7 +7.2 +.344 + + July 3, 2001, at 12:36 PM ET +