Dne út 25.zář.2007 15:32:59, PAJAS napsal(a):
Show quoted text> Ok, now I can reproduce it. It strangely depends on how you parse the
> stylesheet: when parsed from a DOM tree one gets <tr>, whem
> parsed from file (parse_stylesheet_file) one gets <tr>.
>
> I'll investigate...
> -- Petr
Hi, the problem turned out to be existence of CDATA in the stylesheet.
libxslt assumes the stylesheet XML was parsed with the XML_PARSE_NOCDATA
option which merges CDATA sections into adjacent text nodes.
I have mentioned this requirement in the documentation of
parse_stylesheet and provided an example on how to setup the parser to
use this flag (this will require XML::LibXML 1.70 - currently in SVN).
All changes are in the SVN. Thanks for the report.
-- Petr