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

index 89dac1f84fbbe19ed1d058b0e53daa7bd9049fbc..03ec095cc7540d4c76429f7afecc217c489e4ed1 100644 (file)
@@ -148,6 +148,8 @@ CBASK_ScoringLeadersXML.dtd
 Cbask_Team_ThreePT_Made_XML.dtd
 .IP \[bu]
 Cbask_Team_ThreePT_PCT_XML.dtd
+.IP \[bu]
+Cbask_Team_Win_Pct_XML.dtd
 .RE
 .P
 The GameInfo and SportInfo types do not have their own top-level
diff --git a/schema/Cbask_Team_Win_Pct_XML.dtd b/schema/Cbask_Team_Win_Pct_XML.dtd
new file mode 100644 (file)
index 0000000..cf59f9b
--- /dev/null
@@ -0,0 +1,21 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , title , Listing+ , 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 Listing  (Won_Loss , Win_Pct )>\r
+<!ATTLIST Listing  Team CDATA  #REQUIRED\r
+                   Rank CDATA  #REQUIRED >\r
+<!ELEMENT Won_Loss  (#PCDATA )>\r
+\r
+<!ELEMENT Win_Pct  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/schemagen/Cbask_Team_Win_Pct_XML/Cbask_Team_Win_Pct_XML.xml b/schemagen/Cbask_Team_Win_Pct_XML/Cbask_Team_Win_Pct_XML.xml
new file mode 100644 (file)
index 0000000..96168cd
--- /dev/null
@@ -0,0 +1,140 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "Cbask_Team_Win_Pct_XML.dtd">\r
+<message>\r
+<XML_File_ID>966788717</XML_File_ID>\r
+<heading>AEX%NCAA-TEAM-WL-PERCENTAGE</heading>\r
+<category>Statistics</category>\r
+<sport>CBASK</sport>\r
+<title>\r
+NCAA Division I Basketball Team Won-Lost Percentage Statistics\r
+</title>\r
+<Listing Rank="1" Team="Duke">\r
+<Won_Loss>20- 1</Won_Loss>\r
+<Win_Pct>95.2</Win_Pct>\r
+</Listing>\r
+<Listing Rank="2" Team="Cincinnati">\r
+<Won_Loss>20- 2</Won_Loss>\r
+<Win_Pct>90.9</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Kansas">\r
+<Won_Loss>20- 2</Won_Loss>\r
+<Win_Pct>90.9</Win_Pct>\r
+</Listing>\r
+<Listing Rank="4" Team="Butler">\r
+<Won_Loss>20- 3</Won_Loss>\r
+<Win_Pct>87.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Gonzaga">\r
+<Won_Loss>20- 3</Won_Loss>\r
+<Win_Pct>87.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Western Ky.">\r
+<Won_Loss>20- 3</Won_Loss>\r
+<Win_Pct>87.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="7" Team="Alabama">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Hawaii">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Marquette">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Miami (Fla.)">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="11" Team="Maryland">\r
+<Won_Loss>18- 3</Won_Loss>\r
+<Win_Pct>85.7</Win_Pct>\r
+</Listing>\r
+<Listing Rank="12" Team="Ohio St.">\r
+<Won_Loss>17- 3</Won_Loss>\r
+<Win_Pct>85.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Oklahoma">\r
+<Won_Loss>17- 3</Won_Loss>\r
+<Win_Pct>85.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Xavier">\r
+<Won_Loss>17- 3</Won_Loss>\r
+<Win_Pct>85.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="15" Team="Memphis">\r
+<Won_Loss>20- 4</Won_Loss>\r
+<Win_Pct>83.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="16" Team="Pittsburgh">\r
+<Won_Loss>19- 4</Won_Loss>\r
+<Win_Pct>82.6</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Southern Ill.">\r
+<Won_Loss>19- 4</Won_Loss>\r
+<Win_Pct>82.6</Win_Pct>\r
+</Listing>\r
+<Listing Rank="18" Team="Tulsa">\r
+<Won_Loss>18- 4</Won_Loss>\r
+<Win_Pct>81.8</Win_Pct>\r
+</Listing>\r
+<Listing Rank="19" Team="Central Conn. St.">\r
+<Won_Loss>17- 4</Won_Loss>\r
+<Win_Pct>81.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Tennessee Tech">\r
+<Won_Loss>17- 4</Won_Loss>\r
+<Win_Pct>81.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="21" Team="Florida">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Manhattan">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Texas Tech">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Utah">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Utah St.">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="26" Team="Georgia">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Hampton">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Kent St.">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Mississippi">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Mississippi St.">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Oklahoma St.">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Oregon">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<time_stamp> February 12, 2002, at 04:12 PM ET </time_stamp>\r
+</message>\r
index 8d14a9a007c6f2a699fc04b1a15679852fd2f9f1..82c7f5895db55f116560a7561ae9118ab7d28f1d 100644 (file)
@@ -91,7 +91,7 @@ dtds =
     "Cbask_Team_Shooting_Pct_XML.dtd", -- no dtd
     "Cbask_Team_ThreePT_Made_XML.dtd",
     "Cbask_Team_ThreePT_PCT_XML.dtd",
-    "Cbask_Team_Win_Pct_XML.dtd", -- no dtd
+    "Cbask_Team_Win_Pct_XML.dtd",
     "Cbask_Top_Twenty_Five_XML.dtd", -- no dtd
     "CBASK_TopTwentyFiveResult_XML.dtd", -- no dtd
     "Cbask_Tourn_Awards_XML.dtd", -- no dtd
@@ -334,7 +334,8 @@ sport_info_test_files =
     "test/xml/sportinfo/CBASK_ReboundsXML.xml",
     "test/xml/sportinfo/CBASK_ScoringLeadersXML.xml",
     "test/xml/sportinfo/Cbask_Team_ThreePT_Made_XML.xml",
-    "test/xml/sportinfo/Cbask_Team_ThreePT_PCT_XML.xml"
+    "test/xml/sportinfo/Cbask_Team_ThreePT_PCT_XML.xml",
+    "test/xml/sportinfo/Cbask_Team_Win_Pct_XML.xml"
   ]
 
 
diff --git a/test/xml/sportinfo/Cbask_Team_Win_Pct_XML.dtd b/test/xml/sportinfo/Cbask_Team_Win_Pct_XML.dtd
new file mode 100644 (file)
index 0000000..cf59f9b
--- /dev/null
@@ -0,0 +1,21 @@
+<!ELEMENT message  (XML_File_ID, heading , category , sport , title , Listing+ , 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 Listing  (Won_Loss , Win_Pct )>\r
+<!ATTLIST Listing  Team CDATA  #REQUIRED\r
+                   Rank CDATA  #REQUIRED >\r
+<!ELEMENT Won_Loss  (#PCDATA )>\r
+\r
+<!ELEMENT Win_Pct  (#PCDATA )>\r
+\r
+<!ELEMENT time_stamp  (#PCDATA )>\r
+\r
diff --git a/test/xml/sportinfo/Cbask_Team_Win_Pct_XML.xml b/test/xml/sportinfo/Cbask_Team_Win_Pct_XML.xml
new file mode 100644 (file)
index 0000000..96168cd
--- /dev/null
@@ -0,0 +1,140 @@
+<?xml version="1.0" standalone="no" ?>\r
+<!DOCTYPE message PUBLIC "-//TSN//DTD Statistics 1.0/EN" "Cbask_Team_Win_Pct_XML.dtd">\r
+<message>\r
+<XML_File_ID>966788717</XML_File_ID>\r
+<heading>AEX%NCAA-TEAM-WL-PERCENTAGE</heading>\r
+<category>Statistics</category>\r
+<sport>CBASK</sport>\r
+<title>\r
+NCAA Division I Basketball Team Won-Lost Percentage Statistics\r
+</title>\r
+<Listing Rank="1" Team="Duke">\r
+<Won_Loss>20- 1</Won_Loss>\r
+<Win_Pct>95.2</Win_Pct>\r
+</Listing>\r
+<Listing Rank="2" Team="Cincinnati">\r
+<Won_Loss>20- 2</Won_Loss>\r
+<Win_Pct>90.9</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Kansas">\r
+<Won_Loss>20- 2</Won_Loss>\r
+<Win_Pct>90.9</Win_Pct>\r
+</Listing>\r
+<Listing Rank="4" Team="Butler">\r
+<Won_Loss>20- 3</Won_Loss>\r
+<Win_Pct>87.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Gonzaga">\r
+<Won_Loss>20- 3</Won_Loss>\r
+<Win_Pct>87.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Western Ky.">\r
+<Won_Loss>20- 3</Won_Loss>\r
+<Win_Pct>87.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="7" Team="Alabama">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Hawaii">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Marquette">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Miami (Fla.)">\r
+<Won_Loss>19- 3</Won_Loss>\r
+<Win_Pct>86.4</Win_Pct>\r
+</Listing>\r
+<Listing Rank="11" Team="Maryland">\r
+<Won_Loss>18- 3</Won_Loss>\r
+<Win_Pct>85.7</Win_Pct>\r
+</Listing>\r
+<Listing Rank="12" Team="Ohio St.">\r
+<Won_Loss>17- 3</Won_Loss>\r
+<Win_Pct>85.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Oklahoma">\r
+<Won_Loss>17- 3</Won_Loss>\r
+<Win_Pct>85.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Xavier">\r
+<Won_Loss>17- 3</Won_Loss>\r
+<Win_Pct>85.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="15" Team="Memphis">\r
+<Won_Loss>20- 4</Won_Loss>\r
+<Win_Pct>83.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="16" Team="Pittsburgh">\r
+<Won_Loss>19- 4</Won_Loss>\r
+<Win_Pct>82.6</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Southern Ill.">\r
+<Won_Loss>19- 4</Won_Loss>\r
+<Win_Pct>82.6</Win_Pct>\r
+</Listing>\r
+<Listing Rank="18" Team="Tulsa">\r
+<Won_Loss>18- 4</Won_Loss>\r
+<Win_Pct>81.8</Win_Pct>\r
+</Listing>\r
+<Listing Rank="19" Team="Central Conn. St.">\r
+<Won_Loss>17- 4</Won_Loss>\r
+<Win_Pct>81.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Tennessee Tech">\r
+<Won_Loss>17- 4</Won_Loss>\r
+<Win_Pct>81.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="21" Team="Florida">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Manhattan">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Texas Tech">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Utah">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Utah St.">\r
+<Won_Loss>16- 4</Won_Loss>\r
+<Win_Pct>80.0</Win_Pct>\r
+</Listing>\r
+<Listing Rank="26" Team="Georgia">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Hampton">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Kent St.">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Mississippi">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Mississippi St.">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Oklahoma St.">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<Listing Rank="" Team="Oregon">\r
+<Won_Loss>17- 5</Won_Loss>\r
+<Win_Pct>77.3</Win_Pct>\r
+</Listing>\r
+<time_stamp> February 12, 2002, at 04:12 PM ET </time_stamp>\r
+</message>\r