Thank you for this 'XML in perl show'. It is even more useful as a working example of integrating xml-sax in perl than as it's main purpose in this tutorial.
In order to preserve coherence with your first DBI example: at your third example you should correct the following:
$generator->execute('select foo as td,bar as td from baz');
$generator->execute('select bar as td,baz as td from foo');
...and the output should read:
<table query="select bar as td,bas as td from foo">
<table query="select foo as td,bar as td from baz">
Am I wrong?
And, finally, if I understand your worries...
Also, example 5 has a couple of known bugs: ... Also, opening and close <html> and <body> tags are generated when they too are not needed...
Should happen because your previous dynamic.xsl
stylesheet has the <html> and <body> tags mentioned...
I hope that I have really :) contributed with this extraordinary tutorial. Thank you a lot!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||