This queue is for tickets about the XML-LibXSLT CPAN distribution.

Report information
The Basics
Id:
199
Status:
rejected
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
cmsdmcmi [...] hotmail.com
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
1.09
Fixed in:
(no value)



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
[guest - Thu Jan 24 10:17:15 2002]:
Show quoted text
> 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.
Show quoted text
> For instance: If you had a generic XML file and wished to apply > different XSL outputs for different viewing mediums then you
would
Show quoted text
> 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 ....
I'm not really sure this is possible, except perhaps by using parameters in the stylesheet, in which case you can just use the built in parameter support. I'd need more of an example XSL, and a pointer to the libxslt docs that show how to implement that at the C level.
Resolving as rejected due to inactivity and MSERGEANT's commentary.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.