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
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 25 Jun 2007 03:06 PM
Although I have included the following line in my xslt, the output comes out in text mode:

<xsl:output method="xml" />

What am I doing wrong?

Postnext
Alberto MassariSubject: output is not xml
Author: Alberto Massari
Date: 26 Jun 2007 09:08 AM
Hi Geetha,
it's hard to see what's going wrong; maybe the instruction is not right after the xsl:stylesheet element, maybe the stylesheet is creating no nodes.... could you attach the entire stylesheet, the input XML and the result you are getting?

Thanks,
Alberto

Postnext
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 26 Jun 2007 03:32 PM
I am attaching the xml and the xslt that I am using.

Thanks
Geetha.


Unknowntest2.xml

Postnext
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 26 Jun 2007 03:34 PM
Attaching the xslt....


Unknowntest2(1).xsl

Postnext
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 26 Jun 2007 03:36 PM
The output I see is in IE and in Stylus Studio is:

10 5 7 12310 5 7 test


Thanks
Geetha.

Postnext
Tony LavinioSubject: output is not xml
Author: Tony Lavinio
Date: 26 Jun 2007 04:43 PM
What are you expecting to see?

Your output isn't well-formed XML. You have <tat>test</tat>
outside of your root element <AAA> ... </AAA>

If you move <xsl:element name="tat">test</xsl:element> inside
of your <AAA> ... </AAA> element, it should work.

Postnext
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 27 Jun 2007 11:13 AM
I was trying out various combinations within xslt while trying to resolve this issue. I must have messed it up while doing so. But I am attaching herewith the original stylesheet that I had used. And this is the output that I see:

10 5 7 12310 5 7

I was expecting the output to be in xml.


Unknowntest2(2).xsl

Postnext
Alberto MassariSubject: output is not xml
Author: Alberto Massari
Date: 27 Jun 2007 04:02 PM
Hi Geetha,
the XSL is fine; when I run it inside Stylus I get

<AAA>
<OOO>10 </OOO>
<OOO>5 </OOO>
<OOO>7 </OOO>
<XXX>1</XXX>
<XXX>2</XXX>
<XXX>3</XXX>
<YYY>10 </YYY>
<YYY>5 </YYY>
<YYY>7 </YYY>
</AAA>

The problem is that you expect the same data to appear in a browser (IE or Firefox) when loading the XML file; but the browsers treat the result of the XSL processing as HTML, and not being the AAA, OOO, XXX and YYY in the HTML vocabulary, they get ignored and what you see is simply the text between them.

Hope this helps,
Alberto

Postnext
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 27 Jun 2007 06:51 PM
I am using the XML->Preview in IE menu option in Stylus Studio to view the transformed output. What is the menu option I should be using to view the output as XML within Stylus Studio? I am new to Stylus Studio.

Thanks
Geetha.

Postnext
Tony LavinioSubject: output is not xml
Author: Tony Lavinio
Date: 27 Jun 2007 09:37 PM
Open the XSLT file, and from there set the input URL
to be the XML file. Then run the XSLT and look in
the preview window at the bottom. The buttons in its
toolbar will let you see the output as a tree, as raw
text, or in an embedded IE window.

Postnext
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 28 Jun 2007 02:09 PM
I am using the XML->Preview in IE menu option in Stylus Studio to view the transformed output. What is the menu option I should be using to view the output as XML within Stylus Studio? I am new to Stylus Studio.

Thanks
Geetha.

Posttop
Geetha MenonSubject: output is not xml
Author: Geetha Menon
Date: 28 Jun 2007 02:15 PM
After following the steps you have mentioned,I am able to see the ouput as xml now.

Thanks a lot Tony and Alberto!

 
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.