1
有人知道为什么以下方法无效吗?该XSD是使用Xerces验证包含单引号的XSD 1.1声明测试
<xs:element name="myElement">
<xs:complexType>
<xs:complexContent>
<xs:extension base="myElementType">
<xs:assert test="firstname = 'George' and lastName = 'Mc'Falrland'" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
当我使用单引号'
实体错误命中...
感谢
谢谢。这比我所做的要好很多 “firstname = " George " and lastName ='Mc ' Falrland'” – unicorn
不客气,如果这很有用并且解决了你的问题,你必须接受答案(勾选勾号,已经完成)并提出答案点击上面的灰色三角,提前感谢。 – sergioFC