Forum OpenACS Q&A: Document Type

Collapse
Posted by Richard Hamilton on
In ad_page_contract the document type returned by the page is specified by using the -type switch.

How would I access that infomation and what would it be useful for?

Regards
Richard

Collapse
2: Re: Document Type (response to 1)
Posted by Andrei Popov on
To specify the document type of your page?  i.e. <!DOCTYPE> declaration, like so:

ad_page_contract -type {<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">}

or

ad_page_contract -type {<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">}

Collapse
3: Re: Document Type (response to 1)
Posted by Richard Hamilton on
Ah! I see...THAT kind of type. I understand now thanks.

R.