Natural Web I/O Interface Version 1.1.4 (Server)
 —  Natural Web I/O Interface  —

Modifying the Field Attributes (J2EE only)

The information in this document applies only to a J2EE server.

In the Natural Web I/O Interface client and in Natural for Ajax, the rendering of several Natural field attributes is controlled by an XSLT file.

The following XSLT files are available in the <installdir>/WEB-INF directory:

The information in this document applies to both XSLT files. The XSLT files are only read once when the server is started. Therefore, when you make changes to these files, you have to restart the server so that your changes become effective.

This document covers the following topics:


Setting the Underline and Blinking Attributes

The field attributes for underlined and blinking text are set in the following section of the XSLT file:

<!-- Set underline and blinking attributes    --> 
<xsl:variable name="TextDecoStyle">
  <xsl:choose>
      <xsl:when test="@underline='True'">text-decoration:underline;</xsl:when>
      <xsl:when test="@blinking='True'">text-decoration:blink;</xsl:when>
      <xsl:otherwise>text-decoration:normal;</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

The field attribute for blinking text is not supported by the Internet Explorer.

Top of page

Setting the Cursive/Italic Attribute

The field attribute for cursive/italic text is set in the following section of the XSLT file:

<!-- Set cursive attribute    -->
<xsl:variable name="FontStyle">
  <xsl:choose>
      <xsl:when test="@italic='True'">font-style:italic;</xsl:when>
      <xsl:otherwise>font-style:normal;</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

Top of page

Setting the Intensified Attribute

The field attribute for intensified text is set in the following section of the XSLT file:

<!-- Set intensified attribute - draw text as bold    -->
<xsl:variable name="FontWeight">
  <xsl:choose>
      <xsl:when test="@intensified='True'">font-weight:bolder</xsl:when>
      <xsl:otherwise>font-weight:normal;</xsl:otherwise>
  </xsl:choose>
</xsl:variable>

Top of page