cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How change enumCodeType Pattern in Item.xsd file?

Former Member
0 Kudos
1,238

I have created an enumtype in the Item.xml file, like this:

     <enumtype generate="true" code="ColcilEnum" autocreate="true" dynamic="true">
         <value code="V"/>
         <value code="01"/>
                     <value code="N/A"/>
                     <value code="4X6"/>
     </enumtype>

But it gives the following error:

"cvc-pattern-valid: Value 'N/A' is not facet-valid with respect to pattern ([a-zA-Z_])+([a-z_A-Z$0-9])*."

I tried to change the item.xsd file, but when execute ant clean all comand, the file return to original code:

           <xs:simpleType name="enumCodeType">
                          <xs:annotation>
                                        <xs:documentation>Configures the code of an enumeration value element. 
                                         Must start with a letter or underscore.</xs:documentation>
                          </xs:annotation>
                          <xs:restriction base="xs:normalizedString" >
                                        <xs:pattern value="([a-zA-Z_])+([a-z_A-Z$0-9])*"/>
                          </xs:restriction>
           </xs:simpleType>
 

Is there any way to change this pattern?.

Thanks, Regards, Aldo

View Entire Topic
Former Member
0 Kudos

Thank You!!

geffchang
Active Contributor
0 Kudos

If any of the answers have been useful / helpful for you, please upvote and accept. :)