cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Pogue <mpo...@apache.org>
Subject Re: XML and VoiceXML
Date Fri, 29 Sep 2000 04:55:32 GMT
Actually, VoiceXML *is* XML, so it should be possible to use a single XML
source, and generate either HTML, WML, or VXML using different stylesheets.
Be aware, however,
that a voice interface is very linear, while HTML is two dimensional and
visual.  This may sound obvious, but it has real implications for how the
VXML output should look, if you want
it to be useful.  It will probably complicate the process of writing such a
stylesheet.

Here's the link to the latest VoiceXML spec:  http://www.w3.org/TR/voicexml/
Expect it to change (it's not yet at Candidate Recommendation).

Here's a simple example:

SAMPLE INPUT XML FILE ======================================

<?xml version="1.0"?>
<myQuestions>
    <question>Why is the sky blue?</question>
    <answer>Because it is.</answer>
</myQuestions>

SAMPLE HTML OUTPUT FILE ===================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
     <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
     <TITLE>Questions</TITLE>
</HEAD>
<BODY>
    <H2>Questions</H2>
    <BLOCKQUOTE>
         <P>Why is the sky blue?</P>
         <P>Because it is.
    </BLOCKQUOTE>
</BODY>
</HTML>


SAMPLE VOICE XML OUTPUT FILE============================
<vxml version="1.0">
    <form>
        <block>
            <audio>Why is the sky blue?</audio>
            <audio>Because it is.</audio>
            <exit/>
        </block>
    </form>
</vxml>

Of course, this is a simple example!
A more complex interaction might result in an HTML <form>, and
some VXML <prompt>'s.  Such a stylesheet is likely to be complex, if you
want both HTML and VXML to be "user-friendly".

Hope this helps -- it sounds like a fun project!
Mike

----- Original Message -----
From: Martin Bouman <M.Bouman@telecats.nl>
To: <xerces-j-dev@xml.apache.org>
Cc: <xerces-c-dev@xml.apache.org>; <xerces-dev@xml.apache.org>;
<cocoon-dev@xml.apache.org>
Sent: Thursday, September 28, 2000 12:32 AM
Subject: FW: XML and VoiceXML


> Dear Sir / Madam,
>
> We really hope you can help us with the question below and give us a clear
> description of how to accomplish the matter.
> Maybe you could send us also an example of XML combined with VoiceXML.
>
> We are looking forward to hearing from you at your earliest convenience.
>
>
> Martin Bouman & Richard Korthuis
> TeleCats BV, The Netherlands
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: Dirk-Willem van Gulik [SMTP:dirkx@covalent.net]
> > Verzonden: woensdag 27 september 2000 17:15
> > Aan: Martin Bouman
> > CC: dirkx@WebWeaving.Org
> > Onderwerp: Re: XML and VoiceXML
> >
> >
> > Yes it it. Most certainly. You want to repeat this question on
> > the Xerces mailing list (see xml.apache.org) which is where the
> > experts are. Should be easy to do - and a lot of fun too. If you
> > need commercial assistance - apache will obviously NOT give that -
> > but we might be.
> >
> > Dw
> >
> > On Wed, 27 Sep 2000, Martin Bouman wrote:
> >
> > > Enschede, 27-09-2000
> > >
> > > Dear Sir,
> > >
> > > We have a small question about XML combined with VoiceXML.
> > > We have installed Cocoon 1.8 and would like to use XML documents to
> > convert
> > > them to VoiceXML pages by means of XSL (just as we did with HTML and
> > WML).
> > > Is this possible? If possible, do we have to modify some
> > configurationfiles
> > > (Apache, Cocoon, JServ) or something else? In what way do we have to
> > change
> > > them?
> > >
> > > I am looking forward to hearing form you at your earliest covenience.
> > >
> > >
> > > Yours Sincerely,
> > >
> > > Martin Bouman
> > > TeleCats BV
> > > The Netherlands
> > >


Mime
View raw message