(: -*- xquery -*- :============================================================================= : env.xq -- mod_dbxml test page : : Copyright (C) 2006 Hans-Thomas Mueller : : This program is free software; you can redistribute it and/or : modify it under the terms of the GNU General Public License as : published by the Free Software Foundation; version 2. : : This program is distributed in the hope that it will be useful, : but WITHOUT ANY WARRANTY; without even the implied warranty of : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU : General Public License for more details. : : You should have received a copy of the GNU General Public License : along with this program; if not, write to the Free Software : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA : 02110-1301 USA :============================================================================= :) import module namespace http = "http://moddbxml.org/2006/xmlns/http" at "module:http.xq"; declare default element namespace "http://www.w3.org/1999/xhtml"; mod_dbxml Test Page

mod_dbxml Test Page

{ http:getenv("SCRIPT_NAME") }

{ for $element in http:env()/* let $name := fn:local-name($element) order by $name return }
{ $name }{ $element/text() }
(:............................................................................. : env.xq :)