2013-01-11 2 views
1

나는XS : attributeGroup 값 제한

<xs:attributeGroup name="PropertyAttributes"> 
    <xs:attribute name="IsAttached" type="xs:boolean" default="false" /> 
    <xs:attribute name="IsStatic" type="xs:boolean" default="false" /> 
    </xs:attributeGroup> 

내가이 사건을 제한하려면이 XSD를 가지고 IsAttached = 사실 IsStatic = 사실

어떻게 이렇게 할 수 있습니까?

답변

1

XSD 1.0에서는이 문제를 해결할 수 없습니다. 당신은 XSD 1.1 (Xerces만이 유일하게 자유롭게 사용할 수있는 프로세서이며 베타 상태 임) 또는 XSD 1.0 모델을 Schematron으로 확장해야합니다 (XSLT 1.0/2.0 기반, 당신은 옵션이 많습니다)).