大家好, 本来我有这样的代码: <attribute name="id" use="required"> <simpleType> <restriction base="ID"/> </simpleType> </attribute> 与ID为基础,我只能输入有效的名称(NCName)作为值。 (如id01) 有没有办法在XML Schema中的字符串添加独特的限制,这样我就可以插入无效的值不符合有效的名称吗? (例如:01id)
<attribute name="id" use="required"> <simpleType> <restriction base="ID"/> </simpleType> </attribute>