From 206d94d325b1fa31fc3b07841cd55f07c0fcf31a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 10 Jun 2014 21:27:43 -0400 Subject: [PATCH] Add GameInfo support for WorldBaseballPreviewXML.dtd. --- doc/man1/htsn-import.1 | 2 + schema/WorldBaseballPreviewXML.dtd | 20 ++++ .../WorldBaseballPreviewXML.xml | 97 +++++++++++++++++++ src/TSN/XML/GameInfo.hs | 6 +- test/xml/gameinfo/WorldBaseballPreviewXML.dtd | 20 ++++ test/xml/gameinfo/WorldBaseballPreviewXML.xml | 97 +++++++++++++++++++ 6 files changed, 239 insertions(+), 3 deletions(-) create mode 100644 schema/WorldBaseballPreviewXML.dtd create mode 100644 schemagen/WorldBaseballPreviewXML/WorldBaseballPreviewXML.xml create mode 100644 test/xml/gameinfo/WorldBaseballPreviewXML.dtd create mode 100644 test/xml/gameinfo/WorldBaseballPreviewXML.xml diff --git a/doc/man1/htsn-import.1 b/doc/man1/htsn-import.1 index b22eeac..d31634f 100644 --- a/doc/man1/htsn-import.1 +++ b/doc/man1/htsn-import.1 @@ -102,6 +102,8 @@ nflpreviewxml.dtd nhlpreviewxml.dtd .IP \[bu] recapxml.dtd +.IP \[bu] +WorldBaseballPreviewXML.dtd .RE .P The GameInfo and SportsInfo types do not have their own top-level diff --git a/schema/WorldBaseballPreviewXML.dtd b/schema/WorldBaseballPreviewXML.dtd new file mode 100644 index 0000000..a4d44e7 --- /dev/null +++ b/schema/WorldBaseballPreviewXML.dtd @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/schemagen/WorldBaseballPreviewXML/WorldBaseballPreviewXML.xml b/schemagen/WorldBaseballPreviewXML/WorldBaseballPreviewXML.xml new file mode 100644 index 0000000..f42499f --- /dev/null +++ b/schemagen/WorldBaseballPreviewXML/WorldBaseballPreviewXML.xml @@ -0,0 +1,97 @@ + + + +4019568 +FEV!PREVIEW-KOR-TPE +3 +3 +Previews +WBC + +WBC Game Preview from The Sports Network + +Korea +Chinese Taipei +Korea - Chan Ho Park +Chinese Taipei - Lin Ying-jei + + +

+ (Sports Network) - The much ballyhooed World Baseball Classic gets underway + today with the first of six games in Pool A, as Korea and Chinese Taipei open + the tournament at the Tokyo Dome. + +

+

+ Korea enters the tournament as one of the favorites in its pool thanks to a + roster that includes several Major League ballplayers, most notably + righthander Chan Ho Park. + +

+

+ Park, probably the most famous pitcher in Korean history, has spent 12 years + in the majors and posted a combined 12-8 mark last year with a 5.74 earned run + average with the Texas Rangers and San Diego Padres. + +

+

+ The 32-year-old hurler joins two other big league pitchers on Korea's staff, + as Jae-Weong Seo and Sun Woo (Sunny) Kim join Park in the rotation. + +

+

+ Byung-Hyun Kim, who made a career-high 22 starts for the Rockies last season, + will likley handle the closing duties and has previous international + experience with Korea's Junior National team (1996) and the National Team + (1997-98). + +

+

+ New York Mets' reliever Dae-Sung Koo will also see time. + +

+

+ Korea's offense will be led by first baseman Heep Seop Choi, who has belted 40 + home runs during his four MLB seasons. Also, Seung-Yeop Lee, who will split + time with Choi at first and at designated hitter. hit 56 home runs in his last + Korea Baseball Organization season, is coming off a solid 2005 season in Japan + with Chiba Lotte + +

+

+ Centerfielder Yong-Taik Park will set the table, as well as provide some power + from the top of the lineup for the Korean squad. Last year he led the KBO with + 90 runs scored and 43 stolen bases. + +

+

+ Chinese Taipei, meanwhile, is considered a longshot to make it to Round 2, + especially since two of its top players opted to skip the event. + +

+

+ New York Yankees righthander Chien-Ming Wang, who is returning from a shoulder + injury, decided to pull out and concentrate on the start of the MLB regular + season, while first baseman Chen Chin-feng, who likely would have been the + most productive hitter in the lineup, will miss the event because of a nagging + hand injury. + +

+

+ With Chin-Feng sidelined, Chinese Taipei's power will come from Chia-Hsien + Hsieh, who belted 23 home runs and drove in 74 runs for the Macoto Cobras last + season with the Chinese Professional Baseball League. Infielder Tai-Shan + Chang, who has 154 home runs in a 10-year professional career, could also + supply some pop. + +

+

+ Southpaw Lin Ying-jei is expected to get the starting assignment in the + opener. Last year with the Cobras, Ying-Jei posted a 12-10 mark with a 2.33 + ERA in 212 innings. He also fanned 174 batters. + +

+ + +March 1, 2006, at 12:42 PM ET +
diff --git a/src/TSN/XML/GameInfo.hs b/src/TSN/XML/GameInfo.hs index c6b90e0..43c7cca 100644 --- a/src/TSN/XML/GameInfo.hs +++ b/src/TSN/XML/GameInfo.hs @@ -80,8 +80,7 @@ dtds = "NFL_NCAA_FB_Matchup_XML.dtd", "nhlpreviewxml.dtd", "recapxml.dtd", - "WorldBaseballPreviewXML.dtd" -- missing DTD - ] + "WorldBaseballPreviewXML.dtd" ] -- | XML representation of a GameInfo \. @@ -201,7 +200,8 @@ gameinfo_test_files = "test/xml/gameinfo/nflpreviewxml.xml", "test/xml/gameinfo/NFL_NCAA_FB_Matchup_XML.xml", "test/xml/gameinfo/nhlpreviewxml.xml", - "test/xml/gameinfo/recapxml.xml" ] + "test/xml/gameinfo/recapxml.xml", + "test/xml/gameinfo/WorldBaseballPreviewXML.xml" ] -- | Make sure we can parse every element of 'gameinfo_test_files'. diff --git a/test/xml/gameinfo/WorldBaseballPreviewXML.dtd b/test/xml/gameinfo/WorldBaseballPreviewXML.dtd new file mode 100644 index 0000000..a4d44e7 --- /dev/null +++ b/test/xml/gameinfo/WorldBaseballPreviewXML.dtd @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/gameinfo/WorldBaseballPreviewXML.xml b/test/xml/gameinfo/WorldBaseballPreviewXML.xml new file mode 100644 index 0000000..f42499f --- /dev/null +++ b/test/xml/gameinfo/WorldBaseballPreviewXML.xml @@ -0,0 +1,97 @@ + + + +4019568 +FEV!PREVIEW-KOR-TPE +3 +3 +Previews +WBC + +WBC Game Preview from The Sports Network + +Korea +Chinese Taipei +Korea - Chan Ho Park +Chinese Taipei - Lin Ying-jei + + +

+ (Sports Network) - The much ballyhooed World Baseball Classic gets underway + today with the first of six games in Pool A, as Korea and Chinese Taipei open + the tournament at the Tokyo Dome. + +

+

+ Korea enters the tournament as one of the favorites in its pool thanks to a + roster that includes several Major League ballplayers, most notably + righthander Chan Ho Park. + +

+

+ Park, probably the most famous pitcher in Korean history, has spent 12 years + in the majors and posted a combined 12-8 mark last year with a 5.74 earned run + average with the Texas Rangers and San Diego Padres. + +

+

+ The 32-year-old hurler joins two other big league pitchers on Korea's staff, + as Jae-Weong Seo and Sun Woo (Sunny) Kim join Park in the rotation. + +

+

+ Byung-Hyun Kim, who made a career-high 22 starts for the Rockies last season, + will likley handle the closing duties and has previous international + experience with Korea's Junior National team (1996) and the National Team + (1997-98). + +

+

+ New York Mets' reliever Dae-Sung Koo will also see time. + +

+

+ Korea's offense will be led by first baseman Heep Seop Choi, who has belted 40 + home runs during his four MLB seasons. Also, Seung-Yeop Lee, who will split + time with Choi at first and at designated hitter. hit 56 home runs in his last + Korea Baseball Organization season, is coming off a solid 2005 season in Japan + with Chiba Lotte + +

+

+ Centerfielder Yong-Taik Park will set the table, as well as provide some power + from the top of the lineup for the Korean squad. Last year he led the KBO with + 90 runs scored and 43 stolen bases. + +

+

+ Chinese Taipei, meanwhile, is considered a longshot to make it to Round 2, + especially since two of its top players opted to skip the event. + +

+

+ New York Yankees righthander Chien-Ming Wang, who is returning from a shoulder + injury, decided to pull out and concentrate on the start of the MLB regular + season, while first baseman Chen Chin-feng, who likely would have been the + most productive hitter in the lineup, will miss the event because of a nagging + hand injury. + +

+

+ With Chin-Feng sidelined, Chinese Taipei's power will come from Chia-Hsien + Hsieh, who belted 23 home runs and drove in 74 runs for the Macoto Cobras last + season with the Chinese Professional Baseball League. Infielder Tai-Shan + Chang, who has 154 home runs in a 10-year professional career, could also + supply some pop. + +

+

+ Southpaw Lin Ying-jei is expected to get the starting assignment in the + opener. Last year with the Cobras, Ying-Jei posted a 12-10 mark with a 2.33 + ERA in 212 innings. He also fanned 174 batters. + +

+ + +March 1, 2006, at 12:42 PM ET +
-- 2.44.2