1

Topic: How to set a certain format of date in xsd to the circuit

Hello! There is xsd a circuit but a date format is deduced not in that type what it is required 2017-02-17 and it is necessary at 2/17/2017 how to make?
xsd the circuit:
<xs:schema attributeFormDefault = "unqualified" elementFormDefault = "qualified" xmlns:xs = "http://www.w3.org/2001/XMLSchema">
<xs:element name = "FajlPFR">
<xs:complexType>
<xs:sequence>
<xs:element type = "xs:string" name = "ImjaFajla"/>
<xs:element type = "xs:date" name = "DataFormirovanija"/>
<xs:element type = "xs:float" name = "VersijaFormata"/>
<xs:element type = "xs:string" name = "TipFajla"/>
<xs:element type = "xs:string" name = "KolichestvoZapisejVfajle"/>
<xs:element name = "Validatsija_Zapros" maxOccurs = "unbounded" minOccurs = "0">
<xs:complexType>
<xs:sequence>
<xs:element type = "xs:string" name = "IdentifikatorZaprosa"/>
<xs:element type = "xs:string" name = ""/>
<xs:element type = "xs:string" name = "Surname"/>
<xs:element type = "xs:string" name = "Name"/>
<xs:element type = "xs:string" name = "Patronymic"/>
<xs:element type = "xs:date" name = "DataRozhdenija"/>
<xs:element type = "xs:string" name = "Floor"/>
<xs:element name = "Deposits">
<xs:complexType>
<xs:sequence>
<xs:element type = "xs:string" name = "GorodRozhdenija"/>
<xs:element type = "xs:byte" name = "RajonRozhdenija"/>
<xs:element type = "xs:string" name = "OblastRozhdenija"/>
<xs:element type = "xs:string" name = "StranaRozhdenija"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

2

Re: How to set a certain format of date in xsd to the circuit

Here found the answer at this forum but I do not know where correctly this construction to interpose?
<xs:simpleType name = "date_type">
<xs:restriction base = "xs:date">
<xs:pattern value = ' [0-9] {2}. [0-9] {2}. [0-9] {4} [0. 9] {2}: [0. 9] {2}: [0. 9] {2} '/>
</xs:restriction>
</xs:simpleType>

3

Re: How to set a certain format of date in xsd to the circuit

Serg73 wrote:

xsd the circuit but a date format is deduced not in that type what it is required

Distinguish storage and data mapping. XML it is intended for DATA STORAGE. XSD the circuit describes storage structure. And for display other mechanisms are used. For example, XSL

4

Re: How to set a certain format of date in xsd to the circuit

[quote = _ Vasilisk _] it is passed...
Distinguish storage and data mapping. XML it is intended for DATA STORAGE. XSD the circuit describes storage structure. And for display other mechanisms are used. For example, XSL

Yes incorrectly expressed the file from  in a format xml on a basis xsd circuits is preempted