heise online · c't · iX · Technology Review · Telepolis · mobil · Security · c't-TV · Jobs · IT-Markt · Kiosk
Zum Inhalt
iX

iX 3/2001, p. 167: XML-Programming

XSLT tutorial, part III: dynamic XML with AxKit

On the Fly

Henning Behme

Title picture

Listing 6

XPathScript 1

<html>
<head>
  <title>iX Dictionary</title>
  <link rel="stylesheet" type="text/css" 
        href="dictionary.css">
</head>
<body>

  <h2 align="center">iX Dictionary: 
      XPathScript-Beispiel 1</h2>

  <table align="center" width="80%" 
         cellspacing="0" cellpadding="1">

                          <%
                          foreach my $entry (findnodes("/dictionary/entry")) {
  print "<tr>";
  print "<td align=\"right\"><strong>", 
        $entry->findvalue("acro/text()"), 
        "</strong></td>";
  print "<td>", 
        $entry->findvalue("term/text()"), 
        "</td>";
  print "</tr>\n";
                          }
                          %>

  </table>
</body>
</html>

Copyright © 2005 Heise Zeitschriften Verlag Please send comments and suggestions to iX's webmaster Privacy Policy   Masthead page