simpletype

XML Schema Case Insensitive Enumeration of Simple Type String

I am in need of a case insensitive string enumeration type in my XML schema (.xsd) file. I can get case insensitive by doing the following. <xs:simpleType name="setDigitalPointType"> <xs:restriction base="xs:string"> <xs:pattern value="[Oo][Nn]" /> <xs:pattern value="[Oo][Ff][Ff]" /> </xs:restriction> </xs:simpleType> The only p...

Is it possible to generate an xml for an xsd simple type?

Hi, I've got the following simple type coming from a Corba IDL translated to xsd: <xs:simpleType name="fooType" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:restriction base="xs:string"> <xs:enumeration value="bar" /> <xs:enumeration value="baz" /> </xs:restriction> </xs:simpleType> The problem I'm facing is ...

XSD: How to redefine the data type of a simpleType eg. from xs:string to xs:integer

I am trying to extend and tailor an external xsd schema (of the fixml standard). I need to change the data type of some of the elements, without touching the original schema, but by redefining it; but have been finding it exceedingly cumbersome. What exists: fields-base.xsd <xs:simpleType name="LastUpdateTime_t"> <xs:restr...

XML Schema: How to specify an attribute with a custom 'simpleType' type?

In my XML schema definition, I'm trying to restrict the value of an attribute to be an integer between 0 and 100. With reference to the sample schema below, I want attribute 'attr' on element 'root' to have this restriction. To achieve this I define a simpleType 'Percentage' and set this as the 'type' of 'attr'. However, my XML schema ...