]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Add SportInfo support for MLB_Pitching_Balks_Leaders.dtd.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 22 Jun 2014 14:36:12 +0000 (10:36 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 22 Jun 2014 14:36:12 +0000 (10:36 -0400)
doc/man1/htsn-import.1
schema/MLB_Pitching_Balks_Leaders.dtd [new file with mode: 0644]
schemagen/MLB_Pitching_Balks_Leaders/MLB_Pitching_Balks_Leaders.xml [new file with mode: 0644]
src/TSN/XML/SportInfo.hs
test/xml/sportinfo/MLB_Pitching_Balks_Leaders.dtd [new file with mode: 0644]
test/xml/sportinfo/MLB_Pitching_Balks_Leaders.xml [new file with mode: 0644]

index ebf5f4009f52da264120c5e864bee604c8e1d796..fbd875ba0f15e4997c6e6b607fa6c2bbf671e6f8 100644 (file)
@@ -234,6 +234,8 @@ MLBXtraBaseHitsXML.dtd
 MLB_Pitching_Appearances_Leaders.dtd
 .IP \[bu]
 MLB_ERA_Leaders.dtd
+.IP \[bu]
+MLB_Pitching_Balks_Leaders.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/MLB_Pitching_Balks_Leaders.dtd b/schema/MLB_Pitching_Balks_Leaders.dtd
new file mode 100644 (file)
index 0000000..712dd83
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Balks_Leaders , time_stamp )>\r
+\r
+<!ELEMENT XML_File_ID  (#PCDATA )>\r
+\r
+<!ELEMENT heading  (#PCDATA )>\r
+\r
+<!ELEMENT category  (#PCDATA )>\r
+\r
+<!ELEMENT sport  (#PCDATA )>\r
+\r
+<!ELEMENT Title  (#PCDATA )>\r
+\r
+<!ELEMENT Top_Balks_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Balks )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Balks  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/MLB_Pitching_Balks_Leaders/MLB_Pitching_Balks_Leaders.xml b/schemagen/MLB_Pitching_Balks_Leaders/MLB_Pitching_Balks_Leaders.xml
new file mode 100644 (file)
index 0000000..59ff084
--- /dev/null
@@ -0,0 +1,147 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Balks_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>10795617</XML_File_ID>\r
+<heading>AAX%AL-BALK-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Balks Leaders</Title>\r
+<Top_Balks_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Doug Davis, TEX</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeremy Affeldt, KC</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ramon Ortiz, ANA</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank>5</Rank>\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Schoeneweis, ANA</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Luke Prokopec, TOR</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jarrod Washburn, ANA</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Cory Bailey, KC</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Steve Woodard, TEX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tanyon Sturtze, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Esteban Yan, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Dan Miceli, TEX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jim Mecir, OAK</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jon Rauch, SOX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>John Halama, SEA</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Steve Kent, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Frank Castillo, BOS</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tim Wakefield, BOS</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Delvin James, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Julio Santana, DET</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Pete Walker, TOR</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mac Suzuki, KC</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+</Top_Balks_Leaders>\r
+<time_stamp> June 25, 2002, at 02:09 PM ET </time_stamp>\r
+</message>\r
index 115fe105c58a5941b5479568d8cfaf166d2cb868..7d94f5420f7b5268d0e88119e340dd8659ee6bc3 100644 (file)
@@ -133,9 +133,9 @@ dtds =
     "mlbwalksleadersxml.dtd",
     "MLBXtraBaseHitsXML.dtd",
     "MLB_ERA_Leaders.dtd",
-    "MLB_Fielding_XML.dtd", -- no dtd
+    "MLB_Fielding_XML.dtd",
     "MLB_Pitching_Appearances_Leaders.dtd",
-    "MLB_Pitching_Balks_Leaders.dtd", -- no dtd
+    "MLB_Pitching_Balks_Leaders.dtd",
     "MLB_Pitching_CG_Leaders.dtd", -- no dtd
     "MLB_Pitching_ER_Allowed_Leaders.dtd", -- no dtd
     "MLB_Pitching_Hits_Allowed_Leaders.dtd", -- no dtd
@@ -377,8 +377,9 @@ sport_info_test_files =
     "MLBWalkRateXML.xml",
     "mlbwalksleadersxml.xml",
     "MLBXtraBaseHitsXML.xml",
+    "MLB_ERA_Leaders.xml",
     "MLB_Pitching_Appearances_Leaders.xml",
-    "MLB_ERA_Leaders.xml"
+    "MLB_Pitching_Balks_Leaders.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/MLB_Pitching_Balks_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_Balks_Leaders.dtd
new file mode 100644 (file)
index 0000000..712dd83
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Balks_Leaders , time_stamp )>\r
+\r
+<!ELEMENT XML_File_ID  (#PCDATA )>\r
+\r
+<!ELEMENT heading  (#PCDATA )>\r
+\r
+<!ELEMENT category  (#PCDATA )>\r
+\r
+<!ELEMENT sport  (#PCDATA )>\r
+\r
+<!ELEMENT Title  (#PCDATA )>\r
+\r
+<!ELEMENT Top_Balks_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Balks )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Balks  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/MLB_Pitching_Balks_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_Balks_Leaders.xml
new file mode 100644 (file)
index 0000000..59ff084
--- /dev/null
@@ -0,0 +1,147 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Balks_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>10795617</XML_File_ID>\r
+<heading>AAX%AL-BALK-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Balks Leaders</Title>\r
+<Top_Balks_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Doug Davis, TEX</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeremy Affeldt, KC</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ramon Ortiz, ANA</Player_Team>\r
+<Balks>2</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank>5</Rank>\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Schoeneweis, ANA</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Luke Prokopec, TOR</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jarrod Washburn, ANA</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Cory Bailey, KC</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Steve Woodard, TEX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tanyon Sturtze, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Esteban Yan, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Dan Miceli, TEX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jim Mecir, OAK</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jon Rauch, SOX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>John Halama, SEA</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Steve Kent, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Frank Castillo, BOS</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tim Wakefield, BOS</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Delvin James, TB</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Julio Santana, DET</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Pete Walker, TOR</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mac Suzuki, KC</Player_Team>\r
+<Balks>1</Balks>\r
+</Listing>\r
+</Top_Balks_Leaders>\r
+<time_stamp> June 25, 2002, at 02:09 PM ET </time_stamp>\r
+</message>\r