!!! Listing 1: AxKit-Konfiguration # # in httpd.conf # PerlModule AxKit # # entweder in httpd.conf (wie hier) oder # in einer .htaccess-Datei # SetHandler perl-script PerlHandler AxKit PerlSetVar AxTranslateOutput 1 PerlSetVar AxOutputCharset ISO_8859-1 AxCacheDir /home/httpd/htdocs/axkit_cache AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot !!! Listing 2: brief2.xml Joyce soeben haben wir den Ulysses bis zum Ende gelesen. Vorausgesetzt, Sie wären bereit, das letzte Kapitel zu überarbeiten oder gänzlich zu streichen, wären wir einer Veröffentlichung nicht abgeneigt. John J. Hoover !!! Listing 3: dictionary.xml !!! Listing 4: dictionary.xsl !!! Listing 5 iX Web dictionary
iX logo

Web Dictionary

line

!!! Listing 6: XPathScript 1 iX Dictionary

iX Dictionary: XPathScript-Beispiel 1

<% foreach my $entry (findnodes("/dictionary/entry")) { print ""; print ""; print ""; print "\n"; } %>
", $entry->findvalue("acro/text()"), "", $entry->findvalue("term/text()"), "
!!! Listing 7: XPathScript 2 <% $t->{'acro'}{pre} = ''; $t->{'acro'}{post} = ''; $t->{'term'}{pre} = ''; $t->{'term'}{post} = ''; %> <% print apply_templates("/dictionary/entry/acro | /dictionary/entry/term") %>