From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:02:52 +0000 (-0400) Subject: Add SportInfo support for mlbsluggingpctxml.dtd. X-Git-Tag: 0.0.6~153 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=aa6778a22cb081a7d32f1e17fe26ff09532a65fb;p=dead%2Fhtsn-import.git Add SportInfo support for mlbsluggingpctxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 5682a0e..c013e25 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -212,6 +212,8 @@ MLBSacFliesXML.dtd MLBSacrificesXML.dtd .IP \[bu] MLBSBSuccessXML.dtd +.IP \[bu] +mlbsluggingpctxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbsluggingpctxml.dtd b/schema/mlbsluggingpctxml.dtd new file mode 100644 index 0000000..9421733 --- /dev/null +++ b/schema/mlbsluggingpctxml.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbsluggingpctxml/mlbsluggingpctxml.xml b/schemagen/mlbsluggingpctxml/mlbsluggingpctxml.xml new file mode 100644 index 0000000..2273b45 --- /dev/null +++ b/schemagen/mlbsluggingpctxml/mlbsluggingpctxml.xml @@ -0,0 +1,450 @@ + + + +17 +AAX%AL-SLUGGINGPCT-LEADERS +Statistics +MLB +2001 AL Slugging Percentage Leaders ++1 +Jason Giambi, OAK +.652 +.337 +19 +60 +267 +174 +.481 + ++2 +Manny Ramirez, BOS +.649 +.331 +25 +82 +305 +198 +.429 + ++3 +Mike Sweeney, KC +.646 +.335 +21 +63 +316 +204 +.395 + ++4 +Juan Gonzalez, CLE +.615 +.341 +21 +74 +296 +182 +.378 + ++5 +Jim Thome, CLE +.604 +.276 +22 +53 +250 +151 +.397 + ++6 +Ellis Burks, CLE +.602 +.295 +20 +53 +261 +157 +.371 + ++7 +Alex Rodriguez, TEX +.599 +.315 +23 +67 +317 +190 +.401 + ++8 +Bret Boone, SEA +.589 +.326 +21 +80 +316 +186 +.362 + ++9 +Jose Valentin, SOX +.559 +.286 +14 +36 +227 +127 +.344 + ++10 +Magglio Ordonez, SOX +.556 +.304 +19 +54 +286 +159 +.386 + ++11 +Bernie Williams, NYY +.551 +.324 +14 +46 +247 +136 +.409 + ++12 +Fred McGriff, TB +.542 +.332 +14 +47 +271 +147 +.398 + ++13 +Roberto Alomar, CLE +.536 +.354 +8 +50 +291 +156 +.426 + ++14 +Jorge Posada, NYY +.535 +.310 +13 +61 +245 +131 +.402 + ++15 +Ivan Rodriguez, TEX +.534 +.292 +16 +41 +264 +141 +.329 + ++16 +Troy Glaus, ANA +.534 +.250 +21 +52 +296 +158 +.362 + ++17 +Rafael Palmeiro, TEX +.534 +.262 +21 +60 +298 +159 +.371 + ++18 +Edgar Martinez, SEA +.532 +.303 +12 +64 +267 +142 +.437 + ++19 +Carlos Lee, SOX +.526 +.302 +13 +46 +268 +141 +.339 + ++20 +Mike Cameron, SEA +.522 +.270 +14 +54 +270 +141 +.355 + ++21 +Tony Clark, DET +.518 +.300 +12 +46 +247 +128 +.379 + ++22 +Raul Mondesi, TOR +.517 +.283 +16 +47 +315 +163 +.375 + ++23 +Carlos Delgado, TOR +.517 +.250 +22 +54 +288 +149 +.393 + ++24 +Paul Konerko, SOX +.507 +.277 +16 +46 +274 +139 +.353 + ++25 +Doug Mientkiewicz, MIN +.505 +.312 +11 +50 +285 +144 +.383 + ++26 +Greg Vaughn, TB +.502 +.247 +20 +56 +295 +148 +.332 + ++27 +Cristian Guzman, MIN +.500 +.306 +7 +31 +324 +162 +.344 + ++28 +Jeff Conine, BAL +.485 +.326 +9 +46 +233 +113 +.402 + ++29 +John Olerud, SEA +.484 +.317 +10 +55 +287 +139 +.427 + ++30 +Shannon Stewart, TOR +.481 +.323 +6 +35 +337 +162 +.385 + ++31 +Trot Nixon, BOS +.475 +.263 +12 +39 +240 +114 +.377 + ++32 +Bobby Higginson, DET +.474 +.291 +9 +35 +234 +111 +.400 + ++33 +Miguel Tejada, OAK +.473 +.268 +16 +50 +317 +150 +.324 + ++34 +Frank Menechino, OAK +.473 +.283 +10 +41 +258 +122 +.392 + ++35 +Carl Everett, BOS +.472 +.284 +9 +42 +282 +133 +.344 + ++36 +Scott Brosius, NYY +.470 +.290 +10 +29 +279 +131 +.359 + ++37 +Ichiro Suzuki, SEA +.465 +.349 +4 +38 +361 +168 +.378 + ++38 +Gabe Kapler, TEX +.456 +.253 +10 +35 +217 +99 +.348 + ++39 +Rusty Greer, TEX +.453 +.273 +7 +29 +245 +111 +.342 + ++40 +Jose Cruz, TOR +.452 +.274 +9 +35 +252 +114 +.338 + + July 3, 2001, at 12:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 4ba23a3..d7fa647 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -123,7 +123,7 @@ dtds = "MLBSacFliesXML.dtd", "MLBSacrificesXML.dtd", "MLBSBSuccessXML.dtd", - "mlbsluggingpctxml.dtd", -- no dtd + "mlbsluggingpctxml.dtd", "mlbstandxml.dtd", -- no dtd "mlbstandxml_preseason.dtd", -- no dtd "mlbstolenbasexml.dtd", -- no dtd @@ -367,7 +367,8 @@ sport_info_test_files = "mlbrunsleadersxml.xml", "MLBSacFliesXML.xml", "MLBSacrificesXML.xml", - "MLBSBSuccessXML.xml" + "MLBSBSuccessXML.xml", + "mlbsluggingpctxml.xml" ] diff --git a/test/xml/sportinfo/mlbsluggingpctxml.dtd b/test/xml/sportinfo/mlbsluggingpctxml.dtd new file mode 100644 index 0000000..9421733 --- /dev/null +++ b/test/xml/sportinfo/mlbsluggingpctxml.dtd @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbsluggingpctxml.xml b/test/xml/sportinfo/mlbsluggingpctxml.xml new file mode 100644 index 0000000..c2f1f40 --- /dev/null +++ b/test/xml/sportinfo/mlbsluggingpctxml.xml @@ -0,0 +1,450 @@ + + + +18181637 +AAX%AL-SLUGGINGPCT-LEADERS +Statistics +MLB +2001 AL Slugging Percentage Leaders ++1 +Jason Giambi, OAK +.652 +.337 +19 +60 +267 +174 +.481 + ++2 +Manny Ramirez, BOS +.649 +.331 +25 +82 +305 +198 +.429 + ++3 +Mike Sweeney, KC +.646 +.335 +21 +63 +316 +204 +.395 + ++4 +Juan Gonzalez, CLE +.615 +.341 +21 +74 +296 +182 +.378 + ++5 +Jim Thome, CLE +.604 +.276 +22 +53 +250 +151 +.397 + ++6 +Ellis Burks, CLE +.602 +.295 +20 +53 +261 +157 +.371 + ++7 +Alex Rodriguez, TEX +.599 +.315 +23 +67 +317 +190 +.401 + ++8 +Bret Boone, SEA +.589 +.326 +21 +80 +316 +186 +.362 + ++9 +Jose Valentin, SOX +.559 +.286 +14 +36 +227 +127 +.344 + ++10 +Magglio Ordonez, SOX +.556 +.304 +19 +54 +286 +159 +.386 + ++11 +Bernie Williams, NYY +.551 +.324 +14 +46 +247 +136 +.409 + ++12 +Fred McGriff, TB +.542 +.332 +14 +47 +271 +147 +.398 + ++13 +Roberto Alomar, CLE +.536 +.354 +8 +50 +291 +156 +.426 + ++14 +Jorge Posada, NYY +.535 +.310 +13 +61 +245 +131 +.402 + ++15 +Ivan Rodriguez, TEX +.534 +.292 +16 +41 +264 +141 +.329 + ++16 +Troy Glaus, ANA +.534 +.250 +21 +52 +296 +158 +.362 + ++17 +Rafael Palmeiro, TEX +.534 +.262 +21 +60 +298 +159 +.371 + ++18 +Edgar Martinez, SEA +.532 +.303 +12 +64 +267 +142 +.437 + ++19 +Carlos Lee, SOX +.526 +.302 +13 +46 +268 +141 +.339 + ++20 +Mike Cameron, SEA +.522 +.270 +14 +54 +270 +141 +.355 + ++21 +Tony Clark, DET +.518 +.300 +12 +46 +247 +128 +.379 + ++22 +Raul Mondesi, TOR +.517 +.283 +16 +47 +315 +163 +.375 + ++23 +Carlos Delgado, TOR +.517 +.250 +22 +54 +288 +149 +.393 + ++24 +Paul Konerko, SOX +.507 +.277 +16 +46 +274 +139 +.353 + ++25 +Doug Mientkiewicz, MIN +.505 +.312 +11 +50 +285 +144 +.383 + ++26 +Greg Vaughn, TB +.502 +.247 +20 +56 +295 +148 +.332 + ++27 +Cristian Guzman, MIN +.500 +.306 +7 +31 +324 +162 +.344 + ++28 +Jeff Conine, BAL +.485 +.326 +9 +46 +233 +113 +.402 + ++29 +John Olerud, SEA +.484 +.317 +10 +55 +287 +139 +.427 + ++30 +Shannon Stewart, TOR +.481 +.323 +6 +35 +337 +162 +.385 + ++31 +Trot Nixon, BOS +.475 +.263 +12 +39 +240 +114 +.377 + ++32 +Bobby Higginson, DET +.474 +.291 +9 +35 +234 +111 +.400 + ++33 +Miguel Tejada, OAK +.473 +.268 +16 +50 +317 +150 +.324 + ++34 +Frank Menechino, OAK +.473 +.283 +10 +41 +258 +122 +.392 + ++35 +Carl Everett, BOS +.472 +.284 +9 +42 +282 +133 +.344 + ++36 +Scott Brosius, NYY +.470 +.290 +10 +29 +279 +131 +.359 + ++37 +Ichiro Suzuki, SEA +.465 +.349 +4 +38 +361 +168 +.378 + ++38 +Gabe Kapler, TEX +.456 +.253 +10 +35 +217 +99 +.348 + ++39 +Rusty Greer, TEX +.453 +.273 +7 +29 +245 +111 +.342 + ++40 +Jose Cruz, TOR +.452 +.274 +9 +35 +252 +114 +.338 + + July 3, 2001, at 12:37 PM ET +