In order to preserve coherence with your first DBI example: at your third example you should correct the following:
Should be...$generator->execute('select foo as td,bar as td from baz');
...and the output should read:$generator->execute('select bar as td,baz as td from foo');
intead of...<table query="select bar as td,bas as td from foo"> <tr> <td>one</td> <td>1</td> </tr> <tr> <td>two</td> <td>2</td> </tr> <tr> <td>three</td> <td>3</td> </tr> </table>
Am I wrong?<table query="select foo as td,bar as td from baz"> <tr> <td>foo</td> <td>1</td> </tr> <tr> <td>bar</td> <td>2</td> </tr> <tr> <td>baz</td> <td>3</td> </tr> </table>
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!
In reply to Re: XML::Generator::DBI Tutorial
by chanio
in thread XML::Generator::DBI Tutorial
by jeffa
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |