Bestem selv DocType på en XPages

Via Xsp Properties kan man nemt sætte en DocType for hele databasen.

en du kan også angive en DocType for den enkelte side:

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:this.properties>
      <xp:parameter name="xsp.html.doctype">
           <xp:this.value><![CDATA[HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"]]></xp:this.value>
      </xp:parameter>
   </xp:this.properties>

</xp:view>

Dette kan være nyttigt hvis du ønsker at vise din XPage i en Microft Web Browser object på en form – denne kræver at DocType er Transitional og uden en DTD for ikke at vise en ramme

Sub Postopen(Source As Notesuidocument)
   Dim browserobject As Variant
   Set browserobject=source.GetObject("Microsoft Web Browser")
   browserobject.Navigate("http://lotusscript.dk")
End Sub

Sub Navigateerror(Source As Webbrowser, Pdisp As Variant, Url As Variant, Frame As Variant, Statuscode As Variant, Cancel As Integer)
    cancel=True
End Sub