- From: Dave Burke <david.burke@voxpilot.com>
- Date: Wed, 24 Dec 2003 17:43:19 -0000
- To: "Christopher Passaretti" <cpassar@nortelnetworks.com>, <www-voice@w3.org>
- Message-ID: <002001c3ca45$6b9b7450$0a01a8c0@db01.voxpilot.com>
Implementation Report using JSP pagesHi, Christopher. We have used the CGI to JSP XSLT to produce our implementation report with no problems. Usually the IRCGI document includes one or more <next> elements with an 'include' attribute. If this attribute is false, a VoiceXML document with a <goto> is returned including the XML declaration (see line 263). If the attribute is true, the contents of an external VoiceXML document are included into the JSP output at runtime. In both cases the XML declaration will be inserted (assuming the external file includes one in the latter case). Indeed the output of the XSLT is actually Java code and not XML per se (although the Java code will output XML at runtime). -- Dave ----- Original Message ----- From: Christopher Passaretti To: 'www-voice@w3.org' Sent: Wednesday, December 24, 2003 3:56 PM Subject: Implementation Report using JSP pages Hi, 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" ><?xml version="1.0" ?> <%@ page language="java" contentType="text/xml" %> <%@ page import="java.io.BufferedInputStream" %> <%@ page import="java.io.BufferedReader" %> <%@ page import="java.io.InputStreamReader" %> <%@ page import="java.net.URL" %> <%@ page import="java.net.URLConnection" %> <%@ page import="java.util.Date" %> </xsl:template> This appears to work fine. Has anyone else run into this problem? Chris 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 12:45:41 UTC