Inserting an XHTML 1.0 compliant JavaScript block (xhtml10)

The -j junction option modifies HTML documents returned from junctioned servers by inserting a JavaScript block that sets a junction identification cookie on the browser interpreting the document. The default script is not compliant with XHTML 1.0 specifications.

To configure WebSEAL to insert a junction cookie JavaScript block that is compliant with XHTML 1.0 specifications (and HTML 4.01 specifications), add the -J option with the xhtml10 argument when creating the -j junction. For example (command line fragment):

pdadmin> server task instance-webseald-host create ... -j -J xhtml10 ... 

If we create a junction using the xhtml10 argument, it is best practise to use the inhead argument as well. The inhead argument ensures the placement of the JavaScript within the HTML code is compliant with HTML 4.01 specifications. For example (command line fragment):

See also Inserting the JavaScript block for HTML 4.01 compliance (inhead).

Parent topic: Control on the junction cookie JavaScript block