In the following steps you will be creating and/or configuring Spring beans in a Spring context file. A basic knowledge of Spring and the Spring Framework is required.
<bean id="xhtml.linkDefinition.href" parent="xlink.rdf.linkDefinition.abstract">
<property name="role" value="hyperlink" />
<property name="attribute" value="href" />
<property name="attributeMappings">
<map>
<entry key="href" value="{http://www.w3.org/1999/xlink}href" />
</map>
</property>
</bean>
<bean id="xhtml.linkDefinition.img" parent="xlink.rdf.linkDefinition.abstract">
<property name="role" value="image" />
<property name="element" value="{http://www.w3.org/1999/xhtml}img" />
<property name="attribute" value="src" />
<property name="attributeMappings">
<map>
<entry key="alt" value="{http://www.w3.org/1999/xlink}title" />
<entry key="src" value="{http://www.w3.org/1999/xlink}href" />
</map>
</property>
</bean>