cancel
Showing results for 
Search instead for 
Did you mean: 

dymanyc enumeration for xsd

nicola_raglia
Champ in-the-making
Champ in-the-making
Hello,
I've got a question: I have to create a <xs:simpleType > with an enumeration dynamic.

For example:

<xs:simpleType name="channel">
      <xs:restriction base="xs:normalizedString">
         <xs:enumeration value="ppp" />
         <xs:enumeration value="ddd" />
         <xs:enumeration value="eee" />
            <xs:enumeration value="fff" />
      </xs:restriction>
   </xs:simpleType>

I want that the enumeration value,ppp, ddd, eee  are dynamic and not set in the xsd because their value(ppp,ddd,eee) could change during the time. Is possible ?
Thank a lot.
Nicola.
1 REPLY 1

ben
Champ in-the-making
Champ in-the-making
Hi Nicola,

You can include a web script within your XSD, which could retun your dynamic element, as long as it is returns a valid schema using:

<xs:include schemaLocation=" webscript://path/of/ws/?s={storeid}&ticket={ticket} " />

Regards, Ben.