Data type da miscellaneous da XSD

دیگر فانزایوکا تایپو تایپو سا بولنو، base64Binary، هکسی، فلوتی، دوو پرسیسی، anyURI، anyURI ینا NOTATION سا لایفارا.

بولنو تایپو تایپ (Boolean Data Type)

بولنو دا سادارا دا ساجا true ینا false ینا دا سادارا.

بایکا سکیمو دا بولنو دا یینفارماسیونو دا ساننو:

<xs:attribute name="disabled" type="xs:boolean"/>

دوکومنتو دا عناصر نا تانوو دا سا ییوو دا:

<prize disabled="true">999</prize>

تسویق:داریوو بولنو true、false、1 (true دا سادارا) 0 (false دا سادارا) سا لایفارا.

باینری تایپو تایپو (Binary Data Types)

باینری تایپو تایپو دا ساجا باینری فورماتو دا سادارا.

نوما دا ساجا باینری تایپو تایپو سا لایفارا:

  • base64Binary (باینری دا Base64)
  • hexBinary (باینری دا 16-یاشا)

بایکا سکیمو دا hexBinary دا یینفارماسیونو دا ساننو:

<xs:element name="blobsrc" type="xs:hexBinary"/>

AnyURI تایپو تایپ (AnyURI Data Type)

anyURI تایپو تایپو دا ساجا URI دا سادارا.

بایکا سکیمو دا anyURI دا یینفارماسیونو دا ساننو:

<xs:attribute name="src" type="xs:anyURI"/>

دوکومنتو دا عناصر نا تانوو دا سا ییوو دا:

<pic src="http://www.codew3c.com/images/smiley.gif" />

تسویق:کوکوURI دا ساجا، %20 ساجا لایفارا.

فانزایوکا تایپو تایپ (Miscellaneous Data Types)

Name Description
anyURI  
base64Binary  
boolean  
double  
float  
hexBinary  
NOTATION  
QName  

Restriction on miscellaneous data types

Restrictions that can be used with miscellaneous data types:

  • enumeration (Boolean data type cannot use this constraint*)
  • length (Boolean data type cannot use this constraint)
  • maxLength (Boolean data type cannot use this constraint)
  • minLength (Boolean data type cannot use this constraint)
  • pattern
  • whiteSpace

*Translator's note:Constraint kai constraint.