Working with Inline tags

 

In the HTML and XML specification, pre-defined tags are used to represent text attributes such as bold, italic and underline. The sentence below shows how a statement containing some bold and italic text may be  represented in XML using inline tags such as <bold> and <italic>.

Consider the sentence:

ABrave New World was written by Huxley!

This is represented in XML as follows:

A <bold>Brave New World</bold>was written by <italic>Huxley!</italic>

When ezParse processes this sentence, it will break it into 4 segments, each delimited by a tag boundary:

A

Brave New World

was written by

Huxley!

 
However, it would be rather difficult for a translator to work on these four segments individually. You can programme ezParse to combine segments automatically when processing XML documents. You do this by defining inline tags.

If you define <bold> and <italic> as inline tags, ezParse will process this sentence and store it as one segment. It will display this segment in the Translators Toolbar as follows:-

For more information, see Defining XML Rules.

 

© Copyright Alchemy Software Development 2009

 

Click to goto www.alchemysoftware.ie