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

index 6e310db024d48229a0ff3b82897fddc7007cd4e7..259762a8c69efe32fc0b466dae3b62fb4994179e 100644 (file)
@@ -252,6 +252,8 @@ MLB_Pitching_IP_Leaders.dtd
 MLB_Pitching_Runs_Allowed_Leaders.dtd
 .IP \[bu]
 MLB_Pitching_Saves_Leaders.dtd
+.IP \[bu]
+MLB_Pitching_Shut_Outs_Leaders.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/MLB_Pitching_Shut_Outs_Leaders.dtd b/schema/MLB_Pitching_Shut_Outs_Leaders.dtd
new file mode 100644 (file)
index 0000000..c35e32c
--- /dev/null
@@ -0,0 +1,34 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Shut_Outs_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_Shut_Outs_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Shut_Outs , Game_Starts , Complete_Games , Wins , Losses , ERA )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Shut_Outs  (#PCDATA )>\r
+\r
+<!ELEMENT Game_Starts  (#PCDATA )>\r
+\r
+<!ELEMENT Complete_Games  (#PCDATA )>\r
+\r
+<!ELEMENT Wins  (#PCDATA )>\r
+\r
+<!ELEMENT Losses  (#PCDATA )>\r
+\r
+<!ELEMENT ERA  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/MLB_Pitching_Shut_Outs_Leaders/MLB_Pitching_Shut_Outs_Leaders.xml b/schemagen/MLB_Pitching_Shut_Outs_Leaders/MLB_Pitching_Shut_Outs_Leaders.xml
new file mode 100644 (file)
index 0000000..e5eac97
--- /dev/null
@@ -0,0 +1,202 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Shut_Outs_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>91848417</XML_File_ID>\r
+<heading>AAX%AL-SHUTOUTS-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL ShutOuts Leaders</Title>\r
+<Top_Shut_Outs_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Shut_Outs>3</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>3</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>8</Losses>\r
+<ERA>3.32</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Bartolo Colon, CLE</Player_Team>\r
+<Shut_Outs>2</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>4</Complete_Games>\r
+<Wins>10</Wins>\r
+<Losses>4</Losses>\r
+<ERA>2.55</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Joe Kennedy, TB</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>3</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>6</Losses>\r
+<ERA>4.26</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Derek Lowe, BOS</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>11</Wins>\r
+<Losses>3</Losses>\r
+<ERA>2.16</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>9</Wins>\r
+<Losses>5</Losses>\r
+<ERA>4.25</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Darren Oliver, BOS</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>9</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>4</Wins>\r
+<Losses>5</Losses>\r
+<ERA>4.66</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ted Lilly, NYY</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>10</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>5</Losses>\r
+<ERA>2.97</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>6</Losses>\r
+<ERA>4.76</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Suppan, KC</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>6</Losses>\r
+<ERA>4.66</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Joel Pineiro, SEA</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>11</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>7</Wins>\r
+<Losses>3</Losses>\r
+<ERA>3.04</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Mulder, OAK</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>12</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>8</Wins>\r
+<Losses>4</Losses>\r
+<ERA>4.21</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>8</Wins>\r
+<Losses>4</Losses>\r
+<ERA>3.24</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jamie Moyer, SEA</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>7</Wins>\r
+<Losses>3</Losses>\r
+<ERA>3.47</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>David Wells, NYY</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>7</Wins>\r
+<Losses>5</Losses>\r
+<ERA>3.61</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>8</Losses>\r
+<ERA>5.48</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Doug Davis, TEX</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>10</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>5</Losses>\r
+<ERA>4.98</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Roy Halladay, TOR</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>9</Wins>\r
+<Losses>3</Losses>\r
+<ERA>3.19</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Darrell May, KC</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>8</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>2</Wins>\r
+<Losses>4</Losses>\r
+<ERA>4.78</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Esteban Loaiza, TOR</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>8</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>4</Losses>\r
+<ERA>4.44</ERA>\r
+</Listing>\r
+</Top_Shut_Outs_Leaders>\r
+<time_stamp> June 25, 2002, at 11:45 AM ET </time_stamp>\r
+</message>\r
index 40fe52917d893eafd8464963b9a5b199394aaa22..e93922bce1d38f5ab3da004d469e7799478f3d8b 100644 (file)
@@ -144,7 +144,7 @@ dtds =
     "MLB_Pitching_IP_Leaders.dtd",
     "MLB_Pitching_Runs_Allowed_Leaders.dtd",
     "MLB_Pitching_Saves_Leaders.dtd",
-    "MLB_Pitching_Shut_Outs_Leaders.dtd", -- no dtd
+    "MLB_Pitching_Shut_Outs_Leaders.dtd",
     "MLB_Pitching_Starts_Leaders.dtd", -- no dtd
     "MLB_Pitching_Strike_Outs_Leaders.dtd", -- no dtd
     "MLB_Pitching_Walks_Leaders.dtd", -- no dtd
@@ -387,7 +387,8 @@ sport_info_test_files =
     "MLB_Pitching_HR_Allowed_Leaders.xml",
     "MLB_Pitching_IP_Leaders.xml",
     "MLB_Pitching_Runs_Allowed_Leaders.xml",
-    "MLB_Pitching_Saves_Leaders.xml"
+    "MLB_Pitching_Saves_Leaders.xml",
+    "MLB_Pitching_Shut_Outs_Leaders.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.dtd
new file mode 100644 (file)
index 0000000..c35e32c
--- /dev/null
@@ -0,0 +1,34 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Shut_Outs_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_Shut_Outs_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Shut_Outs , Game_Starts , Complete_Games , Wins , Losses , ERA )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Shut_Outs  (#PCDATA )>\r
+\r
+<!ELEMENT Game_Starts  (#PCDATA )>\r
+\r
+<!ELEMENT Complete_Games  (#PCDATA )>\r
+\r
+<!ELEMENT Wins  (#PCDATA )>\r
+\r
+<!ELEMENT Losses  (#PCDATA )>\r
+\r
+<!ELEMENT ERA  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_Shut_Outs_Leaders.xml
new file mode 100644 (file)
index 0000000..e5eac97
--- /dev/null
@@ -0,0 +1,202 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Shut_Outs_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>91848417</XML_File_ID>\r
+<heading>AAX%AL-SHUTOUTS-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL ShutOuts Leaders</Title>\r
+<Top_Shut_Outs_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Shut_Outs>3</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>3</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>8</Losses>\r
+<ERA>3.32</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Bartolo Colon, CLE</Player_Team>\r
+<Shut_Outs>2</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>4</Complete_Games>\r
+<Wins>10</Wins>\r
+<Losses>4</Losses>\r
+<ERA>2.55</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Joe Kennedy, TB</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>3</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>6</Losses>\r
+<ERA>4.26</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Derek Lowe, BOS</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>11</Wins>\r
+<Losses>3</Losses>\r
+<ERA>2.16</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>9</Wins>\r
+<Losses>5</Losses>\r
+<ERA>4.25</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Darren Oliver, BOS</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>9</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>4</Wins>\r
+<Losses>5</Losses>\r
+<ERA>4.66</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ted Lilly, NYY</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>10</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>5</Losses>\r
+<ERA>2.97</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>6</Losses>\r
+<ERA>4.76</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Suppan, KC</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>6</Losses>\r
+<ERA>4.66</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Joel Pineiro, SEA</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>11</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>7</Wins>\r
+<Losses>3</Losses>\r
+<ERA>3.04</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Mulder, OAK</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>12</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>8</Wins>\r
+<Losses>4</Losses>\r
+<ERA>4.21</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>8</Wins>\r
+<Losses>4</Losses>\r
+<ERA>3.24</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jamie Moyer, SEA</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>7</Wins>\r
+<Losses>3</Losses>\r
+<ERA>3.47</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>David Wells, NYY</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>15</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>7</Wins>\r
+<Losses>5</Losses>\r
+<ERA>3.61</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>5</Wins>\r
+<Losses>8</Losses>\r
+<ERA>5.48</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Doug Davis, TEX</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>10</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>5</Losses>\r
+<ERA>4.98</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Roy Halladay, TOR</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>16</Game_Starts>\r
+<Complete_Games>2</Complete_Games>\r
+<Wins>9</Wins>\r
+<Losses>3</Losses>\r
+<ERA>3.19</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Darrell May, KC</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>8</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>2</Wins>\r
+<Losses>4</Losses>\r
+<ERA>4.78</ERA>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Esteban Loaiza, TOR</Player_Team>\r
+<Shut_Outs>1</Shut_Outs>\r
+<Game_Starts>8</Game_Starts>\r
+<Complete_Games>1</Complete_Games>\r
+<Wins>3</Wins>\r
+<Losses>4</Losses>\r
+<ERA>4.44</ERA>\r
+</Listing>\r
+</Top_Shut_Outs_Leaders>\r
+<time_stamp> June 25, 2002, at 11:45 AM ET </time_stamp>\r
+</message>\r