代码之家  ›  专栏  ›  技术社区  ›  Miserable Variable

忽略xs:unique中的大小写?

xml
  •  3
  • Miserable Variable  · 技术社区  · 16 年前

    可以使用吗 xs:unique 忽略大小写,即将两个仅在大小写上不同的值标记为重复值?

    1 回复  |  直到 13 年前
        1
  •  1
  •   CloudyMarble    12 年前

    不,不是,看看MSDN documentation

    xsd:唯一元素

    指定属性或元素值(或 范围该值必须是唯一的或为零。

    在…上 another Microsoft site(Performance Counters Schema) 它说 间接地 以下代码部分中的值 :

    <xs:unique name="uniqueCounterName">
       <xs:annotation>
          <xs:documentation>
             Counter Name must be unique within the Counter Set. The name is
             case-sensitive.
           </xs:documentation>
       </xs:annotation>
       <xs:selector xpath="./man:counter"/>
       <xs:field xpath="@name"/>
    </xs:unique>