Defining a new link extractor

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.

To complete the following task, you will need the following beans:
  1. Open or create a new Spring context file.
  2. Create an XLink extractorbean. Reference an existing XML schema filterto specify the document types for which the extractor applies.
    <bean id="xhtml.xlink.extractor" parent="">
      <property name="xmlSchemaFilter" ref="samples.dtd.xhtml" />
      <property name="linkDefinitions">
          <ref bean="xhtml.linkDefinition.href" />
          <ref bean="xhtml.linkDefinition.img" />
  3. Restart the application server for your changes to take effect.