XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
nicholas lippleSubject: 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.


Unknowninput(14).xml
input file

Unknownbuilder.xsl
builder stylesheet

UnknownBANDWIDTH.xsl
bandwidth report template

UnknowntmpDates3.xsl
temporary date values

UnknownNoname(43).

Postnext
Alberto MassariSubject: XSLT Works in Stylus Studio, not in browser
Author: Alberto Massari
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.

Hope this helps,
Alberto

Posttop
nicholas lippleSubject: 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.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.