
26 Oct
2007
26 Oct
'07
10:32 a.m.
Hello, The correct namespace for XML Schema instances is "http://www.w3.org/2001/XMLSchema-instance". Does it work with <ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/> instead of what you used, that is: <ns prefix="xsi" uri="http://www.w3.org/2000/10/XMLSchema-instance"/> ? Regards, Sorin Giuseppe Italiano wrote:
Hi, I've this situation :
file.xml:
<effectiveTime xsi:type="PIVL_TS" operator="A">
file.sch:
<assert test="child::cda:effectiveTime[position()=1]/@xsi:type='IVL_TS'">
error
</assert>
Testing with the other attribute (operator) works. I've defined in file.sch:
<ns prefix="xsi" uri="http://www.w3.org/2000/10/XMLSchema-instance"/>
How can I bind xsi:type attribute?
Thanks in advance, bye