CCXML 1.0-W3C Development GuideHome  |  Frameset Home


<ccxml>  element

The <ccxml> element is the parent tag of any CCXML document, which encloses the entire contents of the document. Any child elements are executed in document order before the target <eventhandler> elements are reached in the document initialization.


usage
<ccxml version="STRING" xml:base="CDATA" xmlns="http://www.w3.org/2002/09/ccxml" xmlns:voxeo="http://community.voxeo.com/xmlns/ccxml">


attributes
versionData Type: STRINGDefault: none - attribute is required
The version of this CCXML document (required). The only allowable version number is 1.0.
xml:baseData Type: CDATADefault: Optional
The URI value of the xml:base attribute denotes the base URL of the document. All relative URI’s contained in the document are derived from the base attributes value. If unspecified, then the platform assumes that the current URI is the value of the xml:base attribute.
xmlnsData Type: http://www.w3.org/2002/09/ccxmlDefault: Optional
The xmlns attribute defines the CCXML namespace; all tags and attributes belong to this namespace.
xmlns:voxeoData Type: http://community.voxeo.com/xmlns/ccxmlDefault: none - attribute is optional
This attribute defines the XML namespace for any extension elements. This attribute is only required when a developer is using a voxeo-specific CCXML element extension, (such as 'voxeo:sendemail'). The only allowable value for this attribute is 'http://community.voxeo.com/xmlns/ccxml'



parents
none


children
<eventprocessor> <var>


code samples
<:1.0 ccxml -version-xmlns-xml:base> sample
<?xml version="1.0" encoding="UTF-8"?>
<ccxml version="1.0" xmlns="http://www.w3.org/2002/09/ccxml" xml:base="http://thisServer.com/someDirectory/">

<eventprocessor>
  <transition event="connection.alerting">
  <accept/>
  <log expr="'***** CALL ACCEPTED *****'"/>
  </transition>

  <transition event="connection.connected">
  <dialogstart src="'null://?text=Congratulations, your call was accepted. Goodbye.'" type="'application/x-texttospeech'"/> 
  </transition>

    <transition event="dialog.exit">
      <log expr="'***** CALL EXITING *****'"/>
      <exit/>
    </transition>

    <transition event="error.*">
    <log expr="'ERROR OCCURRED: '+ event$.name"/>
    <exit/>
    </transition>
</eventprocessor>
</ccxml>



additional links
W3C Specification


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

login



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