Question
Editor handling of required/fixed schema attributes
Hello,
I was wondering if anyone here can shed some light on why the default behaviour of AE appears a little strange when creating new XML instances using an schema with fixed/required attributes.
<xs:attribute name="tipo" type="tf:tipoAttribsNotes" fixed="Fred" use="required" />
Problems being:
- It does not insert them automaticaly when 'insert markup' (like XML Spy or Oxygen!) even though they are the only valid value, and are required for the XML to be valid against the schema.
- The modify attributes menu lists all possible values of the attribute from the schema, instead of the only valid one you can insert in a particular context.
- The only apparent work-around (from support) ‘set writeunspecifiedattrs=fixed’ saves a required attributes populated and valid file ok, but does not refresh so you dont see the result until it is reopened!?
Maybe i'm missing something, but any experiences and resolutions are most appreciated.
Regards
Chris

