XML Schemas - Fixed Values
Just working through Beginning XML (3rd Edition), and I've encountered a problem within the Schema chapter.
For those with the book for reference, I'm doing the example from Chapter 5 - Page 187.
Anyway, the example creates a schema which includes a fixed attribute declaration:
<attribute name="version" type="string" fixed="1.0"/>
In my document, I can change the version attribute to any string value without any validation issues (I'm using Toplogi Schemtron btw).
Is this expected behaviour?
I can send example files to anybody that might need them.
Thanks for looking,