- How to define your own XML schema?
- How to configure the XML processor?
- How to add custom actions and tabs to Smart Document Pane?
- How to configure callback handler?
- How to configure Schematron content validation rules?
- How to configure track-changes content validation rules?
- How to configure content validation rules?
How to configure track-changes content validation rules?
The Track Changes Content Validation Rules Sample provides validation for the presence of tracked changes inside the document.
Configuration
To configure the Track Changes Content Validation Rules Sample, follow the steps mentioned below:
- Copy the following files to the Quark XML Author installation folder, e.g. “C:\Program Files (x86)\Quark\Quark XML Author”
- Quark.CMSAdapters.Samples.XA.ContentValidation.TrackChanges.dll
- Quark.CMSAdapters.Samples.XA.ContentValidation.TrackChanges.pdb
- Add the highlighted EIs below to the [Language Folder]/AppConfig/AppConfig-ext/MethodInfo_ext.xml
<Method id="TrackChangesValidationRule" assembly="Quark.CMSAdapters.Samples.XA.ContentValidation.TrackChanges" class="Quark.CMSAdapters.Samples.XA.ContentValidation.TrackChanges.ExtensibilityMethods" method="TrackChangesValidationRule"> <Argument type="XomRoot"/> <Argument type="Tokens"> <Token>>xpath=//*[local-name()='delText']|//*[local-name()='insText']</Token> </Argument> </Method> <Method id="TrackChangesValidationRuleInfo" assembly="Quark.CMSAdapters.Samples.XA.ContentValidation.TrackChanges" class="Quark.CMSAdapters.Samples.XA.ContentValidation.TrackChanges.ExtensibilityMethods" method="TrackChangesValidationRuleInfo" />
- ContentValidationRules/RuleSet/Rule configuration section. The sample snippet below only demonstrates configuration for the SAVE trigger, the same can be done for OUTPUT and EXPORT triggers as well.
<ContentValidationRules> <RuleSet componentRoot="topic" productLine="busdoc"> <Rule id="SaveRules" trigger="SAVE" condition="" policy="PROHIBIT" externalMethodIds="TrackChangesValidationRule"/> </RuleSet> </ContentValidationRules>
- If the sample is configured with Quark Publishing Platform, you could additionally configure the condition for the rule to be triggered on a specific workflow and status. In that case the appropriate check-in or output evaluation policy also needs to be set on the workflow/status