我尝试为 IE8 创建一个网络加速器。我原来的 XML 文件是:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
</os:activityAction>
</os:activity>
</os:openServiceDescription>
它工作正常,但是当我尝试添加“预览”功能时,IE8 报告了错误消息:“加速器信息有问题。” 修改后的 XML 文件为:
<?xml version="1.0" encoding="utf-8" ?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
<os:homepageUrl>http://localhost:3090</os:homepageUrl>
<os:display>
<os:name>My web accelerator</os:name>
<os:icon>http://localhost:3090/favicon.ico</os:icon>
</os:display>
<os:activity category="Find">
<os:activityAction context="selection">
<os:execute method="get" action="http://localhost:3090/Store/SearchResults.aspx?Pattern={selection}" />
<os:preview action = "http://localhost:3090/OpenService/Accelerator.aspx" method = "get">
<os:parameter name="q" value="{selection}" type="text" />
</os:preview>
</os:activityAction>
</os:activity>
</os:openServiceDescription>
添加的 XML 片段有什么问题?