Upgrading ITP/OnLine Server 3.x applications

Starting with version 3.5.20, ITP/OnLine Server produces new div-oriented output by default. Therefore upgrading from ITP/OnLine Server 3.x can require some extra steps for custom applications. This applies to applications that have been developed based on the old, table-oriented HTML output of the ITP/OnLine forms. For these applications it is necessary to switch back to table-oriented HTML output. For more information on this subject, refer to chapter 3.1 Switching between the old and the new output in the ITP/OnLine Customization Manual.

Switching to table-oriented HTML output

The new div-oriented HTML output is activated because the file xslt\custom\defaults.xsl includes xslt\defaults\div_oriented\defaults.xsl, where it contained xslt\defaults\table_oriented\defaults.xsl in previous versions. The same goes for the output of the ITP/OnLine letterbook. The file xslt\custom\defaults_letterbook.xsl includes xslt\defaults\div_oriented\defaults.xsl, rather than xslt\defaults\table_oriented\defaults.xsl.

Switching back to table-oriented HTML output can be done as follows:

  1. Create a subfolder xslt containing a subfolder custom (if not yet present) in you application folder.
  2. Put the files defaults.xsl and defaults_letterbook.xsl, as found in either one of the examples Sample.zip, Sample2.zip or SecureSample.zip, into the custom subfolder.
  3. Deploy your application as described in Upgrading sample applications by clicking the link Deploy in the Main Configuration page for you application.

default.xsl

The file defaults.xsl has the following content. In this content, the line <xsl:import href="..\defaults\table_oriented\defaults.xsl"/> makes sure that the table-oriented HTML output is activated for your application.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:itp="http://www.aia-itp.com/3.1/interact"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:type="http://example.info/types"
exclude-result-prefixes="xsl itp xforms xsd type">

<!--
Default selection:
==================
Default implementation of the overridable templates.
One may choose different implementations as a basis
for the overrides.
(note: defaults.xsl will define the xsl:output configuration)

The following default implementations are currently available:

Introduced in version 3.5.12:
=============================
table_oriented

Introduced in version 3.5.16:
=============================
div_oriented
-->

<xsl:import href="..\defaults\table_oriented\defaults.xsl"/>

</xsl:stylesheet>

defaults_letterbook.xsl

The file defaults_letterbook.xsl has the following content.
In this content, the line: <xsl:import href="..\defaults\table_oriented\defaults_letterbook.xsl"/> makes sure the table-oriented HTML output is activated for your letter book application.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:itp="http://www.aia-itp.com/3.1/interact"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:type="http://example.info/types"
exclude-result-prefixes="xsl itp xforms xsd type">

<!--
Default selection:
==================
Default implementation of the overridable templates.
One may choose different implementations as a basis
for the overrides.

The following default implementations are currently available:

Introduced in version 3.5.16:
=============================
table_oriented
div_oriented
-->

<xsl:import href="..\defaults\table_oriented\defaults_letterbook.xsl"/>

</xsl:stylesheet>