1 / 10

eXist Open Source Native XML Database

eXist Open Source Native XML Database. Praktische Hinweise. Editor. oXygen XML Editor (!) Direktes erstellen von XML, XSLT und XQuery Dokumenten in der Datenbank über die WebDAV Schnittstelle Komfortables Syntaxhighlighting XQuery + XSLT Debugger Java Admin Tool Exist Plugin.

tamarr
Download Presentation

eXist Open Source Native XML Database

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. eXist Open Source Native XML Database Praktische Hinweise

  2. Editor • oXygen XML Editor (!) • Direktes erstellen von XML, XSLT und XQuery Dokumenten in der Datenbank über die WebDAV Schnittstelle • Komfortables Syntaxhighlighting • XQuery + XSLT Debugger • Java Admin Tool • Exist Plugin

  3. Basiskonfiguration (für Webanwendungen in der Datenbank) • $EXIST_HOME/webapp/WEB-INF/controller-config.xml (1) <!-- ++ Default configuration: main web application is served from the ++ webapp directory. --> <root pattern="/tools" path="xmldb:exist:///db/www"/> <root pattern=".*" path="/"/> (2) <!-- ++ The following configuration assumes that the main webapp ++ is stored in the database. However, the contents of the /webapp directory ++ should still be accessible with a /fs prefix in the path. --> <root pattern="/fs" path="/"/> <root pattern=".*" path="xmldb:exist:///db/www"/> Konfiguration (2) verwenden!

  4. Basiskonfiguration (für Webanwendungen in der Datenbank) • Eine Datei „controller.xql“ in die Datenbank speichern unterhalb von xmldb:exist:///db/www • Sorgt für das Handling der ein- und ausgehenden Requests

  5. Basiskonfiguration (für Webanwendungen in der Datenbank) xquery version "1.0"; (: root path: redirect to test.xql :) if ($exist:path eq '/') then <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> <redirect url="test.xql"/> </dispatch> else (: everything else is passed through :) <ignore xmlns="http://exist.sourceforge.net/NS/exist"> <cache-control cache="yes"/> </ignore>

  6. Nähere Informationen zur Konfiguration von Webanwendungen http://exist-db.org/urlrewrite.html

  7. eXist und XQuery • XQuery ist im Kern eine Datenbankabfragesprache (wie SQL) • XPath • FLOWR Ausdrücke • aber auch (!): nach der W3C Standard Spezifikation eine erweiterbare Sprache (ähnlich wie LUA) • Der Funktionsumfang von XQuery kann beliebig durch Module erweitert werden • Das Binding geschieht über das Namespace Konzept • Dadurch kann XQuery andere Skriptsprachen wie PHP oder JSP vollständig ersetzen

  8. Von eXist bereitgestellte Module • transform • validate • request • response • lucene • xslfo Überblick über die eXist Module: http://demo.exist-db.org/exist/xquery/functions.xql

  9. Besipielszenarien • Eine Datenbankabfrage mit XPath • Eine Datenbankabfrage mit dem „xmldb-Modul“ • Ein XML Dokument mittels XSLT nach HTML transformieren • (Clientseitige Daten aus einem Formular auslesen und als XML in die Datenbank speichern)

  10. jochen.graf(at)uni-koeln.de

More Related