I am new to Orbeon and am having difficulties returning raw xml
(content-type text/xml).

My page-flow.xml contains the following lines:

<page path-info="/uri/html" model="/uri/model.xpl" view="/uri/view.xsl" />
<page path-info="/uri/xml" model="/uri/model.xpl" />

The first line works properly and returns my transformed document.  My
understanding is that a page without a view would simply return the
resulting xml.  However, all I receive is an empty page.  The "empty page"
source is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Obviously not XML :) I've tried deleting the epilogue page entry and
reloading the orbeon webapp under Tomcat, but receive the same results.  I
am using Tomcat 5, JDK 1.4.2_04, Orbeon 2.5.3, on Windows 2000.  My
assumption is I've overlooked something elementary.  Thanks in advance for
the help!

- Bill

model.xpl:
------------------------
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
          xmlns:oxf="http://www.orbeon.com/oxf/processors";
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <p:param name="data" type="output"/>
    <p:processor name="oxf:url-generator">
        <p:input name="config">
            <config>
               <url>http://www.nws.noaa.gov/alerts/va.rss</url>
               <content-type>text/xml</content-type>
            </config>
        </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>
</p:config>

view.xsl:
------------------------
<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
      xsl:version="2.0">
    <head>
        <title>Hello World URI</title>
    </head>
    <body>
       <p>
          <xsl:for-each select="/rss/channel/item">
             <b><xsl:value-of select="title"/></b>
         <blockquote>
                <xsl:value-of select="description"/>
             </blockquote>
          </xsl:for-each>
       </p>
    </body>
</html>


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to