<xs:attributeGroup name="baseballActionAttributes">
<xs:attribute name="at-bat-number" use="optional" type="xs:integer"/>
<xs:attribute name="balls" use="optional" type="xs:integer"/>
<xs:attribute name="batter-advance" use="optional" type="xs:integer"/>
<xs:attribute name="batter-side" use="optional" type="bodySideList"/>
<xs:attribute name="earned-runs-scored" use="optional" type="xs:integer"/>
<xs:attribute name="error-type" use="optional" type="QCodeType"/>
<xs:attribute name="hit-by-pitch-type" use="optional">
<xs:simpleType id="hitByPitchType">
<xs:restriction base="xs:string">
<xs:enumeration id="hitByPitchTypeIntentional" value="intentional"/>
<xs:enumeration id="hitByPitchTypeUnintentional" value="unintentional"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="hit-location" use="optional" type="QCodeType"/>
<xs:attribute name="hit-type" use="optional" type="QCodeType"/>
<xs:attribute name="inning-exiting" use="optional" type="QCodeType"/>
<xs:attribute name="inning-half" use="optional">
<xs:simpleType id="inningHalf">
<xs:restriction base="xs:string">
<xs:enumeration id="inningHalfTop" value="top"/>
<xs:enumeration id="inningHalfBottom" value="bottom"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="inning-value" use="optional" type="xs:integer"/>
<xs:attribute name="interference-type" use="optional" type="QCodeType"/>
<xs:attribute name="lead-entering" use="optional" type="QCodeType"/>
<xs:attribute name="lead-exiting" use="optional" type="QCodeType"/>
<xs:attribute name="out-type" use="optional" type="QCodeType">
<xs:annotation>
<xs:documentation>How the batter got out. SportsML vocab uri: http://cv.iptc.org/newscodes/spbblout/</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="outs" use="optional" type="xs:integer"/>
<xs:attribute name="outs-recorded" use="optional" type="xs:integer"/>
<xs:attribute name="pitcher-side" use="optional" type="bodySideList"/>
<xs:attribute name="play-scorekeepers-notation" use="optional" type="xs:string"/>
<xs:attribute name="rbi" use="optional" type="xs:integer"/>
<xs:attribute name="runner-on-first" use="optional" type="xs:boolean"/>
<xs:attribute name="runner-on-first-advance" use="optional" type="QCodeType"/>
<xs:attribute name="runner-on-first-idref" use="optional" type="QCodeType"/>
<xs:attribute name="runner-on-second" use="optional" type="xs:boolean"/>
<xs:attribute name="runner-on-second-advance" use="optional" type="QCodeType"/>
<xs:attribute name="runner-on-second-idref" use="optional" type="QCodeType"/>
<xs:attribute name="runner-on-third" use="optional" type="xs:boolean"/>
<xs:attribute name="runner-on-third-advance" use="optional" type="QCodeType"/>
<xs:attribute name="runner-on-third-idref" use="optional" type="QCodeType"/>
<xs:attribute name="runners-on-base" use="optional" type="xs:boolean"/>
<xs:attribute name="runs-scored" use="optional" type="xs:integer"/>
<xs:attribute name="runs-this-inning-half" use="optional" type="xs:integer"/>
<xs:attribute name="sacrifice-type" use="optional" type="QCodeType"/>
<xs:attribute name="strikeout-type" use="optional">
<xs:simpleType id="strikeoutType">
<xs:restriction base="xs:string">
<xs:enumeration id="strikeoutTypeCalled" value="called"/>
<xs:enumeration id="strikeoutTypeSwinging" value="swinging"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="strikes" use="optional" type="xs:integer"/>
<xs:attribute name="trajectory-coordinates" use="optional" type="QCodeType">
<xs:annotation>
<xs:documentation>The path of the ball. SportsML vocab uri: http://cv.iptc.org/newscodes/spbbltrajectory/</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="velocity" use="optional" type="QCodeType"/>
<xs:attribute name="walk-type" use="optional">
<xs:simpleType id="walkType">
<xs:restriction base="xs:string">
<xs:enumeration id="walkTypeIntentional" value="intentional"/>
<xs:enumeration id="walkTypeUnintentional" value="unintentional"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="ball-location" use="optional" type="gridType"/>
<xs:attribute name="ball-location-horizontal" use="optional" type="QCodeType">
<xs:annotation>
<xs:documentation>Where the pitch was located horizontally. SportsML vocab uri: http://cv.iptc.org/newscodes/spbblballlocationhorizontal/</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ball-location-vertical" use="optional" type="QCodeType">
<xs:annotation>
<xs:documentation>Where the pitch was located vertically. SportsML vocab uri: http://cv.iptc.org/newscodes/spbblballlocationvertical/</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="pitch-type" use="optional" type="QCodeType"/>
<xs:attribute name="pitch-velocity" use="optional" type="xs:decimal"/>
<xs:attribute name="pitch-units" use="optional">
<xs:simpleType id="pitchUnits">
<xs:restriction base="xs:string">
<xs:enumeration id="pitchUnitsKph" value="kph"/>
<xs:enumeration id="pitchUnitsMph" value="mph"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="strike-type" use="optional">
<xs:simpleType id="strikeType">
<xs:restriction base="xs:string">
<xs:enumeration id="strikeTypeCalled" value="called"/>
<xs:enumeration id="strikeTypeSwinging" value="swinging"/>
<xs:enumeration id="strikeTypeFoul" value="foul"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="umpire-call" use="optional">
<xs:annotation>
<xs:documentation>The net result of the pitch.</xs:documentation>
</xs:annotation>
<xs:simpleType id="umpireCall">
<xs:restriction base="xs:string">
<xs:enumeration id="umpireCallBall" value="ball"/>
<xs:enumeration id="umpireCallStrike" value="strike"/>
<xs:enumeration id="umpireCallIn-play" value="in-play"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup> |