Difference between revisions of "DTr1 URL"

(Automated ADBot page content)
(Automated ADBot page content)
Line 11: Line 11:
 
|-
 
|-
 
|}
 
|}
==Core Schematron Rules CSR==
+
==Core Schematron Rules (CSR)==
 
The following rules are defined in the base core schematrons.
 
The following rules are defined in the base core schematrons.
 
{{ConstraintBox|Rule ID: '''URL'''
 
{{ConstraintBox|Rule ID: '''URL'''
Line 19: Line 19:
 
*{{Error}} dtr1-1-URL: elements of type URL SHALL have a @value attribute.
 
*{{Error}} dtr1-1-URL: elements of type URL SHALL have a @value attribute.
 
*{{Error}} dtr1-2-URL: @value must be a valid URI, e.g. '<value-of select&#061;"iri-to-uri(@value)"/>'.
 
*{{Error}} dtr1-2-URL: @value must be a valid URI, e.g. '<value-of select&#061;"iri-to-uri(@value)"/>'.
 +
*{{Error}} dtr1-6-URL: <value-of select&#061;"$name"/>/@use (<value-of select&#061;"$use"/>) SHALL be distinct
 +
}}
 +
==Additional Strict Schematron Rules (SSR)==
 +
The following rules are defined in the strict mode of core schematrons.
 +
{{ConstraintBox|Constraints
 
*{{Error}} dtr1-4-URL: [RIM-001] <value-of select&#061;"$name"/> SHALL NOT have nullFlavor, if there are other <value-of select&#061;"$name"/> elements which are not null
 
*{{Error}} dtr1-4-URL: [RIM-001] <value-of select&#061;"$name"/> SHALL NOT have nullFlavor, if there are other <value-of select&#061;"$name"/> elements which are not null
 
*{{Error}} dtr1-5-URL: [RIM-002] <value-of select&#061;"$name"/> (<value-of select&#061;"$value"/>) SHALL be distinct
 
*{{Error}} dtr1-5-URL: [RIM-002] <value-of select&#061;"$name"/> (<value-of select&#061;"$value"/>) SHALL be distinct
*{{Error}} dtr1-6-URL: <value-of select&#061;"$name"/>/@use (<value-of select&#061;"$use"/>) SHALL be distinct
 
 
}}
 
}}
==Additional Strict Schematron Rules SSR==
 
The following rules are defined in the strict mode of core schematrons.
 
 
[[Category:DTr1|URL]]
 
[[Category:DTr1|URL]]

Revision as of 17:11, 12 March 2015

URL Universal Resource Locator

Datatype Release 1: URL

Registered Attributes and Child Elements

@Attribute / Element Cardinality Datatype
@value   optional   st
@nullFlavor   optional   cs

Core Schematron Rules (CSR)

The following rules are defined in the base core schematrons.

Check-circle.svg Rule ID: URL

Extends Rule(s): ANY

Constraints

  • Alert.png dtr1-1-URL: elements of type URL SHALL have a @value attribute.
  • Alert.png dtr1-2-URL: @value must be a valid URI, e.g. '<value-of select="iri-to-uri(@value)"/>'.
  • Alert.png dtr1-6-URL: <value-of select="$name"/>/@use (<value-of select="$use"/>) SHALL be distinct

Additional Strict Schematron Rules (SSR)

The following rules are defined in the strict mode of core schematrons.

Check-circle.svg Constraints
  • Alert.png dtr1-4-URL: [RIM-001] <value-of select="$name"/> SHALL NOT have nullFlavor, if there are other <value-of select="$name"/> elements which are not null
  • Alert.png dtr1-5-URL: [RIM-002] <value-of select="$name"/> (<value-of select="$value"/>) SHALL be distinct