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

index 334208c46366d2f724bcc0c00368122183b724a0..963f4504d1111e63e5da07c1c18db0259f9d09f4 100644 (file)
@@ -262,6 +262,8 @@ MLB_Pitching_Strike_Outs_Leaders.dtd
 MLB_Pitching_Walks_Leaders.dtd
 .IP \[bu]
 MLB_Pitching_WHIP_Leaders.dtd
+.IP \[bu]
+MLB_Pitching_Wild_Pitches_Leaders.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/MLB_Pitching_Wild_Pitches_Leaders.dtd b/schema/MLB_Pitching_Wild_Pitches_Leaders.dtd
new file mode 100644 (file)
index 0000000..c599bf1
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Wild_Pitches_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_Wild_Pitches_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Wild_Pitches )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Wild_Pitches  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/MLB_Pitching_Wild_Pitches_Leaders/MLB_Pitching_Wild_Pitches_Leaders.xml b/schemagen/MLB_Pitching_Wild_Pitches_Leaders/MLB_Pitching_Wild_Pitches_Leaders.xml
new file mode 100644 (file)
index 0000000..1e426a2
--- /dev/null
@@ -0,0 +1,212 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Wild_Pitches_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>191797</XML_File_ID>\r
+<heading>AAX%AL-WILDPITCHES-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Wild Pitches Leaders</Title>\r
+<Top_Wild_Pitches_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Ryan Drese, CLE</Player_Team>\r
+<Wild_Pitches>9</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Wild_Pitches>8</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Dave Burba, TEX</Player_Team>\r
+<Wild_Pitches>6</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>4</Rank>\r
+<Player_Team>Kyle Lohse, MIN</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Roger Clemens, NYY</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ted Lilly, NYY</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Victor Zambrano, TB</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Todd Ritchie, SOX</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Miguel Asencio, KC</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mac Suzuki, KC</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>11</Rank>\r
+<Player_Team>Jason Grimsley, KC</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Joel Pineiro, SEA</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Mulder, OAK</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Wohlers, CLE</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ryan Rupe, TB</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mike Mussina, NYY</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeremy Affeldt, KC</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Johan Santana, MIN</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Matt Kinney, MIN</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>21</Rank>\r
+<Player_Team>Bartolo Colon, CLE</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Randy Choate, NYY</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Luke Prokopec, TOR</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jarrod Washburn, ANA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Eyre, TOR</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Felix Heredia, TOR</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>J.C. Romero, MIN</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Gary Glover, SOX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Hideki Irabu, TEX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tim Hudson, OAK</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kazuhiro Sasaki, SEA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Troy Percival, ANA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Dan Reichert, KC</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Aaron Sele, ANA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Rudy Seanez, TEX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Rob Bell, TEX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+</Top_Wild_Pitches_Leaders>\r
+<time_stamp> June 25, 2002, at 02:06 PM ET </time_stamp>\r
+</message>\r
index 25aefda42716118270fdbc1c1bcaea534e1e669d..c4a31e3f4dc4b9cb59d64a00b5e0537d52041f79 100644 (file)
@@ -149,7 +149,7 @@ dtds =
     "MLB_Pitching_Strike_Outs_Leaders.dtd",
     "MLB_Pitching_Walks_Leaders.dtd",
     "MLB_Pitching_WHIP_Leaders.dtd",
-    "MLB_Pitching_Wild_Pitches_Leaders.dtd", -- no dtd
+    "MLB_Pitching_Wild_Pitches_Leaders.dtd",
     "MLB_Pitching_Win_Percentage_Leaders.dtd", -- no dtd
     "MLB_Pitching_WL_Leaders.dtd", -- no dtd
     "NBA_Team_Stats_XML.dtd", -- no dtd
@@ -392,7 +392,8 @@ sport_info_test_files =
     "MLB_Pitching_Starts_Leaders.xml",
     "MLB_Pitching_Strike_Outs_Leaders.xml",
     "MLB_Pitching_Walks_Leaders.xml",
-    "MLB_Pitching_WHIP_Leaders.xml"
+    "MLB_Pitching_WHIP_Leaders.xml",
+    "MLB_Pitching_Wild_Pitches_Leaders.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/MLB_Pitching_Wild_Pitches_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_Wild_Pitches_Leaders.dtd
new file mode 100644 (file)
index 0000000..c599bf1
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Wild_Pitches_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_Wild_Pitches_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Wild_Pitches )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Wild_Pitches  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/MLB_Pitching_Wild_Pitches_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_Wild_Pitches_Leaders.xml
new file mode 100644 (file)
index 0000000..1e426a2
--- /dev/null
@@ -0,0 +1,212 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Wild_Pitches_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>191797</XML_File_ID>\r
+<heading>AAX%AL-WILDPITCHES-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Wild Pitches Leaders</Title>\r
+<Top_Wild_Pitches_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Ryan Drese, CLE</Player_Team>\r
+<Wild_Pitches>9</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Wild_Pitches>8</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Dave Burba, TEX</Player_Team>\r
+<Wild_Pitches>6</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>4</Rank>\r
+<Player_Team>Kyle Lohse, MIN</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Roger Clemens, NYY</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ted Lilly, NYY</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Victor Zambrano, TB</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Todd Ritchie, SOX</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Miguel Asencio, KC</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mac Suzuki, KC</Player_Team>\r
+<Wild_Pitches>5</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>11</Rank>\r
+<Player_Team>Jason Grimsley, KC</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Joel Pineiro, SEA</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Mulder, OAK</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Wohlers, CLE</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ryan Rupe, TB</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mike Mussina, NYY</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeremy Affeldt, KC</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Johan Santana, MIN</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Matt Kinney, MIN</Player_Team>\r
+<Wild_Pitches>4</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank>21</Rank>\r
+<Player_Team>Bartolo Colon, CLE</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Randy Choate, NYY</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Luke Prokopec, TOR</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jarrod Washburn, ANA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Eyre, TOR</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Felix Heredia, TOR</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>J.C. Romero, MIN</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Gary Glover, SOX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Hideki Irabu, TEX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tim Hudson, OAK</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kazuhiro Sasaki, SEA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Troy Percival, ANA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Dan Reichert, KC</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Aaron Sele, ANA</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Rudy Seanez, TEX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Rob Bell, TEX</Player_Team>\r
+<Wild_Pitches>3</Wild_Pitches>\r
+</Listing>\r
+</Top_Wild_Pitches_Leaders>\r
+<time_stamp> June 25, 2002, at 02:06 PM ET </time_stamp>\r
+</message>\r