Subject: | More than one XSL Transformation per file |
Hi,
Having recently posted a question to the Perl-XML mailing list, Matt Serganant suggested I report it as a bug.
I have been looking around at LibXSLT and LibXML and there does not seem to be a method of extracting a output method from a XSL file. For instance: If you had a generic XML file and wished to apply different XSL outputs for different viewing mediums then you would have to have separate XSL files to do it, although it is possible to list them all in one file.
Could you make it possible to scan a XSL file looking for the output types and pass these in as generic arguements so you would call something like:
my $stylesheet = xslt->parse_stylesheet($style_doc, $type)
Where type would be either HTML, WML, IE, Netscape etc ....
Thanks
Dan