From: Michael Orlitzky Date: Wed, 18 Jun 2014 15:47:51 +0000 (-0400) Subject: Add SportInfo support for mlbwalksleadersxml.dtd. X-Git-Tag: 0.0.6~146 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=e60d19d53b4ca2f89dae68b6a7be94840d412b3a;p=dead%2Fhtsn-import.git Add SportInfo support for mlbwalksleadersxml.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index c11a34a..ac8a796 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -226,6 +226,8 @@ mlbtotalbasesleadersxml.dtd mlbtriplesleadersxml.dtd .IP \[bu] MLBWalkRateXML.dtd +.IP \[bu] +mlbwalksleadersxml.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/mlbwalksleadersxml.dtd b/schema/mlbwalksleadersxml.dtd new file mode 100644 index 0000000..cc63b10 --- /dev/null +++ b/schema/mlbwalksleadersxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/mlbwalksleadersxml/mlbwalksleadersxml.xml b/schemagen/mlbwalksleadersxml/mlbwalksleadersxml.xml new file mode 100644 index 0000000..ffe4c39 --- /dev/null +++ b/schemagen/mlbwalksleadersxml/mlbwalksleadersxml.xml @@ -0,0 +1,410 @@ + + + +1701834 +AAX%AL-WALKS-LEADERS +Statistics +MLB +2001 AL Walks Leaders ++1 +Jason Giambi, OAK +71 +.337 +19 +60 +14 +.481 + ++2 +Edgar Martinez, SEA +62 +.303 +12 +64 +6 +.437 + ++3 +Carlos Delgado, TOR +61 +.250 +22 +54 +15 +.393 + ++4 +Tim Salmon, ANA +58 +.206 +9 +26 +4 +.363 + ++5 +John Olerud, SEA +55 +.317 +10 +55 +13 +.427 + ++ +Matt Lawton, MIN +55 +.299 +6 +40 +3 +.410 + ++7 +Rafael Palmeiro, TEX +52 +.262 +21 +60 +3 +.371 + ++ +Troy Glaus, ANA +52 +.250 +21 +52 +4 +.362 + ++9 +Jim Thome, CLE +49 +.276 +22 +53 +5 +.397 + ++ +Manny Ramirez, BOS +49 +.331 +25 +82 +19 +.429 + ++11 +Bobby Higginson, DET +46 +.291 +9 +35 +2 +.400 + ++12 +Raul Mondesi, TOR +44 +.283 +16 +47 +1 +.375 + ++ +Ben Grieve, TB +44 +.245 +6 +34 +0 +.352 + ++14 +Alex Rodriguez, TEX +42 +.315 +23 +67 +3 +.401 + ++15 +Trot Nixon, BOS +41 +.263 +12 +39 +1 +.377 + ++16 +Roberto Alomar, CLE +40 +.354 +8 +50 +0 +.426 + ++17 +Frank Menechino, OAK +38 +.283 +10 +41 +0 +.392 + ++ +Greg Vaughn, TB +38 +.247 +20 +56 +4 +.332 + ++19 +Derek Jeter, NYY +37 +.288 +6 +38 +2 +.367 + ++ +Omar Vizquel, CLE +37 +.262 +1 +20 +0 +.341 + ++ +David Segui, BAL +37 +.302 +7 +32 +3 +.415 + ++22 +Magglio Ordonez, SOX +36 +.304 +19 +54 +4 +.386 + ++ +Corey Koskie, MIN +36 +.262 +11 +50 +7 +.355 + ++ +Jorge Posada, NYY +36 +.310 +13 +61 +7 +.402 + ++25 +Mike Cameron, SEA +35 +.270 +14 +54 +0 +.355 + ++ +Bernie Williams, NYY +35 +.324 +14 +46 +4 +.409 + ++27 +Mike Sweeney, KC +34 +.335 +21 +63 +7 +.395 + ++28 +Ellis Burks, CLE +33 +.295 +20 +53 +1 +.371 + ++ +Tony Clark, DET +33 +.300 +12 +46 +4 +.379 + ++30 +Gabe Kapler, TEX +32 +.253 +10 +35 +2 +.348 + ++ +Jose Offerman, BOS +32 +.270 +4 +21 +1 +.343 + ++ +Brady Anderson, BAL +32 +.206 +6 +26 +3 +.306 + ++33 +Ray Durham, SOX +31 +.247 +10 +30 +3 +.320 + ++ +Fred McGriff, TB +31 +.332 +14 +47 +6 +.398 + ++ +Delino DeShields, BAL +31 +.197 +3 +21 +1 +.312 + ++36 +Shannon Stewart, TOR +30 +.323 +6 +35 +1 +.385 + ++ +Scott Brosius, NYY +30 +.290 +10 +29 +2 +.359 + ++ +Chuck Knoblauch, NYY +30 +.249 +4 +26 +0 +.331 + ++39 +Doug Mientkiewicz, MIN +29 +.312 +11 +50 +4 +.383 + ++ +Johnny Damon, OAK +29 +.229 +5 +32 +0 +.292 + + July 3, 2001, at 12:37 PM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 67fc464..0ad3e52 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -130,7 +130,7 @@ dtds = "mlbtotalbasesleadersxml.dtd", "mlbtriplesleadersxml.dtd", "MLBWalkRateXML.dtd", - "mlbwalksleadersxml.dtd", -- no dtd + "mlbwalksleadersxml.dtd", "MLBXtraBaseHitsXML.dtd", -- no dtd "MLB_ERA_Leaders.dtd", -- no dtd "MLB_Fielding_XML.dtd", -- no dtd @@ -374,7 +374,8 @@ sport_info_test_files = "mlbstolenbasexml.xml", "mlbtotalbasesleadersxml.xml", "mlbtriplesleadersxml.xml", - "MLBWalkRateXML.xml" + "MLBWalkRateXML.xml", + "mlbwalksleadersxml.xml" ] diff --git a/test/xml/sportinfo/mlbwalksleadersxml.dtd b/test/xml/sportinfo/mlbwalksleadersxml.dtd new file mode 100644 index 0000000..cc63b10 --- /dev/null +++ b/test/xml/sportinfo/mlbwalksleadersxml.dtd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/mlbwalksleadersxml.xml b/test/xml/sportinfo/mlbwalksleadersxml.xml new file mode 100644 index 0000000..ffe4c39 --- /dev/null +++ b/test/xml/sportinfo/mlbwalksleadersxml.xml @@ -0,0 +1,410 @@ + + + +1701834 +AAX%AL-WALKS-LEADERS +Statistics +MLB +2001 AL Walks Leaders ++1 +Jason Giambi, OAK +71 +.337 +19 +60 +14 +.481 + ++2 +Edgar Martinez, SEA +62 +.303 +12 +64 +6 +.437 + ++3 +Carlos Delgado, TOR +61 +.250 +22 +54 +15 +.393 + ++4 +Tim Salmon, ANA +58 +.206 +9 +26 +4 +.363 + ++5 +John Olerud, SEA +55 +.317 +10 +55 +13 +.427 + ++ +Matt Lawton, MIN +55 +.299 +6 +40 +3 +.410 + ++7 +Rafael Palmeiro, TEX +52 +.262 +21 +60 +3 +.371 + ++ +Troy Glaus, ANA +52 +.250 +21 +52 +4 +.362 + ++9 +Jim Thome, CLE +49 +.276 +22 +53 +5 +.397 + ++ +Manny Ramirez, BOS +49 +.331 +25 +82 +19 +.429 + ++11 +Bobby Higginson, DET +46 +.291 +9 +35 +2 +.400 + ++12 +Raul Mondesi, TOR +44 +.283 +16 +47 +1 +.375 + ++ +Ben Grieve, TB +44 +.245 +6 +34 +0 +.352 + ++14 +Alex Rodriguez, TEX +42 +.315 +23 +67 +3 +.401 + ++15 +Trot Nixon, BOS +41 +.263 +12 +39 +1 +.377 + ++16 +Roberto Alomar, CLE +40 +.354 +8 +50 +0 +.426 + ++17 +Frank Menechino, OAK +38 +.283 +10 +41 +0 +.392 + ++ +Greg Vaughn, TB +38 +.247 +20 +56 +4 +.332 + ++19 +Derek Jeter, NYY +37 +.288 +6 +38 +2 +.367 + ++ +Omar Vizquel, CLE +37 +.262 +1 +20 +0 +.341 + ++ +David Segui, BAL +37 +.302 +7 +32 +3 +.415 + ++22 +Magglio Ordonez, SOX +36 +.304 +19 +54 +4 +.386 + ++ +Corey Koskie, MIN +36 +.262 +11 +50 +7 +.355 + ++ +Jorge Posada, NYY +36 +.310 +13 +61 +7 +.402 + ++25 +Mike Cameron, SEA +35 +.270 +14 +54 +0 +.355 + ++ +Bernie Williams, NYY +35 +.324 +14 +46 +4 +.409 + ++27 +Mike Sweeney, KC +34 +.335 +21 +63 +7 +.395 + ++28 +Ellis Burks, CLE +33 +.295 +20 +53 +1 +.371 + ++ +Tony Clark, DET +33 +.300 +12 +46 +4 +.379 + ++30 +Gabe Kapler, TEX +32 +.253 +10 +35 +2 +.348 + ++ +Jose Offerman, BOS +32 +.270 +4 +21 +1 +.343 + ++ +Brady Anderson, BAL +32 +.206 +6 +26 +3 +.306 + ++33 +Ray Durham, SOX +31 +.247 +10 +30 +3 +.320 + ++ +Fred McGriff, TB +31 +.332 +14 +47 +6 +.398 + ++ +Delino DeShields, BAL +31 +.197 +3 +21 +1 +.312 + ++36 +Shannon Stewart, TOR +30 +.323 +6 +35 +1 +.385 + ++ +Scott Brosius, NYY +30 +.290 +10 +29 +2 +.359 + ++ +Chuck Knoblauch, NYY +30 +.249 +4 +26 +0 +.331 + ++39 +Doug Mientkiewicz, MIN +29 +.312 +11 +50 +4 +.383 + ++ +Johnny Damon, OAK +29 +.229 +5 +32 +0 +.292 + + July 3, 2001, at 12:37 PM ET +