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

index 40cde0b7eec8345b9de94bb9ecfdeac973a751da..256dfd5980a3cc015d90e734998b366fff759cc2 100644 (file)
@@ -248,6 +248,8 @@ MLB_Pitching_Hit_Batters_Leaders.dtd
 MLB_Pitching_HR_Allowed_Leaders.dtd
 .IP \[bu]
 MLB_Pitching_IP_Leaders.dtd
+.IP \[bu]
+MLB_Pitching_Runs_Allowed_Leaders.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/MLB_Pitching_Runs_Allowed_Leaders.dtd b/schema/MLB_Pitching_Runs_Allowed_Leaders.dtd
new file mode 100644 (file)
index 0000000..0b35dea
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Runs_Allowed_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_Runs_Allowed_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Runs_Allowed )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Runs_Allowed  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/MLB_Pitching_Runs_Allowed_Leaders/MLB_Pitching_Runs_Allowed_Leaders.xml b/schemagen/MLB_Pitching_Runs_Allowed_Leaders/MLB_Pitching_Runs_Allowed_Leaders.xml
new file mode 100644 (file)
index 0000000..3a6efec
--- /dev/null
@@ -0,0 +1,212 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Runs_Allowed_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>1029101017</XML_File_ID>\r
+<heading>AAX%AL-RUN-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Runs Allowed Leaders</Title>\r
+<Top_Runs_Allowed_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Runs_Allowed>67</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Todd Ritchie, SOX</Player_Team>\r
+<Runs_Allowed>66</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Tanyon Sturtze, TB</Player_Team>\r
+<Runs_Allowed>61</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>4</Rank>\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Runs_Allowed>60</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>5</Rank>\r
+<Player_Team>Aaron Sele, ANA</Player_Team>\r
+<Runs_Allowed>59</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Eric Milton, MIN</Player_Team>\r
+<Runs_Allowed>59</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>7</Rank>\r
+<Player_Team>Ryan Rupe, TB</Player_Team>\r
+<Runs_Allowed>57</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Runs_Allowed>57</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>9</Rank>\r
+<Player_Team>Dave Burba, TEX</Player_Team>\r
+<Runs_Allowed>55</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Suppan, KC</Player_Team>\r
+<Runs_Allowed>55</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>11</Rank>\r
+<Player_Team>Joe Kennedy, TB</Player_Team>\r
+<Runs_Allowed>54</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>12</Rank>\r
+<Player_Team>Mike Mussina, NYY</Player_Team>\r
+<Runs_Allowed>53</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Runs_Allowed>53</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kyle Lohse, MIN</Player_Team>\r
+<Runs_Allowed>53</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>15</Rank>\r
+<Player_Team>Ryan Drese, CLE</Player_Team>\r
+<Runs_Allowed>52</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Runs_Allowed>52</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>17</Rank>\r
+<Player_Team>James Baldwin, SEA</Player_Team>\r
+<Runs_Allowed>51</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Runs_Allowed>51</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>19</Rank>\r
+<Player_Team>Roy Halladay, TOR</Player_Team>\r
+<Runs_Allowed>50</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Cory Lidle, OAK</Player_Team>\r
+<Runs_Allowed>50</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jon Garland, SOX</Player_Team>\r
+<Runs_Allowed>50</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>22</Rank>\r
+<Player_Team>Paul Wilson, TB</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Rick Reed, MIN</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Schoeneweis, ANA</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>26</Rank>\r
+<Player_Team>Freddy Garcia, SEA</Player_Team>\r
+<Runs_Allowed>48</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>27</Rank>\r
+<Player_Team>Roger Clemens, NYY</Player_Team>\r
+<Runs_Allowed>47</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Brandon Lyon, TOR</Player_Team>\r
+<Runs_Allowed>47</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>29</Rank>\r
+<Player_Team>Tim Hudson, OAK</Player_Team>\r
+<Runs_Allowed>46</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>30</Rank>\r
+<Player_Team>Sidney Ponson, BAL</Player_Team>\r
+<Runs_Allowed>45</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kevin Appier, ANA</Player_Team>\r
+<Runs_Allowed>45</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>32</Rank>\r
+<Player_Team>Frank Castillo, BOS</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>David Wells, NYY</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Dan Reichert, KC</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Luke Prokopec, TOR</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>36</Rank>\r
+<Player_Team>Jamie Moyer, SEA</Player_Team>\r
+<Runs_Allowed>43</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>37</Rank>\r
+<Player_Team>Justin Miller, TOR</Player_Team>\r
+<Runs_Allowed>42</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Buehrle, SOX</Player_Team>\r
+<Runs_Allowed>42</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>39</Rank>\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Runs_Allowed>41</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Chan Ho Park, TEX</Player_Team>\r
+<Runs_Allowed>41</Runs_Allowed>\r
+</Listing>\r
+</Top_Runs_Allowed_Leaders>\r
+<time_stamp> June 25, 2002, at 02:40 PM ET </time_stamp>\r
+</message>\r
index f063d5d051488c24332128a8d0010997d2119558..0536fa51beda7834c22ad0a63be027a464586e47 100644 (file)
@@ -142,7 +142,7 @@ dtds =
     "MLB_Pitching_Hit_Batters_Leaders.dtd",
     "MLB_Pitching_HR_Allowed_Leaders.dtd",
     "MLB_Pitching_IP_Leaders.dtd",
-    "MLB_Pitching_Runs_Allowed_Leaders.dtd", -- no dtd
+    "MLB_Pitching_Runs_Allowed_Leaders.dtd",
     "MLB_Pitching_Saves_Leaders.dtd", -- no dtd
     "MLB_Pitching_Shut_Outs_Leaders.dtd", -- no dtd
     "MLB_Pitching_Starts_Leaders.dtd", -- no dtd
@@ -385,7 +385,8 @@ sport_info_test_files =
     "MLB_Pitching_Hits_Allowed_Leaders.xml",
     "MLB_Pitching_Hit_Batters_Leaders.xml",
     "MLB_Pitching_HR_Allowed_Leaders.xml",
-    "MLB_Pitching_IP_Leaders.xml"
+    "MLB_Pitching_IP_Leaders.xml",
+    "MLB_Pitching_Runs_Allowed_Leaders.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/MLB_Pitching_Runs_Allowed_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_Runs_Allowed_Leaders.dtd
new file mode 100644 (file)
index 0000000..0b35dea
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Runs_Allowed_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_Runs_Allowed_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Runs_Allowed )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Runs_Allowed  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/MLB_Pitching_Runs_Allowed_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_Runs_Allowed_Leaders.xml
new file mode 100644 (file)
index 0000000..3a6efec
--- /dev/null
@@ -0,0 +1,212 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Runs_Allowed_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>1029101017</XML_File_ID>\r
+<heading>AAX%AL-RUN-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Runs Allowed Leaders</Title>\r
+<Top_Runs_Allowed_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Runs_Allowed>67</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Todd Ritchie, SOX</Player_Team>\r
+<Runs_Allowed>66</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Tanyon Sturtze, TB</Player_Team>\r
+<Runs_Allowed>61</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>4</Rank>\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Runs_Allowed>60</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>5</Rank>\r
+<Player_Team>Aaron Sele, ANA</Player_Team>\r
+<Runs_Allowed>59</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Eric Milton, MIN</Player_Team>\r
+<Runs_Allowed>59</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>7</Rank>\r
+<Player_Team>Ryan Rupe, TB</Player_Team>\r
+<Runs_Allowed>57</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Runs_Allowed>57</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>9</Rank>\r
+<Player_Team>Dave Burba, TEX</Player_Team>\r
+<Runs_Allowed>55</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Suppan, KC</Player_Team>\r
+<Runs_Allowed>55</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>11</Rank>\r
+<Player_Team>Joe Kennedy, TB</Player_Team>\r
+<Runs_Allowed>54</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>12</Rank>\r
+<Player_Team>Mike Mussina, NYY</Player_Team>\r
+<Runs_Allowed>53</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Runs_Allowed>53</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kyle Lohse, MIN</Player_Team>\r
+<Runs_Allowed>53</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>15</Rank>\r
+<Player_Team>Ryan Drese, CLE</Player_Team>\r
+<Runs_Allowed>52</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Runs_Allowed>52</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>17</Rank>\r
+<Player_Team>James Baldwin, SEA</Player_Team>\r
+<Runs_Allowed>51</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Runs_Allowed>51</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>19</Rank>\r
+<Player_Team>Roy Halladay, TOR</Player_Team>\r
+<Runs_Allowed>50</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Cory Lidle, OAK</Player_Team>\r
+<Runs_Allowed>50</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jon Garland, SOX</Player_Team>\r
+<Runs_Allowed>50</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>22</Rank>\r
+<Player_Team>Paul Wilson, TB</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Rick Reed, MIN</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Schoeneweis, ANA</Player_Team>\r
+<Runs_Allowed>49</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>26</Rank>\r
+<Player_Team>Freddy Garcia, SEA</Player_Team>\r
+<Runs_Allowed>48</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>27</Rank>\r
+<Player_Team>Roger Clemens, NYY</Player_Team>\r
+<Runs_Allowed>47</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Brandon Lyon, TOR</Player_Team>\r
+<Runs_Allowed>47</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>29</Rank>\r
+<Player_Team>Tim Hudson, OAK</Player_Team>\r
+<Runs_Allowed>46</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>30</Rank>\r
+<Player_Team>Sidney Ponson, BAL</Player_Team>\r
+<Runs_Allowed>45</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kevin Appier, ANA</Player_Team>\r
+<Runs_Allowed>45</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>32</Rank>\r
+<Player_Team>Frank Castillo, BOS</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>David Wells, NYY</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Dan Reichert, KC</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Luke Prokopec, TOR</Player_Team>\r
+<Runs_Allowed>44</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>36</Rank>\r
+<Player_Team>Jamie Moyer, SEA</Player_Team>\r
+<Runs_Allowed>43</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>37</Rank>\r
+<Player_Team>Justin Miller, TOR</Player_Team>\r
+<Runs_Allowed>42</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Buehrle, SOX</Player_Team>\r
+<Runs_Allowed>42</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>39</Rank>\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Runs_Allowed>41</Runs_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Chan Ho Park, TEX</Player_Team>\r
+<Runs_Allowed>41</Runs_Allowed>\r
+</Listing>\r
+</Top_Runs_Allowed_Leaders>\r
+<time_stamp> June 25, 2002, at 02:40 PM ET </time_stamp>\r
+</message>\r