- or download this
SELECT id, name, xp, lat, long FROM monks ORDER BY lat LIMIT 25
- or download this
Benchmark: timing 50 iterations of DBI and CGI, DBI and Print, DBI and
+ TT2, XML and TT2/Simple, XML and TT2/XPath, XML and XSLT...
DBI and CGI: 5 wallclock secs ( 2.02 usr + 0.02 sys = 2.04 CPU) @ 2
+4.51/s (n=50)
...
DBI and TT2 4.55/s 1220% 302% 122% -- -81% -98%
DBI and CGI 24.5/s 7003% 2062% 1093% 438% -- -88%
DBI and Print 200/s 57860% 17540% 9636% 4292% 716% --
- or download this
XSLT Transform
DBI --> XML -----------------> XHTML
- or download this
CGI-->userinfo -----|
| Data Pruning XSLT
...
|
V
XHTML
- or download this
#!/usr/bin/perl -w
...
my $results = $stylesheet->transform( $source );
print $target $stylesheet->output_string( $results );
}
- or download this
[% colorrow = 0 %]
<html>
...
</table>
</body>
</html>
- or download this
[% USE xml = XML.Simple( results ) %]
[% xml %]
...
</table>
</body>
</html>
- or download this
[% USE xpath= XML.XPath( results ) %]
[% colorrow = 0 %]
...
</table>
</body>
</html>
- or download this
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
...
</xsl:template>
</xsl:stylesheet>