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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Yitzhak KhabinskySubject: XSLT Preview in tree mode
Author: Yitzhak Khabinsky
Date: 06 May 2002 10:31 AM
I'm trying to view output of the XSLT processing in XSLT Preview window in tree mode. The problem is that I have
'Base URL for HTML links resolution' pointing to the relevant URL in the scenarios.

Having 'Base URL..' specified prevents Stylus Studio to show output as a tree.
Top line of the output contains base URL. Because of that output XML is not well-formed.

'Base URL ..' is not actual output of the XSLT processing. So, I think, if you want to show Base URL in the output window you can comment it out allowing the rest of the output be well-formed XML and suitable to view.

Regards,
Yitzhak Khabinsky

Postnext
Minollo I.Subject: Re: XSLT Preview in tree mode
Author: Minollo I.
Date: 06 May 2002 10:46 AM
Actually I think the problem is a bit different here.

The {BASE} tag is generated by the Stylus Studio processor only if you are
using the HTML output method (either explicitly, or detected by the processor).
When the output method is HTML, the output is almost never a well formed
XML file; for example, elements with empty content (only with attributes)
are not terminated with /> as XML would require.

So, if you want to see HTML output in the tree preview window, you'll have
to switch to XHTML; in that case the {BASE} tag won't be output (that may
be considered a bug, actually), and the generated output is well formed XML.

It's also worth noting that in general, even if the generated XML contains
multiple roots, the tree preview window WILL display the output as you
would expect (with all the roots visible).

Minollo

Postnext
Yitzhak KhabinskySubject: Re: XSLT Preview in tree mode
Author: Yitzhak Khabinsky
Date: 06 May 2002 11:02 AM
You are right.

I tried to follow your advice.
Unfortunately, when I am specifying
xsl:output method="xhtml"
an error shows up:
xhtml is an unrecognized value of the method attribute of xsl:ouput.

Regards,
Yitzhak Khabinsky

Posttop
Minollo I.Subject: Re: XSLT Preview in tree mode
Author: Minollo I.
Date: 06 May 2002 11:07 AM
The "xhtml" output method doesn't exist in XSTL 1.0 (it will in XSLT 2.0).

You should just choose "XML", and specify the XHTML namespace, like in:
{html xmlns="http://www.w3.org/1999/xhtml"}

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.