XLinkExtractor

XLinkExtractor bean attributes

An XLinkExtractor is created using a Spring bean with the following attributes:

Attribute Value Description
id User-defined A unique ID for the bean.
parent xlink.rdf.extractor.link.abstract The parent bean.

XLinkExtractor bean properties

The XLinkExtractor takes the following properties:

Property Type Mandatory Description
xmlSchemaFilter XmlSchemaFilter Required A filter for which the bean applies.
linkDefinitions List < LinkDefinition > Required A list of Link Definitions.

XLinkExtractor bean example

<bean id="xhtml.xlink.extractor" parent="xlink.rdf.extractor.link.abstract">
  <property name="xmlSchemaFilter" ref="samples.dtd.xhtml" />
  <property name="linkDefinitions">
    <list>
      <ref bean="xhtml.linkDefinition.href" />
      <ref bean="xhtml.linkDefinition.img" />
    </list>
  </property>
</bean>

Debugging

To debug your XLinkExtractor, add the following entry to your log4j.properties file:

log4j.logger.com.componize.xlink.rdf.pipeline.XLinkExtractorFactory=debug