WebSpeed
Developer’s Guide


Statement Escapes

Table 5–11 shows the supported statement escapes.

Table 5–11: Embedded SpeedScript Statement Escapes

Start Tag
Matching
End Tag

Comments
<SCRIPT LANGUAGE = "SpeedScript">
</SCRIPT>
This escape is supported by most authoring tools.
<?WS>
</?WS>
These are WebSpeed-defined tags. The <? sequence is an SGML directive, but some authoring tools might not support it.
<SERVER>
</SERVER>
Navigator Gold supports these tags for server-side JavaScript. WebSpeed supports these tags because, although Navigator Gold also supports a <SCRIPT> tag, this tag does not allow you to specify the language.
<%
%>
These are Microsoft Active Server Pages (ASP) command tags.
<!--WSS
-->
This escape is a WebSpeed-defined HTML comment and is therefore supported by virtually all authoring tools. You might be able to use this escape to place embedded SpeedScript where some authoring tools consider other tags illegal, such as before <HTML> or after </HTML>.

A statement escape can enclose any number of complete SpeedScript statements. The embedded SpeedScript file in escript2.htm generates the same Web page as the example in escript1.htm, but it uses a statement escape instead of the <SCRIPT> tag:

escript2.htm
<HTML>
<HEAD>
<TITLE>My First Embedded SpeedScript File</TITLE>
</HEAD>
<BODY>
<H1>My First Embedded SpeedScript File</H1>

<?WS>
FOR EACH Customer WHERE Name BEGINS "s":
		DISPLAY {&WEBSTREAM} Customer.
END.
</?WS>
<HR>
</BODY>
</HTML> 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095