Subject:XSLT Works in Stylus Studio, not in browser Author:nicholas lipple Date:01 Apr 2009 05:21 PM
I am trying to take an input file (.xml) and transform it into a new xml file. The output comes out perfectly inside Stylus Studio but opening the file through internet explorer, firefox, or chrome produces a blank page. Viewing source simply shows the original input.xml. Please help, I'm completely lost on why it won't work outside of Stylus Studio!
Explanation of attached values:
I view input.xml in browser. It references builder.xsl as its stylesheet.
Builder.xsl creates a root element and applies templates (right now just one). The goal is to take the input.xml and output valid reportviews for a program called Cognos.
BANDWIDTH.xsl is a report template, it is setup this way because we plan to add many more and want it to be flexible.
tmpDates3.xsl is a file declaring some variables, it is temporary because they won't be needed in the near future.
Subject:XSLT Works in Stylus Studio, not in browser Author:(Deleted User) Date:02 Apr 2009 02:21 AM
Hi Nicholas,
your XSLT stylesheet generates an XML fragment, and the web browsers don't understand its content. So, unless you generate HTML output, they will print only the text nodes inside it, that in your case don't exist at all.
Subject:XSLT Works in Stylus Studio, not in browser Author:nicholas lipple Date:03 Apr 2009 01:30 PM Originally Posted: 03 Apr 2009 12:55 PM
If I open a plain xml file with no XSL associated with it, IE/Firefox simply show the document tree. I don't understand why it doesn't do the same for the output I generated with those XSL files. That's all I need is for my browser to visit the input.xml and show the document tree after the XSLT transformation.