Subject: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.
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).
Subject: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.