simpletype

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

我与影子孤独终老i 提交于 2020-01-13 09:50:09
问题 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:restriction base="UTCTimestamp"> <xs:simpleType> what I want it to become: <xs:simpleType name="LastUpdateTime_t"> <xs:restriction base="xs:string"> <xs:simpleType> What I have

Where to declare a simpleType so that it can be used in several elemets in the same XSD?

北城余情 提交于 2019-12-21 06:23:13
问题 Now I have an XSD file (e.g. FOO_SCHEMA.xsd) that looks something like this: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="FOO"> <xs:annotation> <xs:documentation>Comment</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="BAR1" type="xs:string" /> <xs:element name="BAR2" type="xs:string" /> <xs:element name="BAR3" type="xs:string" /> <xs:element name="BAR4" type="xs

Where to declare a simpleType so that it can be used in several elemets in the same XSD?

拥有回忆 提交于 2019-12-21 06:23:06
问题 Now I have an XSD file (e.g. FOO_SCHEMA.xsd) that looks something like this: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="FOO"> <xs:annotation> <xs:documentation>Comment</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="BAR1" type="xs:string" /> <xs:element name="BAR2" type="xs:string" /> <xs:element name="BAR3" type="xs:string" /> <xs:element name="BAR4" type="xs

Error: Must refer to an existing simple or complex type

喜欢而已 提交于 2019-12-13 02:00:56
问题 I'm working in Altova and I'm creating an XSD file for my XML file and my code does not validate. I get the error: Must refer to an existing simple or complex type and I don't know why, because I've given a simpletype to the element name titel . Does anyone know what I'm doing wrong? P.S. Don't mind the values within the tags. This is the XSD file: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3schools.com CDS.xsd" xmlns:ns1="http://www.w3schools.com"

XML Schema Case Insensitive Enumeration of Simple Type String

痴心易碎 提交于 2019-12-09 08:07:26
问题 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 problem is that I get no enumeration values. I will not get the nice intellesense when using Visual Studio to write my XML. The following will give me enumerations but

Where to declare a simpleType so that it can be used in several elemets in the same XSD?

穿精又带淫゛_ 提交于 2019-12-03 18:02:20
Now I have an XSD file (e.g. FOO_SCHEMA.xsd) that looks something like this: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="FOO"> <xs:annotation> <xs:documentation>Comment</xs:documentation> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="BAR1" type="xs:string" /> <xs:element name="BAR2" type="xs:string" /> <xs:element name="BAR3" type="xs:string" /> <xs:element name="BAR4" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> I want to modify two of the

XML Schema Case Insensitive Enumeration of Simple Type String

安稳与你 提交于 2019-12-03 10:20:30
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 problem is that I get no enumeration values. I will not get the nice intellesense when using Visual Studio to write my XML. The following will give me enumerations but it is case sensitive. <xs:simpleType name="setDigitalPointType"> <xs:restriction base="xs:string"> <xs