2011-05-17 21 views

回答

2

我很肯定你不能使用通式进行验证,但在特定情况下,你可以使用模式匹配匹配的5

<xs:element name="myelement"> 
    <xs:simpleType> 
    <xs:restriction base="xs:string"> 
     <xs:pattern value="[0-9]*[05]{1}"></xs:pattern> 
    </xs:restriction> 
    </xs:simpleType> 
</xs:element> 
+0

感谢倍数,它的工作。 – Itays 2011-05-17 13:17:16