Atomik Xport SE: Reference > Chapter 6 Working with Rulesets > 6.5 Rules tab << >>

6.5.3 Additional rule options

No Other Style

The ‘no other style’ checkbox in the Atomik Xport ruleset allows for changes in character style to be identified, even when their surrounding paragraph style has not changed.

An example of where this would be useful would be a newspaper or magazine ‘News In Brief’ section : where all the text is styled using the same paragraph style, but headings are picked out in a character style.

For example, with this text:

This is a heading and this is the rest of the body copy which goes with it.

This is another heading and this is more body copy.

Atomik Xport would normally return the result:

<Heading>This is a heading</Heading>
<Body>and this is the rest of the body copy which goes with it. This is another heading and this is more body copy.</Body>

Whereas, if the ‘No Other Style’ checkbox in the ruleset had been checked, this would be output as:

<Heading>This is a heading</Heading>
<Body>and this is the rest of the body copy which goes with it.</Body> </Story>
<Heading>This is another heading</Heading>
<Body> and this is more body copy.</Body>

The reasoning for this is simply that when Atomik Xport encounters the second heading, because it’s already in the same paragraph style as the body copy, this text matches the same rule as is applied to the body copy. So Atomik Xport will simply append the new heading and it’s following body copy to the end of the existing body element.

Atomik Xport will normally attempt to continue with the existing element so long as the text will match the rules for the current element; and only creates a new element if it finds that the text does not obey these rules. Checking the ‘No Other Style’ checkbox will change this behaviour and consider rules for all sibling elements every time a style change is encountered, even when the current text could still be matched to the current element.

New Box - New Element

When Atomik Xport is processing text, if it finds identically styled text in separate boxes which are extracted sequentially, then it will consider the contents of all of these boxes to be part of the same element.

Imagine the picture above being extracted by Atomik Xport : where the text labels are all separate pieces of text in separate boxes. The XML export you would get from Xport 3.x would be something like:

<Image imgName=“laptop.jpg”>

This is not usually a desirable manner of exporting the content. The Atomik Xport 4 ruleset has a new control : “New Box - New Element” - which does exactly what it says: when Xport is extracting content from the page, whenever subsequent boxes with identical content are extracted, it will create a new element to contain that content, rather than continuing to place the content in the current element; for example:

<Image imgName=“laptop.jpg”>

N.B. When using the ‘New Box - New Element’ setting on rules, this functionality will apply to all rules mapped to this element; you cannot specify that different rules for the same element can use different settings for this function.

New Paragraph - New Element

By default Atomik Xport will extract consecutive paragraphs of identicallly styled text to a single element. But by ticking the New-Paragraph - New Element checkbox, Atomik Xport will create a new element for every subsequent paragraph to which the same rule applied. This is useful, for instance when extracting lists. For example in extracting the following typeset content:


• Luxury hotel

• Wide range of leisure and dining facilities

• Unique hosted wine hour

• Complimentary spa

By mapping the list style to the an element (in the example below, <li>, and choosing New Element - New Paragraph, the individual items are successfully split into separate elements:

<li>• Luxury hotel</li>
<li>• Wide range of leisure and dining facilities</li>
<li>• Unique hosted wine hour</li>
<li>• Complimentary spa</li>

Deleting a Rule

Rules can be added and deleted from a ruleset as often as required. To delete a rule in the ruleset

  1. 1 Select the DTD Element for which you wish to delete the rule
  2. 2 Select the rule you would like to delete from the list of rules for the specified DTD Element
  3. 3 Click the ‘Delete Rule’ button