[xsd-users] about xsd

Chang Chen chenchang19760717 at yahoo.com
Fri Nov 11 01:16:46 EST 2005


       Clean  Clean  DocumentEmail      false  false  false                        MicrosoftInternetExplorer4    /* Style Definitions */  table.MsoNormalTable	{mso-style-name:"Table Normal";	mso-tstyle-rowband-size:0;	mso-tstyle-colband-size:0;	mso-style-noshow:yes;	mso-style-parent:"";	mso-padding-alt:0in 5.4pt 0in 5.4pt;	mso-para-margin:0in;	mso-para-margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:10.0pt;	font-family:"Times New Roman";	mso-ansi-language:#0400;	mso-fareast-language:#0400;	mso-bidi-language:#0400;}
Hi 

I am trying xsd, how does xsd support constraint, for example:

 

1) Pattern

  <xsd:simpleTypename="SKU">

   <xsd:restrictionbase="xsd:string">

      <xsd:patternvalue="\d{3}-[A-Z]{2}"/>

   </xsd:restriction>

  </xsd:simpleType>

 

I found the generated code do not judge whether the inputstring match or mismatch pattern.

 

2) Date, In your library example, theborn of author is xsd::date. I still can input anystring, such as &#8220;XXXX&#8221;.

 

How can I add validate function?

 

Thanks 

Chang

 

 

 


		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codesynthesis.com/pipermail/xsd-users/attachments/20051110/2ef68564/attachment.htm


More information about the xsd-users mailing list