Size: 803
Comment:
|
Size: 1675
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
http://www.w3.org/XML/Schema | * http://www.w3.org/XML/Schema * WikiPedia:XML_Schema * http://www.w3schools.com/schema/default.asp |
Line 12: | Line 14: |
* [http://epro.tistory.com/49 XML scheme] (2% able blog) * [http://webd.somegate.com/topic.php?topic_uid=545 표준데이터 형식을 DTD에서 XSD로] |
* [[http://epro.tistory.com/49|XML scheme]] (2% able blog) * [[http://webd.somegate.com/topic.php?topic_uid=545|표준데이터 형식을 DTD에서 XSD로]] * [[http://web2.gwangju.ac.kr/~leekyum/metadata_p/xml_schema_p.htm|XML Schema - 김이겸교수 홈페이지]] |
Line 15: | Line 18: |
== Example == complexType extension example {{{ <xs:element name="employee" type="fullpersoninfo"/> <xs:complexType name="personinfo"> <xs:sequence> <xs:element name="firstname" type="xs:string"/> <xs:element name="lastname" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="fullpersoninfo"> <xs:complexContent> <xs:extension base="personinfo"> <xs:sequence> <xs:element name="address" type="xs:string"/> <xs:element name="city" type="xs:string"/> <xs:element name="country" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> }}} |
[W3C]에서 표준화하는 [XML] 스키마 정의언어. (XmlSchema라고도 불리운다.) [DTD]를 현대화하려는 노력에서 가시화된것으로 [DTD]에 비해 엄격한 유효성 검사와 데이터 타입정의들을 가능하게 만들었다.
[XSD]가 [DTD]보다 향상된 것 중 가장 중요한 내용은 '정의언어'라는 면이다.
Document type과 data type을 동시에 정의한다. 데이터타입은 숫자, 문자열등을 RegularExpression을 이용하여 dates, times등의 수준까지 매치한다.
관련정보
XML scheme (2% able blog)
Example
complexType extension example
<xs:element name="employee" type="fullpersoninfo"/> <xs:complexType name="personinfo"> <xs:sequence> <xs:element name="firstname" type="xs:string"/> <xs:element name="lastname" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="fullpersoninfo"> <xs:complexContent> <xs:extension base="personinfo"> <xs:sequence> <xs:element name="address" type="xs:string"/> <xs:element name="city" type="xs:string"/> <xs:element name="country" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>