W3C home > Mailing lists > Public > www-voice@w3.org > October to December 2003

Implementation Report using JSP pages

From: Christopher Passaretti <cpassar@nortelnetworks.com>
Date: Wed, 24 Dec 2003 10:56:00 -0500
Message-ID: <DF8F0ECC323FD5119CBF0002A5607D3C0B15860E@zrtpd0nf.us.nortel.com>
To: "'www-voice@w3.org'" <www-voice@w3.org>

I was curious if anyone has used the cgi to jsp XSL provided in the
appendix.  The resulting JSP pages cannot be validated
by an XML parser.  This is because the first line of the file must be the
xml header.  I changed it slightly to insert the xml
header with the template header and it appears to work fine:

<!--   Official contentType is 'application/voicexml+xml'.
  Change contentType to 'text/xml' to view generated JSP in IE.
<xsl:template name="header" >&lt;?xml version="1.0" ?>
&lt;%@ page language="java" contentType="text/xml" %>
&lt;%@ page import="java.io.BufferedInputStream" %>
&lt;%@ page import="java.io.BufferedReader" %>
&lt;%@ page import="java.io.InputStreamReader" %>
&lt;%@ page import="java.net.URL" %>
&lt;%@ page import="java.net.URLConnection" %>
&lt;%@ page import="java.util.Date" %>

This appears to work fine.  Has anyone else run into this problem?  


Christopher F. Passaretti
Nortel Networks

Tel 631 285-2529 (ESN 297-2529) 
Fax 631 285-2829 
Email: cpassar@nortelnetworks.com 
Received on Wednesday, 24 December 2003 11:06:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:37 UTC