The <Implements>
tag for any Server Scriptlets you can write today begins like this:
<IMPLEMENTS TYPE=Automation ID=automation>
:
</IMPLEMENTS>
where you indicate the type of the interface you're implementing, as well as some specific information. The ID
attribute holds the same level of importance as it does in DHTML code. It allows you to reference the interface handler as an object. As has already been mentioned, the current version of the Server Scriptlets Package only supports the automation interface. In this case, the additional information you need to provide are the exposed methods and properties. The following is the syntax layout:
<IMPLEMENTS TYPE=COMhandlerName ID=internalHandlerName>
<PROPERTY name="name"/>
<METHOD name="name"/>
</IMPLEMENTS>
The <Implements>
tag accepts child tags named <PROPERTY>
and <METHOD>
. Both follow a special XML-specific syntax that doesn't require the end-tag. Instead of:
<PROPERTY name="Age">
</PROPERTY>
you can write it all through a single command
<PROPERTY name="Age"/>
replacing the end-tag with a final /
. You can use this convention only if the tag doesn't contain nested tags.