Documentation for SportsML/Golf

Version: 0.5
Creator: IPTC
PublicId: -//IPTC//SportsML DTD 0.7//EN

Description

SportsML Plug-in for Golf.

Root elements

Element index

action-golf-other A custom action.
action-golf-shot A swing of the club at the ball resulting in the ball moving.
all-specific-elements A placeholder, to help isolate sport-specific elements.
event-actions-golf A holder for actions specific to golf.
event-metadata-golf Holds event metadata specific to golf.
player-metadata-golf Holds metadata about a golf player.
player-stats-golf Holds statistics particular to the player.
stats-golf-hole Statistics pertinent to a particular hole within a golf round.
stats-golf-round Statistics pertinent to a round within a tournament.
team-metadata-golf Holds metadata about a team (foursome perhaps) playing in the match.
team-stats-golf Holds statistics particular to a team of golf players.
tournament-division-metadata-golf Metadata about a particular division within a golf tournament.
tournament-metadata-golf Holds metadata about a golf tournament.

Element descriptions

action-golf-other

A custom action. For use when none of the pre-build actions apply.

Attributes

Name Description
Type (Declaration) Default
action-source The name of the controlled-vocabulary for the action-type attribute.
CDATA (#IMPLIED )
action-type A selection from a controlled-vocabulary list maintained by the publisher.
CDATA (#IMPLIED )
comment Textual comment about the action.
CDATA (#IMPLIED )
hole Generally an integer, 1 through 18. Could be 19, for a playoff hole.
CDATA (#IMPLIED )
id An XML-specific identifier for the element.
ID (#IMPLIED )
round The round in the tournament.
CDATA (#IMPLIED )
score The total number of shots hit this round.
CDATA (#IMPLIED )
score-under-par The amount of shots under par the player has.
CDATA (#IMPLIED )
time-elapsed The amount of time since the start of the golf game.
CDATA (#IMPLIED )

Parents

event-actions-golf

Content model

EMPTY

action-golf-shot

A swing of the club at the ball resulting in the ball moving. A shot moves progressively moves the ball from the tee towards the hole.

Attributes

Name Description
Type (Declaration) Default
club The club used to make the shot.
CDATA (#IMPLIED )
end-distance How far from the tee the shot was when it landed.
CDATA (#IMPLIED )
hole Generally an integer, 1 through 18. Could be 19, for a playoff hole.
CDATA (#IMPLIED )
id An XML-specific identifier for the element.
ID (#IMPLIED )
landing Where the shot landed. (Controlled vocabulary.)
CDATA (#IMPLIED )
player-idref Pointer to the player that shot.
IDREF (#IMPLIED )
round The round in the tournament.
CDATA (#IMPLIED )
score The total number of shots hit this round.
CDATA (#IMPLIED )
score-under-par The amount of shots under par the player has.
CDATA (#IMPLIED )
shot-distance The distance the shot travelled, in yards.
CDATA (#IMPLIED )
shot-type The type of shot. (Controlled vocabulary.)
CDATA (#IMPLIED )
start-distance How far from the tee the shot was when it started.
CDATA (#IMPLIED )
time-elapsed The amount of time since the start of the golf game.
CDATA (#IMPLIED )

Parents

event-actions-golf

Content model

EMPTY

all-specific-elements

A placeholder, to help isolate sport-specific elements. Just helps the documentation. Not part of SportsML.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )

Parents

Must appear as the root element.

Content model

(event-metadata-golf , event-actions-golf , team-metadata-golf , team-stats-golf , player-metadata-golf , player-stats-golf , tournament-metadata-golf , tournament-division-metadata-golf)

event-actions-golf

A holder for actions specific to golf. Currently holds a golf shot, and a generic golf action element.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )

Parents

all-specific-elements

Content model

(action-golf-shot | action-golf-other)*

event-metadata-golf

Holds event metadata specific to golf. Includes data about the course on which the event is held.

Attributes

Name Description
Type (Declaration) Default
course-par What the par value is for the entire 18 holes of the course.
CDATA (#IMPLIED )
course-yardage How long the course is, in yards.
CDATA (#IMPLIED )
hole Generally an integer, 1 through 18. Could be 19, for a playoff hole.
CDATA (#IMPLIED )
id An XML-specific identifier for the element.
ID (#IMPLIED )
round The round in the tournament.
CDATA (#IMPLIED )
score The total number of shots hit this round.
CDATA (#IMPLIED )
score-under-par The amount of shots under par the player has.
CDATA (#IMPLIED )
time-elapsed The amount of time since the start of the golf game.
CDATA (#IMPLIED )

Parents

all-specific-elements

Content model

EMPTY

player-metadata-golf

Holds metadata about a golf player. Currently only holds the rank of the player.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )
rank How this player ranks among the other competing players.
CDATA (#IMPLIED )

Parents

all-specific-elements

Content model

EMPTY

player-stats-golf

Holds statistics particular to the player. Includes performance statistics during the timespan described in date-coverage-scope attributes.

Attributes

Name Description
Type (Declaration) Default
average Average score of the player.
CDATA (#IMPLIED )
birdies Number of birdies.
CDATA (#IMPLIED )
bunkers Number of bunkers.
CDATA (#IMPLIED )
distance The distance the ball travelled on the shot.
CDATA (#IMPLIED )
drives The number of drives made by the player.
CDATA (#IMPLIED )
eagle-per-holes-frequency Frequency of hitting eagles.
CDATA (#IMPLIED )
eagles Number of eagles.
CDATA (#IMPLIED )
fairways-hit Number of fairways hit.
CDATA (#IMPLIED )
fairways-possible Maximum number of fairways it was possible to hit.
CDATA (#IMPLIED )
finishes-first-place Number of first-place finishes the player had.
CDATA (#IMPLIED )
finishes-second-place Number of second-place finishes the player had.
CDATA (#IMPLIED )
finishes-top-10 Number of finishes the player had in the top ten.
CDATA (#IMPLIED )
greens-hit Number of greens ht.
CDATA (#IMPLIED )
greens-in-regulation-missed Number of greens missed during regulation play.
CDATA (#IMPLIED )
greens-in-regulation-rank Rank of player in terms of the greens-in-regulation statistic.
CDATA (#IMPLIED )
holes-played Number of holes finished.
CDATA (#IMPLIED )
holes-under-par Number of holes finished under par.
CDATA (#IMPLIED )
id An XML-specific identifier for the element.
ID (#IMPLIED )
long-drive Long drive.
CDATA (#IMPLIED )
money Amount of money earned by the player.
CDATA (#IMPLIED )
money-value Money value.
CDATA (#IMPLIED )
percentage Percentage.
CDATA (#IMPLIED )
performance-par-3 The performance of the player on par-3 holes.
CDATA (#IMPLIED )
performance-par-4 The performance of the player on par-4 holes.
CDATA (#IMPLIED )
performance-par-5 The performance of the player on par-5 holes.
CDATA (#IMPLIED )
points Number of points.
CDATA (#IMPLIED )
points-gained Number of points gained.
CDATA (#IMPLIED )
points-lost Number of points lost.
CDATA (#IMPLIED )
rounds How many rounds the player has completed in this particular tournament.
CDATA (#IMPLIED )
saves Number of saves.
CDATA (#IMPLIED )
scoring-adjustment Scoring adjustment.
CDATA (#IMPLIED )
strokes The number of strokes taken by the player.
CDATA (#IMPLIED )
total-birdies Total number of holes completed at one stroke below par.
CDATA (#IMPLIED )
total-driving Total driving distance.
CDATA (#IMPLIED )
total-eagles Total number of holes completed at two strokes below par.
CDATA (#IMPLIED )
total-holes Total number of holes played.
CDATA (#IMPLIED )
total-par-or-less Total number of holes played by the player at par or less than par.
CDATA (#IMPLIED )
total-points Total score of the player.
CDATA (#IMPLIED )
total-putts Total number of putts attempted.
CDATA (#IMPLIED )
total-rounds Total number of rounds played during the current tournament.
CDATA (#IMPLIED )
total-strokes Total number of strokes (or swings) made.
CDATA (#IMPLIED )

Parents

all-specific-elements

Content model

(stats-golf-round?)

stats-golf-hole

Statistics pertinent to a particular hole within a golf round. Includes what score was recorded at that hole, and the par value of the hole.

Attributes

Name Description
Type (Declaration) Default
hole A number, generally from 1 to 18. Alternately, the keyword finished.
CDATA (#IMPLIED )
hole-type The type of hole played. (Controlled vocabulary.)
CDATA (#IMPLIED )
id An XML-specific identifier for the element.
ID (#IMPLIED )
par The par-value for the hole. Number of strokes needed to reach par.
CDATA (#IMPLIED )
score The number of shots it actually took to sink the ball into the hole.
CDATA (#IMPLIED )
score-under-par The number of shots below par that were scored.
CDATA (#IMPLIED )

Parents

stats-golf-round

Content model

EMPTY

stats-golf-round

Statistics pertinent to a round within a tournament. Allows for hole-by-hole breakdowns.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )
round-number The number of the round whose stats are being reported.
CDATA (#IMPLIED )

Parents

player-stats-golf team-stats-golf

Content model

(stats-golf-hole*)

team-metadata-golf

Holds metadata about a team (foursome perhaps) playing in the match. Currently only holds the rank of the team.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )
rank How this team ranks among the other competing teams.
CDATA (#IMPLIED )

Parents

all-specific-elements

Content model

EMPTY

team-stats-golf

Holds statistics particular to a team of golf players. Reserved for future use.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )

Parents

all-specific-elements

Content model

(stats-golf-round?)

tournament-division-metadata-golf

Metadata about a particular division within a golf tournament. Includes information about the course as a whole.

Attributes

Name Description
Type (Declaration) Default
course-par The total par value of all holes.
CDATA (#IMPLIED )
course-yardage How many yards the course is, measured from tees to holes.
CDATA (#IMPLIED )
id An XML-specific identifier for the element.
ID (#IMPLIED )

Parents

all-specific-elements

Content model

EMPTY

tournament-metadata-golf

Holds metadata about a golf tournament. Currently only holds the rank of the team.

Attributes

Name Description
Type (Declaration) Default
id An XML-specific identifier for the element.
ID (#IMPLIED )

Parents

all-specific-elements

Content model

EMPTY
Produced by dtddoc.py, using xmlproc.