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

index 89d2f240730cd7ceca8958fe8ae3bc8bec7dc7c6..698789df29d71c75cdf91b658a0852256a40e009 100644 (file)
@@ -240,6 +240,8 @@ MLB_Pitching_Balks_Leaders.dtd
 MLB_Pitching_CG_Leaders.dtd
 .IP \[bu]
 MLB_Pitching_ER_Allowed_Leaders.dtd
+.IP \[bu]
+MLB_Pitching_Hits_Allowed_Leaders.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/MLB_Pitching_Hits_Allowed_Leaders.dtd b/schema/MLB_Pitching_Hits_Allowed_Leaders.dtd
new file mode 100644 (file)
index 0000000..9680f77
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Hits_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_Hits_Allowed_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Hits_Allowed )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Hits_Allowed  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/MLB_Pitching_Hits_Allowed_Leaders/MLB_Pitching_Hits_Allowed_Leaders.xml b/schemagen/MLB_Pitching_Hits_Allowed_Leaders/MLB_Pitching_Hits_Allowed_Leaders.xml
new file mode 100644 (file)
index 0000000..7735d17
--- /dev/null
@@ -0,0 +1,212 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Hits_Allowed_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>19177617</XML_File_ID>\r
+<heading>AAX%AL-HIT-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Hits Allowed Leaders</Title>\r
+<Top_Hits_Allowed_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Tanyon Sturtze, TB</Player_Team>\r
+<Hits_Allowed>124</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Aaron Sele, ANA</Player_Team>\r
+<Hits_Allowed>119</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Hits_Allowed>118</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>4</Rank>\r
+<Player_Team>Todd Ritchie, SOX</Player_Team>\r
+<Hits_Allowed>112</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>5</Rank>\r
+<Player_Team>Roy Halladay, TOR</Player_Team>\r
+<Hits_Allowed>108</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tim Hudson, OAK</Player_Team>\r
+<Hits_Allowed>108</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Hits_Allowed>108</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>8</Rank>\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Hits_Allowed>105</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Hits_Allowed>105</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>10</Rank>\r
+<Player_Team>Cory Lidle, OAK</Player_Team>\r
+<Hits_Allowed>104</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Bartolo Colon, CLE</Player_Team>\r
+<Hits_Allowed>104</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>12</Rank>\r
+<Player_Team>Joe Kennedy, TB</Player_Team>\r
+<Hits_Allowed>103</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>13</Rank>\r
+<Player_Team>Paul Wilson, TB</Player_Team>\r
+<Hits_Allowed>101</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>14</Rank>\r
+<Player_Team>Eric Milton, MIN</Player_Team>\r
+<Hits_Allowed>100</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Suppan, KC</Player_Team>\r
+<Hits_Allowed>100</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>16</Rank>\r
+<Player_Team>Freddy Garcia, SEA</Player_Team>\r
+<Hits_Allowed>98</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>17</Rank>\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Hits_Allowed>97</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kevin Appier, ANA</Player_Team>\r
+<Hits_Allowed>97</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>19</Rank>\r
+<Player_Team>Mike Mussina, NYY</Player_Team>\r
+<Hits_Allowed>96</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Buehrle, SOX</Player_Team>\r
+<Hits_Allowed>96</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kyle Lohse, MIN</Player_Team>\r
+<Hits_Allowed>96</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>22</Rank>\r
+<Player_Team>Dave Burba, TEX</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>David Wells, NYY</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>26</Rank>\r
+<Player_Team>Ryan Drese, CLE</Player_Team>\r
+<Hits_Allowed>94</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>27</Rank>\r
+<Player_Team>Roger Clemens, NYY</Player_Team>\r
+<Hits_Allowed>93</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jon Garland, SOX</Player_Team>\r
+<Hits_Allowed>93</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>29</Rank>\r
+<Player_Team>Chuck Finley, CLE</Player_Team>\r
+<Hits_Allowed>92</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>James Baldwin, SEA</Player_Team>\r
+<Hits_Allowed>92</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Schoeneweis, ANA</Player_Team>\r
+<Hits_Allowed>92</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>32</Rank>\r
+<Player_Team>Sidney Ponson, BAL</Player_Team>\r
+<Hits_Allowed>91</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jamie Moyer, SEA</Player_Team>\r
+<Hits_Allowed>91</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>34</Rank>\r
+<Player_Team>Jarrod Washburn, ANA</Player_Team>\r
+<Hits_Allowed>90</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>35</Rank>\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Hits_Allowed>89</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>36</Rank>\r
+<Player_Team>Rick Reed, MIN</Player_Team>\r
+<Hits_Allowed>86</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>37</Rank>\r
+<Player_Team>John Burkett, BOS</Player_Team>\r
+<Hits_Allowed>83</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ismael Valdes, TEX</Player_Team>\r
+<Hits_Allowed>83</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>39</Rank>\r
+<Player_Team>Barry Zito, OAK</Player_Team>\r
+<Hits_Allowed>82</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>40</Rank>\r
+<Player_Team>Joel Pineiro, SEA</Player_Team>\r
+<Hits_Allowed>81</Hits_Allowed>\r
+</Listing>\r
+</Top_Hits_Allowed_Leaders>\r
+<time_stamp> June 25, 2002, at 02:32 PM ET </time_stamp>\r
+</message>\r
index d2f9712589db70b01c6e56598f77b8c4dfeef1d9..d80b695ee843bf76877ee621c1e63dc7734f3cc1 100644 (file)
@@ -138,7 +138,7 @@ dtds =
     "MLB_Pitching_Balks_Leaders.dtd",
     "MLB_Pitching_CG_Leaders.dtd",
     "MLB_Pitching_ER_Allowed_Leaders.dtd",
-    "MLB_Pitching_Hits_Allowed_Leaders.dtd", -- no dtd
+    "MLB_Pitching_Hits_Allowed_Leaders.dtd",
     "MLB_Pitching_Hit_Batters_Leaders.dtd", -- no dtd
     "MLB_Pitching_HR_Allowed_Leaders.dtd", -- no dtd
     "MLB_Pitching_IP_Leaders.dtd", -- no dtd
@@ -381,7 +381,8 @@ sport_info_test_files =
     "MLB_Pitching_Appearances_Leaders.xml",
     "MLB_Pitching_Balks_Leaders.xml",
     "MLB_Pitching_CG_Leaders.xml",
-    "MLB_Pitching_ER_Allowed_Leaders.xml"
+    "MLB_Pitching_ER_Allowed_Leaders.xml",
+    "MLB_Pitching_Hits_Allowed_Leaders.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/MLB_Pitching_Hits_Allowed_Leaders.dtd b/test/xml/sportinfo/MLB_Pitching_Hits_Allowed_Leaders.dtd
new file mode 100644 (file)
index 0000000..9680f77
--- /dev/null
@@ -0,0 +1,24 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , Title , Top_Hits_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_Hits_Allowed_Leaders  (Listing+ )>\r
+\r
+<!ELEMENT Listing  (Rank , Player_Team , Hits_Allowed )>\r
+\r
+<!ELEMENT Rank  (#PCDATA )>\r
+\r
+<!ELEMENT Player_Team  (#PCDATA )>\r
+\r
+<!ELEMENT Hits_Allowed  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/MLB_Pitching_Hits_Allowed_Leaders.xml b/test/xml/sportinfo/MLB_Pitching_Hits_Allowed_Leaders.xml
new file mode 100644 (file)
index 0000000..7735d17
--- /dev/null
@@ -0,0 +1,212 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "MLB_Pitching_Hits_Allowed_Leaders.dtd">\r
+<message>\r
+<XML_File_ID>19177617</XML_File_ID>\r
+<heading>AAX%AL-HIT-LEADERS</heading>\r
+<category>Statistics</category>\r
+<sport>MLB</sport>\r
+<Title>2002 AL Hits Allowed Leaders</Title>\r
+<Top_Hits_Allowed_Leaders>\r
+<Listing>\r
+<Rank>1</Rank>\r
+<Player_Team>Tanyon Sturtze, TB</Player_Team>\r
+<Hits_Allowed>124</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>2</Rank>\r
+<Player_Team>Aaron Sele, ANA</Player_Team>\r
+<Hits_Allowed>119</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>3</Rank>\r
+<Player_Team>Steve Sparks, DET</Player_Team>\r
+<Hits_Allowed>118</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>4</Rank>\r
+<Player_Team>Todd Ritchie, SOX</Player_Team>\r
+<Hits_Allowed>112</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>5</Rank>\r
+<Player_Team>Roy Halladay, TOR</Player_Team>\r
+<Hits_Allowed>108</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Tim Hudson, OAK</Player_Team>\r
+<Hits_Allowed>108</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Redman, DET</Player_Team>\r
+<Hits_Allowed>108</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>8</Rank>\r
+<Player_Team>Jeff Weaver, DET</Player_Team>\r
+<Hits_Allowed>105</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Erickson, BAL</Player_Team>\r
+<Hits_Allowed>105</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>10</Rank>\r
+<Player_Team>Cory Lidle, OAK</Player_Team>\r
+<Hits_Allowed>104</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Bartolo Colon, CLE</Player_Team>\r
+<Hits_Allowed>104</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>12</Rank>\r
+<Player_Team>Joe Kennedy, TB</Player_Team>\r
+<Hits_Allowed>103</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>13</Rank>\r
+<Player_Team>Paul Wilson, TB</Player_Team>\r
+<Hits_Allowed>101</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>14</Rank>\r
+<Player_Team>Eric Milton, MIN</Player_Team>\r
+<Hits_Allowed>100</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jeff Suppan, KC</Player_Team>\r
+<Hits_Allowed>100</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>16</Rank>\r
+<Player_Team>Freddy Garcia, SEA</Player_Team>\r
+<Hits_Allowed>98</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>17</Rank>\r
+<Player_Team>Danny Wright, SOX</Player_Team>\r
+<Hits_Allowed>97</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kevin Appier, ANA</Player_Team>\r
+<Hits_Allowed>97</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>19</Rank>\r
+<Player_Team>Mike Mussina, NYY</Player_Team>\r
+<Hits_Allowed>96</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Mark Buehrle, SOX</Player_Team>\r
+<Hits_Allowed>96</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kyle Lohse, MIN</Player_Team>\r
+<Hits_Allowed>96</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>22</Rank>\r
+<Player_Team>Dave Burba, TEX</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>David Wells, NYY</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Kenny Rogers, TEX</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Paul Byrd, KC</Player_Team>\r
+<Hits_Allowed>95</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>26</Rank>\r
+<Player_Team>Ryan Drese, CLE</Player_Team>\r
+<Hits_Allowed>94</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>27</Rank>\r
+<Player_Team>Roger Clemens, NYY</Player_Team>\r
+<Hits_Allowed>93</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jon Garland, SOX</Player_Team>\r
+<Hits_Allowed>93</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>29</Rank>\r
+<Player_Team>Chuck Finley, CLE</Player_Team>\r
+<Hits_Allowed>92</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>James Baldwin, SEA</Player_Team>\r
+<Hits_Allowed>92</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Scott Schoeneweis, ANA</Player_Team>\r
+<Hits_Allowed>92</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>32</Rank>\r
+<Player_Team>Sidney Ponson, BAL</Player_Team>\r
+<Hits_Allowed>91</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Jamie Moyer, SEA</Player_Team>\r
+<Hits_Allowed>91</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>34</Rank>\r
+<Player_Team>Jarrod Washburn, ANA</Player_Team>\r
+<Hits_Allowed>90</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>35</Rank>\r
+<Player_Team>C.C. Sabathia, CLE</Player_Team>\r
+<Hits_Allowed>89</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>36</Rank>\r
+<Player_Team>Rick Reed, MIN</Player_Team>\r
+<Hits_Allowed>86</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>37</Rank>\r
+<Player_Team>John Burkett, BOS</Player_Team>\r
+<Hits_Allowed>83</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank />\r
+<Player_Team>Ismael Valdes, TEX</Player_Team>\r
+<Hits_Allowed>83</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>39</Rank>\r
+<Player_Team>Barry Zito, OAK</Player_Team>\r
+<Hits_Allowed>82</Hits_Allowed>\r
+</Listing>\r
+<Listing>\r
+<Rank>40</Rank>\r
+<Player_Team>Joel Pineiro, SEA</Player_Team>\r
+<Hits_Allowed>81</Hits_Allowed>\r
+</Listing>\r
+</Top_Hits_Allowed_Leaders>\r
+<time_stamp> June 25, 2002, at 02:32 PM ET </time_stamp>\r
+</message>\r