XML IV: Cocoon 2.

Slides:



Advertisements
Ähnliche Präsentationen
Finding the Pattern You Need: The Design Pattern Intent Ontology
Advertisements

Dynamische WEB-Applikationen
E-Solutions mySchoeller.com for Felix Schoeller Imaging
DNS-Resolver-Mechanismus
Nano-World The interdisciplinary Virtual Laboratory on Nanoscience Ein Projekt des Virtuellen Campus T. Gyalog, M. Guggisberg, R. Schneider, Ch. Freiburghaus,
Aufgabenbesprechung Programming Contest. Order 7 Bo Pat Jean Kevin Claude William Marybeth 6 Jim Ben Zoe Joey Frederick Annabelle 0 SET 1 Bo Jean Claude.
Was ist eine digitale Arbeitsumgebung für die Geisteswissenschaftliche Arbeit? Manfred Thaller, Universität zu Köln Köln, 27. Juli 2009.
Seite 1 Reinhard Huber Anna Völkl ITTBA Apache Tomcat Anna Völkl, Reinhard Huber
Wenn…… the conditional. Using the conditional tense The conditional tense is used to talk about something that happens only after something else happened.
Seminar: XML für Fortgeschrittene Referent: Katrin Apel
Internet Protokolle und Formate 1.1 HTTP 1.2 HTML 1.3 SGML 2. XML 3. WAP Matthias Thränhardt Sebastian Weber.
Welcome DTD. Document Type Definition Graphic Services/Everything you already know about presentations Was ist eine DTD? DTD ist eine Schemasprache.
Dynamische Webseiten Java servlets.
Three minutes presentation I ArbeitsschritteW Seminar I-Prax: Inhaltserschließung visueller Medien, Spree WS 2010/2011 Giving directions.
Modulare Programmierung
CTS2 based Terminology Server – Overview – Project eBPG
The future tense..
USE2ANT Die Umstellung von Use Makefiles zu Ant & Junit Von Isaac, Maleen und Marc.
01 Installation / Support. © beas group 2011 / Page 2 This documentation and training is provided to you by beas group AG. The documents are neither approved.
Coccon das Web-XML-Publishing System Thomas Haller.
Martin Köllner XMLCompany Cocoon XMLCompany Apache Cocoon Web Publishing Framework.
Separable Verbs There is a group of verbs in German called separable verbs = trennbare Verben.
Servlet III Java Webanwendung Webcontainer Web.xml
die Zeiten (The Tenses) das Aktiv (Active Voice)
Kapitel 4: Die Schule Deutsch 1
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
BAS5SE | Fachhochschule Hagenberg | Daniel Khan | S SPR5 MVC Plugin Development SPR6P.
3rd Review, Vienna, 16th of April 1999 SIT-MOON ESPRIT Project Nr Siemens AG Österreich Robotiker Technische Universität Wien Politecnico di Milano.
© All rights reserved. Zend Technologies, Inc. Jan Burkl System Engineer, Zend Technologies Zend Server im Cluster.
The free XML Editor for Windows COOKTOP Semistrukturierte Daten 1 Vortrag Semistrukturierte Daten 1 COOKTOP The free XML-Editor for Windows
Your name Bedeutung von Internet- Technologien Gruppe 1 Andreas Feuerstein Philipp Hochratner Christian Weinzinger.
Wortschatz angenehm comfortable anstrengend tiring ausgezeichnet outstanding bequem comfortable berühmt famous besser better blöd stupid einfach easy fantastisch.
Neno Loje Berater & MVP für Visual Studio ALM und TFS (ehemals VSTS) Hochqualitative Produkte mit Visual Studio & TFS 2010.
3/28/2017 8:11 PM Visual Studio Tools für Office { Rapid Application Development für Office } Jens Häupel Platform Strategy Manager Microsoft Deutschland.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
Department of Computer Science Homepage HTML Preprocessor Perl Database Revision Control System © 1998, Leonhard Jaschke, Institut für Wissenschaftliches.
Wortschatz der Schulhof the playground die Aula the hall
XML-Serverpages Vortrag im Rahmen des Seminars XML-Technologien Tobias Faessler.
JSP Einführung Skripte Direktiven Tomcat 3.2 Version 1.1
Übersicht Was ist cocoon? Separation of Concerns Pipeline Modell
Verben Wiederholung Deutsch III Notizen.
Univ.-Lektor Dipl.-Ing. Dr. Markus Schranz staatlich befugter und beeideter Ingenieurkonsulent für Informatik Web Application Engineering & Content Management.
Staatsballett Berlin Ein Verbesserungskonzept für den Social- Media Auftritt Your picture here.
Was dir Trivialbeispiele in Async and Await nicht sagen! Marcus Kimpenhaus und Martin Möllenbeck.
Ein Projekt des Technischen Jugendfreizeit- und Bildungsvereins (tjfbv) e.V. kommunizieren.de Blended Learning for people with disabilities.
“Weil” und “Denn”.
© All rights reserved. Zend Technologies, Inc. Jenseits von var_dump(): Debugging in ZF Jan Burkl System Engineer.
© Boardworks Ltd of 8 Time Manner Place © Boardworks Ltd of 8 This icon indicates that the slide contains activities created in Flash. These.
You need to use your mouse to see this presentation © Heidi Behrens.
2002 XML 10.1XML I (Parsing) 17.1XML II (XLST,XPATH) (keinPraktikum) 24.1XML III FOP 31.1Cocoon2, XSP 7.2Struts, Turbine, Velocity 14.2Testat / Evaluation.
German Level 1 Greetings.
Launch ON Global.vi System ID object name classname Services to suscribe Observer Control Ref vi-path Service name Step 1 : Objects register to the Global.vi´s,
Technische Universität München 1 CADUI' June FUNDP Namur G B I The FUSE-System: an Integrated User Interface Design Environment Frank Lonczewski.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation © Heidi Behrens.
Weak pushover verbs..... lieben kaufen spielen suchen....are verbs that do exactly as they are told. They stick to a regular pattern that does not change!
Stefan Metzlaff1 Cocoon Stefan Metzlaff
Frameworks
Your Logo Presentation Title Presentation Subtitle.
You need to use your mouse to see this presentation
 Präsentation transkript:

XML IV: Cocoon 2

Concrete Event Handler A Concrete Event Handler B The Reactor Pattern Das Reactor Pattern ermöglicht Demultiplexing und Verteilung von Service Requests bei ereignisgesteuerten Anwendungen. Handle owns dispatches * notifies handle set Reactor handle_events() register_handler() remove_handler() Event Handler handle_event () get_handle() Concrete Event Handler A Concrete Event Handler B Synchronous Event Demuxer select () <<uses>>

The Reactor Pattern : Main Program : Concrete Event Handler : Reactor : Synchronous Event Demultiplexer register_handler() get_handle() handle_events() select() handle_event() Handle Handles Con. Event Handler Events service() event

Architektur Webserver Servlet Container Serializer Transform Generator DB wml html pdf Serializer Transform Generator

Pyramiden Modell von Web Verträgen Management: Pfade, Verteilung, Regeln, Organisation Logic: dynamische Generierung Content: Seiten Inhalt Style: Layout

Grundkonzept Pipeline Umleitung nach Muster Erzeugung des XML Dokuments Transformation Ausgabe, Erzeugung von spez. Formaten (html, pdf, wml, usw.)

Pipeline

Architektur Core: configuration,threading, context, caching, pipeline handling, program generation, compilation, loading and execution. Components: generators, transformers matchers, serializers

Sitemap <?xml version="1.0"?> <map:components/> <map:sitemap xmlns:map= "http://apache.org/cocoon/sitemap/1.0"> <map:components/> <map:views/> <map:resources/> <map:pipelines/> <map:action-sets/> </map:sitemap> JAVA Program Action

Sitemap II <map:components> <map:generators/> <map:transformers/> <map:serializers/> <map:readers/> <map:selectors/> <map:matchers/> <map:actions/> </map:components> JAVA Program Action

Anwendung Legi 1.) Legi Daten von Studenten in ausgeben. xml  html legi_html.xsl xml  pdf legi_pdf.xsl xml  ps ? xml  wml legi_wml.xsl

Sitemap Legi I <?xml version="1.0"?> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <!-- =========================== Components ================================ --> <map:components> <map:generators default="file"/> <map:transformers default="xslt"/> <map:readers default="resource"/> <map:serializers default="html"/> <map:selectors default="browser"/> <map:matchers default="wildcard"/> <map:serializer name="fo2ps" src="org.apache.cocoon.serialization.FOPSerializer" mime-type="application/postscript"/> <map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer" mime-type="application/pdf"/> <map:serializer name="wap" mime-type="text/vnd.wap.wml" src="org.apache.cocoon.serialization.XMLSerializer"> <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public> <doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system> <encoding>ASCII</encoding> <omit-xml-declaration>yes</omit-xml-declaration> </map:serializer> </map:components> <!-- =========================== Pipelines ================================= -->

Sitemap Legi II … <map:match pattern="*.*.html"> <map:generate src="xml/{1}.{2}.xml"/> <map:transform src="xsl/legi_html.xsl"/> <map:serialize type="html"/> </map:match> <map:match pattern="*.*.pdf"> <map:transform src="xsl/legi_pdf.xsl"/> <map:serialize type="fo2pdf"/> <map:match pattern="*.*.ps"> <map:serialize type="fo2ps"/> <map:match pattern="*.*.wml"> <map:transform src="xsl/legi_wml.xsl"/> <map:serialize type="wap"/>

Anwendung Portalseite Alle Dienste einer Seite sollen aufgelistet werden. 1.) ““  welcome 2.) welcome  samples.xml  simple-samples2html.xsl  html 3.) Sitemap für Links

samples.xml <?xml version="1.0" encoding="iso-8859-1"?> <samples xmlns:xlink="http://www.w3.org/1999/xlink"> <group name="Multimedia Hello World"> <sample name="HTML" href="hello.html"> This is a very simple demonstration of how to use Cocoon. A simple XML page is transformed into an HTML page. </sample> <sample name="WML" href="hello.wml"> Now something more juicy: the exact same page is translated into WAP WML. <sample name="SVG" href="hello.svg"> Need a fancier look? No problem, SVG is your friend. …

Sitemap <map:pipeline> <map:match pattern=""> <map:redirect-to uri="welcome"/> </map:match> <map:match pattern="welcome"> <map:generate src="docs/samples/samples.xml"/> <map:transform src="stylesheets/simple-samples2html.xsl"/> <map:serialize/> <map:match pattern="hello.html"> <map:generate src="docs/samples/hello-page.xml"/> <map:transform src="stylesheets/page/simple-page2html.xsl"/> <map:serialize type="html"/> <map:match pattern="hello.wml"> <map:transform src="stylesheets/page/simple-page2wml.xsl"/> <map:serialize type="wap"/> …

Browser spezifische Seite <map:select> <map:when test="wap"> <map:transform src="stylesheets/simple-samples2wap.xsl"/> </map:when> <map:when test="netscape"> <map:transform src="stylesheets/simple-samples2netscape.xsl"/> <map:otherwise> <map:transform src="stylesheets/simple-samples2html.xsl"/> </map:otherwise> </map:select>

eXtensible Server Pages (XSPs) Analog zu JSP nur Trennung von Code Logic Presentation

eXtensible Server Pages (XSPs) <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"> <xsp:logic> static private int counter = 0; private synchronized int count() { return counter++; } </xsp:logic> <page> <p>I have been requested <xsp:expr>count()</xsp:expr> times.</p> </page> </xsp:page>

XSP Bsp. II <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:log="http://apache.org/xsp/log/2.0" xmlns:capture="http://apache.org/cocoon/capture/1.0"> <page> <log:logger name="xsp-sample" filename="xsp-sample.log"/> <log:debug>jax: start jax page</log:debug> <title>A Simple XSP Page</title> <content> <capture:fragment-variable name="page_part"> <para>These 2 paragraphs were generated at the start of the XSP, and captured for insertion at the end.</para> <para>Brought to you by Cocoon2 at <xsp:expr>new Date()</xsp:expr>.</para> </capture:fragment-variable> <para>I was requested as the URI: <b><xsp-request:get-uri as="xml"/></b></para>

XSP Bsp. II <para>The following list was dynamically generated:</para> <ul> <xsp:logic> <![CDATA[ for (int i=0; i<3; i++) { ]]> <li> Punkt: <xsp:expr>i</xsp:expr> </li> } </xsp:logic> </ul> <xsp-request:get-parameter-values name="name"/> <xsp-request:get-parameter-names/> <para> Header "user-agent" as String: <xsp-request:get-header name="user-agent"/> </para> <xsp:expr>page_part</xsp:expr> </content> <log:debug>Processing the end of the JAX page</log:debug> </page> </xsp:page>

Links Praktikum Installation Cocoon Legi mit pdf,html, wml Ausgabe http://carnagepro.com/samples/ http://www.snow-news.com/ http://miwis.framkom.se/cocoon/documents/livesites.html Praktikum Installation Cocoon Legi mit pdf,html, wml Ausgabe einfach XSP-Seite

Download Tomcat 4.0

Installieren

Ordner Struktur

Download Cocoon

Extracting cocoon.war Apache Tomcat 4.0\webapps

Test: Start Tomcat