xsl-list
[Top] [All Lists]

Re: retaining "xml:" prefix on attribute name

2003-10-29 17:29:15
On Wed, 29 Oct 2003, David Carlisle wrote:

Given that html does not use namespaces and does not have an element
called grammar, this will always be difficult.
Why don't you want to use the xml output method, as clearly the result
is never going to be html.

Thanks.

The result is actually going to be html.  The grammar tag is a
SALT (Speech Application Language Tags) tag embedded into html.
SALT give webpages the ability to send and receive speech input.

The html document should have the following form.

Best Regards,
Saverio

--

<HM xmlns:SALT="http://www.saltforum.org/2002/SALT";>
<head>
<meta http-equiv="Content-Type" Content="text/salt+html; charset=Windows-1252"/>
<object id="SpeechTags" classid="clsid:33cbfc53-a7de-491a-90f3-0e782a7e347a" 
viewastext="" width="0" height="0"/>
</head>
<?import namespace="SALT" implementation="#SpeechTags"?>
<body>
<SALT:listen id="TestReco" onsilence="HandleOnSilence()"
onreco="HandleOnReco()" onnoreco="HandleOnNoReco()"
onerror="HandleOnError()">
<SALT:param 
name="server">http://localhost/speechserverweb/lobby.asmx</SALT:param>
<SALT:grammar id="gram1" name="gram1">
<grammar xmlns="http://www.w3.org/2001/06/grammar"; version="1.0" 
xml:lang="en-US" root="root">
    grammar goes here
</grammar>
</SALT:grammar>
</SALT:listen>
<SALT:prompt id="TestPrompt" onerror="HandlePromptOnError()" 
onComplete="HandlePromptOnComplete()"></SALT:prompt>
</body>
</html>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list