The Structure View allows for real-time validation of the structured element content while editing. It discourages the author from violating the constraint rules set by the EDD or XML schema which was earlier possible only while saving or exporting the document. The Structure View is now capable of pointing the constraint error for integer and float data constraints. The content will turn Red indicating that the content does not satisfy the data type constraint.
- Using min/max Inclusive schema constraints an author can define a valid range and data type for an element in an XML file. Alternatively user can add range information for an element in the EDD of a document using Range element in the EDD.
- The author can validate the document and figure out the reason why the element content does not satisfy the data type constraint.
- Using “Element > Validate” Menu FrameMaker would be able to indicate whether the component is outside the specified range or is an invalid data for a component.
- Author will now be able to rectify the error before actually exporting or saving the document.
A small demo on working with the real time Structure View validation while editing an XML document is shown below.
Please let me know your comments and suggestions.
Nakshatra Bhardwaj, FrameMaker QE team