<%@ language = "JavaScript" %>
<% /*
     $Revision$
     $Id$

    File:           api_fetchXML.asp
    Description:    API to fetch an arbitrary XML and transform it
    Parameters:
    Context:
    Notes:
    TODO:           - Ook kale view ondersteunen? xml.make_xml moet dat wel kunnen

*/

    DOCTYPE_Disable = 1;
    THIS_FILE = "appl/api/api_fetchxml.asp";
%>

<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/xml_converter.inc" -->
<!-- #include file="../api/api.inc" -->

<%
    var API = new API_func();

    var usrrap_key = API.apidata.usrrap_key;
    //var viewname = API.apidata.viewname;
    var stylesheet = API.apidata.stylesheet;

    //FCLT2XMLResponse ('rapport', usrrap_key, 0, -1, mode, sql2);
    FCLT2XMLResponse ( {xmlnode: 'rapport',
                        key: usrrap_key,
                        stylesheet: stylesheet});

    Session.Abandon(); // Voor de zekerheid
%>