Thanks for this - Tried it and it worked and pretty much did what I want.
However (and isn't there always a however).
I want to be able to pass in a variable to the XSLT transormation that isn't part of the query (the report title).
And here is where I am going up the Perl Object learning curve.
I can see that XML::Filter::XSLT uses XML::Filter::XSLT::LibXSLT and that this uses XML::LibXSLT to parse the stylesheet.
I can also see that XML::LibXSLT supports transform(doc, %params) to allow me to pass in hash of parameters to the transformation. Which I have tested - and the value of the variable is replaced in the transformation using
<xsl:value-of select="$cust_name"/>
It doesn't appear there is anyway that I can pass in a hash to the XML::Filter::XSLT as described in the example as there is no method - or is there.
Any pointers you can give
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.