During the lab, you will be configuring a XML schema predicate mapping to automatically add the cm:effectivity aspect to content with a Troubleshooting DTD.
context.xml.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> </beans>
context.xml file in your favorite editor.
| Property | Type | Mandatory | Description |
|---|---|---|---|
| xmlSchemaFilter | XmlSchemaFilter | Required | A filter for which the bean applies. |
| predicate | QName | Required | The predicate to add when the XML schema filter matches. Use a fully-qualified name with Clark notation as the key of the entry. |
<bean id="samples.xmlSchemaPredicateMapping.troubleshooting" parent="rdf.xmlSchemaPredicateMapping.abstract">
<property name="xmlSchemaFilter" ref="samples.dtd.troubleshooting" />
<property name="predicate" value="{http://www.alfresco.org/model/content/1.0}effectivity" />
</bean>
troubleshooting-sample.dita file and then add it back again.