Custom validation 2006-09-20 - By Kar, Swayambhuba
My requirement is to validate a XSD schema definition against a profile of W3C schema. i.e there are restrictions around if certain elements in W3C schema definition language can appear in the schema definition.
For example, I don't want to allow xs:redfine in the schema definition and I should be able to detect that while the schema is being parsed.
Any pointers on how to go about doing this?
- Swayam
Hewlett Packard,14475 N.E. 24th Street,Bellevue, Washington,United States,98007,425-401-6029
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft -com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1= "urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC -html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--> </head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>My requirement is to validate a XSD schema definition against a profile of W3C schema. i.e there are restrictions around if certain elements in W3C schema definition language can appear in the schema definition.<o:p></o :p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>For example, I don’t want to allow xs:redfine in the schema definition and I should be able to detect that while the schema is being parsed.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Any pointers on how to go about doing this?<o:p></o:p></span ></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p><font size=2 color=blue face="Times New Roman"><span style='font-size:10.0pt; color:blue'>-<i><span style='font-style:italic'> Swayam</span></i><o:p></o:p>< /span></font></p>
<p><font size=2 color=blue face="Times New Roman"><span style='font-size:10.0pt; color:blue'>Hewlett Packard,<st1:address w:st="on"><st1:Street w:st="on">14475 N.E. 24th Street</st1:Street>,<st1:City w:st="on">Bellevue</st1:City>, <st1 :State w:st="on">Washington</st1:State>,<st1:country-region w:st="on">United States< /st1:country-region></st1:address>,98007,425-401-6029</span></font><font size=2 color=blue><span style='font-size:10.0pt;color:blue'><o:p></o:p></span>< /font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
|
|