On Monday, February 4, 2002, at 05:49 PM, Steve Willer wrote:

> On Mon, 2002-02-04 at 17:35, Terrence Brannon wrote:
>> All of the below successfully turns a skeleton XML file into a
>> full-fledged XML document.
>> The lines preceded with *** are for email commentary purpose and
>> not part of the files on my system.
>> Now, when I request the skeleton file, it comes back as a a huge
>> ream of text, but if you view source, all the XML-angle brackets
>> are there.
>> So, the question becomes why is this file not being recognized as
>> an XML file?
>
> I think AxKit forces the content-type to text/html by default. Set the
> note axkit_passthru_type to turn that off.
>
>   use Apache;
>   Apache->request->notes('axkit_passthru_type',1);
>
>

I put that in the Xpathscript file, but it doesn't do anything:

<%
my $sites = `cat sites/*.xml`;

$t->{sitelist}{pre} = "<sitelist>$sites</sitelist>";

use Apache;
Apache->request->notes('axkit_passthru_type',1);

%>

<%= apply_templates('/sitelist') %>



... was I supposed to put it somewhere else?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to