VoiceXML 2.1 Development Guide Home  |  Frameset Home

  D: Voxeo Porting Guide  |  TOC  |  Fetchhint Modifications  

DTD and Version Changes

Some older VXML platforms, (most notably, the Nuance VWS 1.3 browser), require a strict Document Type Definition, (DTD) to be declared immediately preceding the initial <vxml> declaration. The Motorola browser, (and VWS versions 2.0 +) is more compliant in this regard, so there is actually no need to explicitly declare a DTD at all. In order to keep your code as portable as possible, it is suggested that you do not declare an optional DTD reference within your code at all.

However, if your application needs require you to declare a DTD, then it is suggested that you utilize a server side language to have an include file that declares the DTD and version number on a global scale, for all documents. This way, you only need to change these lines once to make the changes to all documents in the application:

Motorola_Vxml_head.cfm


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vxml
    PUBLIC "-//W3C//DTD VOICEXML 2.0//EN"
    "http://www.w3.org/TR/voicexml20/vxml.dtd">

<cfoutput>
<vxml version = "2.0" xmlns="http://www.w3.org/2001/vxml">
</cfoutput>



VWS20_Vxml_head.cfm


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE vxml PUBLIC "-//Nuance/DTD VoiceXML 2.0//EN"
"http://dtd.voxeo.net/dtd/voicexml-nuance-2_0.dtd">

<cfoutput>
<vxml version = "2.0" xmlns="http://www.w3.org/2001/vxml">
</cfoutput>


MyDocument.cfm


<CFINCLUDE TEMPLATE="VWS20_Vxml_head.cfm">
<form id=”F1>



Do remember that neither the DTD reference, nor the 'xmlns' attributes are required in order for code to run on the Motorola or VWS2.0+ platforms.






  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login

  D: Voxeo Porting Guide  |  TOC  |  Fetchhint Modifications  

© 2003-2008 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site