Restrict word list in XML schema

前端 未结 3 1982
旧巷少年郎
旧巷少年郎 2021-01-13 11:31

I\'m writing an XML schema and need to prevent the text of an element from matching certain values. (Eg. the variableName element cannot match \'int\', \'byte\', \'string\'

3条回答
  •  旧巷少年郎
    2021-01-13 12:16

    Does it have to be W3C Schema (aka "xml schema")? Or would a standard alternative like RelaxNG work? I may be wrong but I thought it had a few impovements on combining restrictions, including ability to do intersections.

提交回复
热议问题