KGKf / kettle-cookbook

Automatically exported from code.google.com/p/kettle-cookbook
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Enhancement to enable .ktr or .kjb files to be opened with kettle-report.xsl in browser #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
.ktr and .kjb files are normal xml files and have the first line as
<?xml version="1.0" encoding="UTF-8"?>

If the .ktr and .kjb files have the following 2 lines (2nd line links to xsl) 
then it can directly be opened in web browser.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="kettle-report.xsl"?>

In kettle code, there is a section that generates error when this second line 
is entered in .ktr or .kjb.
If the code can be tweaked to 'ignore' line #2 if it exists, then that will be 
great.

Original issue reported on code.google.com by herma...@gmail.com on 15 May 2013 at 2:50

GoogleCodeExporter commented 8 years ago
If anything, this would be an issue in kettle, not in kettle-cookbook. (On 
another topic, I personally feel that associating xsl-stylesheets with xml 
documents in this way, is a mistake, even though it is mandated by a w3c 
standard).

If you really want to do this, you could fairly easily create a browser plugin 
that applies xsl based on file extension. I'm fairly sure this would be easy to 
do in both mozilla and chrome. 

Original comment by roland.bouman on 15 May 2013 at 3:00