From: Michael Orlitzky Date: Tue, 17 Jun 2014 14:39:52 +0000 (-0400) Subject: Add SportInfo support for MLBOPSXML.dtd. X-Git-Tag: 0.0.6~160 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d970bf1904c57be1ad2fb77475991e39ff0a267b;p=dead%2Fhtsn-import.git Add SportInfo support for MLBOPSXML.dtd. --- diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index 77afd35..426d189 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -198,6 +198,8 @@ MLBIntWalksXML.dtd MLBKORateXML.dtd .IP \[bu] mlbonbasepctxml.dtd +.IP \[bu] +MLBOPSXML.dtd .RE .P The GameInfo and SportInfo types do not have their own top-level diff --git a/schema/MLBOPSXML.dtd b/schema/MLBOPSXML.dtd new file mode 100644 index 0000000..2c38afb --- /dev/null +++ b/schema/MLBOPSXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/MLBOPSXML/MLBOPSXML.xml b/schemagen/MLBOPSXML/MLBOPSXML.xml new file mode 100644 index 0000000..c35b069 --- /dev/null +++ b/schemagen/MLBOPSXML/MLBOPSXML.xml @@ -0,0 +1,530 @@ + + + +39570417 +AAX%AL-ONBASEPLUSSLUGGING-LEADERS +Statistics +MLB +2002 AL On Base Plus Slugging Leaders ++1 +Mike Sweeney, KC +1.006 +.364 +37 +272 +99 +30 +158 +.425 +.581 + ++ +Jason Giambi, NYY +1.005 +.308 +60 +279 +86 +52 +161 +.428 +.577 + ++ +Alex Rodriguez, TEX +1.002 +.306 +63 +294 +90 +44 +176 +.403 +.599 + ++ +Jim Thome, CLE +.990 +.275 +54 +251 +69 +60 +143 +.420 +.570 + ++ +John Olerud, SEA +.947 +.315 +43 +267 +84 +51 +141 +.418 +.528 + ++ +Alfonso Soriano, NYY +.933 +.322 +46 +326 +105 +11 +190 +.350 +.583 + ++ +Paul Konerko, SOX +.919 +.324 +65 +290 +94 +21 +159 +.370 +.548 + ++ +Magglio Ordonez, SOX +.917 +.313 +55 +281 +88 +27 +153 +.372 +.544 + ++ +Eric Hinske, TOR +.912 +.287 +42 +244 +70 +37 +130 +.379 +.533 + ++ +Carlos Delgado, TOR +.908 +.258 +56 +264 +68 +55 +136 +.393 +.515 + ++ +Eric Chavez, OAK +.898 +.271 +51 +266 +72 +30 +147 +.346 +.553 + ++ +Robin Ventura, NYY +.898 +.257 +53 +230 +59 +41 +122 +.368 +.530 + ++ +Rafael Palmeiro, TEX +.895 +.267 +44 +251 +67 +41 +132 +.369 +.526 + ++ +Torii Hunter, MIN +.895 +.297 +55 +300 +89 +21 +166 +.342 +.553 + ++ +Ichiro Suzuki, SEA +.888 +.358 +27 +307 +110 +37 +142 +.426 +.463 + ++ +Omar Vizquel, CLE +.880 +.302 +45 +275 +83 +36 +137 +.382 +.498 + ++ +Garret Anderson, ANA +.878 +.303 +58 +310 +94 +13 +171 +.326 +.552 + ++ +Bernie Williams, NYY +.875 +.309 +39 +288 +89 +46 +135 +.407 +.469 + ++ +Tim Salmon, ANA +.875 +.277 +46 +260 +72 +36 +132 +.368 +.508 + ++ +Shea Hillenbrand, BOS +.873 +.313 +49 +297 +93 +11 +156 +.348 +.525 + ++ +Nomar Garciaparra, BOS +.872 +.309 +59 +288 +89 +20 +150 +.351 +.521 + ++ +Tony Batista, BAL +.858 +.264 +46 +276 +73 +24 +145 +.332 +.525 + ++ +Carlos Guillen, SEA +.857 +.297 +35 +222 +66 +27 +108 +.371 +.486 + ++ +Brad Fullmer, ANA +.852 +.268 +29 +220 +59 +17 +114 +.333 +.518 + ++ +Johnny Damon, BOS +.848 +.322 +38 +292 +94 +27 +137 +.378 +.469 + ++ +Joe Randa, KC +.846 +.299 +47 +234 +70 +24 +113 +.363 +.483 + ++ +Robert Fick, DET +.845 +.294 +34 +269 +79 +25 +131 +.358 +.487 + ++ +Scott Hatteberg, OAK +.838 +.271 +31 +236 +64 +34 +110 +.372 +.466 + ++ +Ruben Sierra, SEA +.834 +.305 +48 +262 +80 +20 +126 +.353 +.481 + ++ +Miguel Tejada, OAK +.831 +.297 +56 +316 +94 +15 +156 +.337 +.494 + ++ +Jorge Posada, NYY +.831 +.262 +45 +252 +66 +36 +121 +.351 +.480 + ++ +Jacque Jones, MIN +.829 +.299 +52 +308 +92 +21 +150 +.342 +.487 + ++ +Randy Winn, TB +.821 +.305 +38 +295 +90 +19 +138 +.353 +.468 + ++ +Carlos Beltran, KC +.817 +.261 +44 +283 +74 +33 +135 +.340 +.477 + ++ +Ellis Burks, CLE +.817 +.276 +38 +246 +68 +25 +115 +.349 +.467 + ++ +Frank Thomas, SOX +.812 +.255 +50 +267 +68 +37 +124 +.347 +.464 + ++ +Bobby Higginson, DET +.808 +.288 +30 +208 +60 +23 +94 +.356 +.452 + ++ +Jay Gibbons, BAL +.807 +.255 +34 +235 +60 +29 +111 +.335 +.472 + ++ +Derek Jeter, NYY +.805 +.301 +38 +319 +96 +33 +138 +.373 +.433 + ++ +Troy Glaus, ANA +.802 +.245 +53 +274 +67 +39 +126 +.342 +.460 + + June 27, 2002, at 11:52 AM ET + diff --git a/src/TSN/XML/SportInfo.hs b/src/TSN/XML/SportInfo.hs index 4468831..82d1833 100644 --- a/src/TSN/XML/SportInfo.hs +++ b/src/TSN/XML/SportInfo.hs @@ -116,7 +116,7 @@ dtds = "MLBIntWalksXML.dtd", "MLBKORateXML.dtd", "mlbonbasepctxml.dtd", - "MLBOPSXML.dtd", -- no dtd + "MLBOPSXML.dtd", "MLBPlateAppsXML.dtd", -- no dtd "mlbrbisxml.dtd", -- no dtd "mlbrunsleadersxml.dtd", -- no dtd @@ -360,7 +360,8 @@ sport_info_test_files = "MLBHRFreqXML.xml", "MLBIntWalksXML.xml", "MLBKORateXML.xml", - "mlbonbasepctxml.xml" + "mlbonbasepctxml.xml", + "MLBOPSXML.xml" ] diff --git a/test/xml/sportinfo/MLBOPSXML.dtd b/test/xml/sportinfo/MLBOPSXML.dtd new file mode 100644 index 0000000..2c38afb --- /dev/null +++ b/test/xml/sportinfo/MLBOPSXML.dtd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/sportinfo/MLBOPSXML.xml b/test/xml/sportinfo/MLBOPSXML.xml new file mode 100644 index 0000000..c35b069 --- /dev/null +++ b/test/xml/sportinfo/MLBOPSXML.xml @@ -0,0 +1,530 @@ + + + +39570417 +AAX%AL-ONBASEPLUSSLUGGING-LEADERS +Statistics +MLB +2002 AL On Base Plus Slugging Leaders ++1 +Mike Sweeney, KC +1.006 +.364 +37 +272 +99 +30 +158 +.425 +.581 + ++ +Jason Giambi, NYY +1.005 +.308 +60 +279 +86 +52 +161 +.428 +.577 + ++ +Alex Rodriguez, TEX +1.002 +.306 +63 +294 +90 +44 +176 +.403 +.599 + ++ +Jim Thome, CLE +.990 +.275 +54 +251 +69 +60 +143 +.420 +.570 + ++ +John Olerud, SEA +.947 +.315 +43 +267 +84 +51 +141 +.418 +.528 + ++ +Alfonso Soriano, NYY +.933 +.322 +46 +326 +105 +11 +190 +.350 +.583 + ++ +Paul Konerko, SOX +.919 +.324 +65 +290 +94 +21 +159 +.370 +.548 + ++ +Magglio Ordonez, SOX +.917 +.313 +55 +281 +88 +27 +153 +.372 +.544 + ++ +Eric Hinske, TOR +.912 +.287 +42 +244 +70 +37 +130 +.379 +.533 + ++ +Carlos Delgado, TOR +.908 +.258 +56 +264 +68 +55 +136 +.393 +.515 + ++ +Eric Chavez, OAK +.898 +.271 +51 +266 +72 +30 +147 +.346 +.553 + ++ +Robin Ventura, NYY +.898 +.257 +53 +230 +59 +41 +122 +.368 +.530 + ++ +Rafael Palmeiro, TEX +.895 +.267 +44 +251 +67 +41 +132 +.369 +.526 + ++ +Torii Hunter, MIN +.895 +.297 +55 +300 +89 +21 +166 +.342 +.553 + ++ +Ichiro Suzuki, SEA +.888 +.358 +27 +307 +110 +37 +142 +.426 +.463 + ++ +Omar Vizquel, CLE +.880 +.302 +45 +275 +83 +36 +137 +.382 +.498 + ++ +Garret Anderson, ANA +.878 +.303 +58 +310 +94 +13 +171 +.326 +.552 + ++ +Bernie Williams, NYY +.875 +.309 +39 +288 +89 +46 +135 +.407 +.469 + ++ +Tim Salmon, ANA +.875 +.277 +46 +260 +72 +36 +132 +.368 +.508 + ++ +Shea Hillenbrand, BOS +.873 +.313 +49 +297 +93 +11 +156 +.348 +.525 + ++ +Nomar Garciaparra, BOS +.872 +.309 +59 +288 +89 +20 +150 +.351 +.521 + ++ +Tony Batista, BAL +.858 +.264 +46 +276 +73 +24 +145 +.332 +.525 + ++ +Carlos Guillen, SEA +.857 +.297 +35 +222 +66 +27 +108 +.371 +.486 + ++ +Brad Fullmer, ANA +.852 +.268 +29 +220 +59 +17 +114 +.333 +.518 + ++ +Johnny Damon, BOS +.848 +.322 +38 +292 +94 +27 +137 +.378 +.469 + ++ +Joe Randa, KC +.846 +.299 +47 +234 +70 +24 +113 +.363 +.483 + ++ +Robert Fick, DET +.845 +.294 +34 +269 +79 +25 +131 +.358 +.487 + ++ +Scott Hatteberg, OAK +.838 +.271 +31 +236 +64 +34 +110 +.372 +.466 + ++ +Ruben Sierra, SEA +.834 +.305 +48 +262 +80 +20 +126 +.353 +.481 + ++ +Miguel Tejada, OAK +.831 +.297 +56 +316 +94 +15 +156 +.337 +.494 + ++ +Jorge Posada, NYY +.831 +.262 +45 +252 +66 +36 +121 +.351 +.480 + ++ +Jacque Jones, MIN +.829 +.299 +52 +308 +92 +21 +150 +.342 +.487 + ++ +Randy Winn, TB +.821 +.305 +38 +295 +90 +19 +138 +.353 +.468 + ++ +Carlos Beltran, KC +.817 +.261 +44 +283 +74 +33 +135 +.340 +.477 + ++ +Ellis Burks, CLE +.817 +.276 +38 +246 +68 +25 +115 +.349 +.467 + ++ +Frank Thomas, SOX +.812 +.255 +50 +267 +68 +37 +124 +.347 +.464 + ++ +Bobby Higginson, DET +.808 +.288 +30 +208 +60 +23 +94 +.356 +.452 + ++ +Jay Gibbons, BAL +.807 +.255 +34 +235 +60 +29 +111 +.335 +.472 + ++ +Derek Jeter, NYY +.805 +.301 +38 +319 +96 +33 +138 +.373 +.433 + ++ +Troy Glaus, ANA +.802 +.245 +53 +274 +67 +39 +126 +.342 +.460 + + June 27, 2002, at 11:52 AM ET +