Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Each section shall contain a list of action items of the following format: `<bri

- Corrected three erroneous context-free codes in Table 3:8.3.2.10.2-1 ([#505](https://github.com/IHE/DEV.SDPi/issues/505))
- Clarified referenced standards sections in 2:A and removed ISO prefix from IEEE/ISO standards for referential consistency ([#390](https://github.com/IHE/DEV.SDPi/issues/390))
- Fixed TimeStampVersion.xsd to resolve double nesting of sdpi:Epoch element ([#520](https://github.com/IHE/DEV.SDPi/issues/520)).
- Correction of regular expression for xsd:duration restriction ([#516](https://github.com/IHE/DEV.SDPi/issues/516))

### Editorial Fixes
Expand Down
20 changes: 9 additions & 11 deletions sources/extension-models/timestamp/TimeStampVersion.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,14 @@
<!---->
<!---->
<!--Epochs-->
<xsd:element name="Epochs">
<xsd:element name="Epochs" type="sdpi:EpochsType">
<xsd:annotation>
<xsd:documentation>
An extension to version epochs arising from non-slewing time adjustments.

This extension can be attached to the pm:ClockState/ext:Extension element.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Epoch" type="sdpi:EpochsType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="Version" type="sdpi:EpochVersion" use="required">
<xsd:annotation>
<xsd:documentation>Current epoch version. Implied value is 0.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="EpochsType">
<xsd:annotation>
Expand All @@ -77,6 +67,14 @@
minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="Version"
default="0"
type="sdpi:EpochVersion"
use="optional">
<xsd:annotation>
<xsd:documentation>Current epoch version. Implied value is 0.</xsd:documentation>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just bumped into this. A required field cannot have an implied value. You would need to make the attribute optional and set a default="0".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks David. Updated now.

</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="EpochType">
<xsd:annotation>
Expand Down
Loading