Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Using XQuery and VoiceXML

Create a dynamic VoiceXML application

Martin Brown, Developer and writer, Freelance Developer
Photo of Martin Brown
Martin Brown has been a professional writer for over eight years. He is the author of numerous books and articles across a range of topics. His expertise spans myriad development languages and platforms -- Perl, Python, Java, JavaScript, Basic, Pascal, Modula-2, C, C++, Rebol, Gawk, Shellscript, Windows, Solaris, Linux, BeOS, Mac OS/X and more -- as well as Web programming, systems management and integration. Martin is a regular contributor to ServerWatch.com, LinuxToday.com and IBM developerWorks, and a regular blogger at Computerworld, The Apple Blog and other sites, as well as a Subject Matter Expert (SME) for Microsoft. He can be contacted through his Web site at http://www.mcslp.com.

Summary:  XQuery and VoiceXML are a perfect combination. XQuery provides a very simple and direct method to generate XML documents from other XML documents. Because you can pick and choose the different elements that you want from the source XML file, and format the output file in any way you wish, you can easily produce a VoiceXML document that contains the exact information you need. In this tutorial, you see how to employ XQuery with XML documents to build complex and dynamic systems that take input and information from a VoiceXML environment and combine them with existing XML documents to produce interactive applications.

Date:  06 May 2008
Level:  Intermediate PDF:  A4 and Letter (76 KB)Get Adobe® Reader®

Activity:  16284 views
Comments:  

Summary

Wrap up

That's it. You stepped through the entire process of generating VoiceXML, generating options, parsing and identifying those options and allowing the application to be an interface between the VoiceXML you generated and the XQuery that generated the VoiceXML. In this tutorial, you produced a VoiceXML document that contained the exact information you wanted. You saw how to add interaction into the system by allowing the options generated by the VoiceXML application to act as parameters into the XQuery script, which in turn allowed you to generate different XML in response. The resulting XML was another VoiceXML document, and so the process continued to generate an interactive application.

6 of 9 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML
ArticleID=305869
TutorialTitle=Using XQuery and VoiceXML
publish-date=05062008
author1-email=mc@mcslp.com
author1-email-cc=dwxed@us.ibm.com