From owner-freebsd-questions@FreeBSD.ORG Fri Nov 11 14:43:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBF3316A41F for ; Fri, 11 Nov 2005 14:43:55 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from mail.scls.lib.wi.us (mail.scls.lib.wi.us [198.150.40.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79F0243D55 for ; Fri, 11 Nov 2005 14:43:55 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from [172.26.2.238] ([172.26.2.238]) by mail.scls.lib.wi.us (8.12.9p2/8.12.9) with ESMTP id jABEhrG1031788; Fri, 11 Nov 2005 08:43:53 -0600 (CST) (envelope-from nalists@scls.lib.wi.us) Message-ID: <4374AE29.200@scls.lib.wi.us> Date: Fri, 11 Nov 2005 08:43:53 -0600 From: Greg Barniskis User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: bob self References: <4374A646.1090906@charter.net> In-Reply-To: <4374A646.1090906@charter.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: getting apache2 to process xml files? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 14:43:55 -0000 bob self wrote: > > I'm running FreeBSD 5.4 and apache2. > > How can I get apache2 to process xml files? Right now it just treats them > as regular files and uploads them to the browser. I'm not sure how the > AddType line should be or what module I need to install and load. You should be asking this in an Apache support forum, since it's not specific to FreeBSD (very little about Apache is, beyond installing the port and making it start at boot time). Be that as it may... Use Cocoon? http://cocoon.apache.org/2.1/overview.html I could be wrong (never done such a thing) but I don't think what you want is nearly as easy as "turn on Apache feature XYZ". You have to tell Apache "use external program XYZ to preprocess XML data" and then you have to configure/program "XYZ" to do something useful like turn your XML into XHTML for the browser (e.g. you probably have to write or at least tune some XSL directives specific to your DTD, in addition to telling Apache to send XML to your XSL preprocessor). -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) , (608) 266-6348