W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > December 2006

ISSUE-101: fractionDigits, minLength and maxLength proposed patterns

From: Databinding Issue Tracker <dean+cgi@w3.org>
Date: Mon, 18 Dec 2006 16:02:14 +0000 (UTC)
To: public-xsd-databinding@w3.org
Message-Id: <20061218160214.F218313AB5@seamus.w3.org>


ISSUE-101: fractionDigits, minLength and maxLength proposed patterns

http://www.w3.org/2005/06/tracker/databinding/issues/101

Raised by: George Cowe
On product: Advanced

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>
Received on Monday, 18 December 2006 16:02:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 18:20:37 GMT