![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: xml::twig and stylesheetsby mirod (Canon) |
on Mar 23, 2006 at 05:49 UTC ( #538655=note: print w/replies, xml ) | Need Help?? |
Now you are entering the dark realm of comments and processing instructions before and after the root... be afraid, very afraid! The answer: you have to replace the paste by $twig->_add_cpi_outside_of_root( leading_cpi => $xsl);. Which I agree is slightly weird, not to mention totally undocumented. This might actually be worth a method of its own. What about add_stylesheet( $stylesheet_url )?
In Section
Seekers of Perl Wisdom
|
|