There is another use of XChars, more related to
formatting. The XChars markup is easily converted to
an ascii version by the software provided (see
XSL and
Java package modules).
Other transformations are possible, HTML is just one of them:
<i>S</i>-adenosyl-<small>L</small>-methionine
(3<i>S</i>)-linalool
XChars is highly customizable. The configuration file can be
tweaked to get this HTML tranlation:
<span class="elem">S</span>-adenosyl-<span class="ster">L</span>-methionine
(3<span class="ster">S</span>)-linalool
and use CSS so that both 'S' can be distinguished on a web page
at a glance.
The scissile bond in peptidase substrates
can be written using its Unicode character, but if the data is
used in a plain ascii text file it would look like
┼
That's not very meaningful. XChars representation is:
<scissile/>
This is one of the empty XML elements in XChars. For the ascii
encoding it would become
-|-
, but on a web page it
would be translated to the unicode entity ┼.
Moreover, the gif encoding allows the symbol to appear exactly
the same in every browser, no matter the font it uses:
<img src="img/scissile.gif"/>