apply stylesheet Method

From the client application, links a cascading style sheet to a page or to an entire Web site. This method is used to apply a style sheet as a link when no pages are open. Note that FrontPage Server Extensions from Microsoft treats the style sheet as a theme so that the apply_opt parameter determines how to apply the style sheet.

In Microsoft FrontPage, click Style Sheet Links on the Format menu to display the Link Style Sheet dialog box. Click either All pages or Selected pages and then click Add to enter the URL of the style sheet you want to use.

Syntax

method=apply stylesheet:server_extension_version
&service_name=/&link_list=list_of_links&url_list=list_of_URLs
&apply_opt=(web|page[rfi])[&validateWelcomeNames=(true|false)]

Parameters

service name

link_list

url_list

apply_opt

validateWelcomeNames

Decoded

POST /site_url/_vti_bin/_vti_aut/author.dll HTTP/1.0
.
.
.
method=apply+stylesheet:6.0.n.nnnn
&service_name=/
&apply_opt=web,rfi
&link_list=[file:///local_drive:/full_path/file_name.css;
http://host_name/site_name/directory_name/file_name.css]
&url_list=[_borders/top.xml;_borders/left.xml;_borders/bottom.xml;pr02.xml]

Return Value

Success

message=successfully applied style sheet links

Error

Returns an error message in standard format. For more information, see Error Message Format for FrontPage 2002 Server Extensions from Microsoft.

May also return the following error message:

message=could not apply style sheet links

Sample Return Code