ISSUE-101

fractionDigits, minLength and maxLength proposed patterns

State:
OPEN
Product:
Advanced
Raised by:
George Cowe
Opened on:
2006-12-18
Description:
DecimalSimpleTypeFractionDigits
Pattern
.//xs:simpleType/xs:restriction[@base/resolve-QName(.,..) =
xs:QName('xs:decimal') and xs:fractionDigits/@value]/
         (., @base, xs:fractionDigits/(., @value))
Example
         <xs:simpleType name="DecimalSimpleTypeFractionDigits">
            <xs:restriction base="xs:decimal">
               <xs:fractionDigits value="2"/>
            </xs:restriction>
         </xs:simpleType>

RestrictedMaxLength
Pattern
.//xs:simpleType/xs:restriction/xs:maxLength[@value]/(.., ../@base, ., @value)
Example
	<xsd:simpleType name="RestrictedMaxLength">
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="12"/> 
		</xsd:restriction>
	</xsd:simpleType>

RestrictedMinLength
Pattern
.//xs:simpleType/xs:restriction/xs:minLength[@value]/(.., ../@base, ., @value)
Example
	<xsd:simpleType name="RestrictedMinLength">
		<xsd:restriction base="xsd:string">
			<xsd:minLength value="2"/> 
		</xsd:restriction>
	</xsd:simpleType>

Related emails:
  1. ISSUE-101: fractionDigits, minLength and maxLength proposed patterns (from dean+cgi@w3.org on 2006-12-18)
  2. Agenda: XML Schema Patterns for Databinding Telcon 19 December 2006 (from paul.downey@bt.com on 2006-12-19)
  3. Minutes from XML Schema Patterns for Databinding telcon 19 December 2006 (from paul.downey@bt.com on 2006-12-19)

Related notes:

No additional notes.