Subject:XSL Errors when converting to WYSIWYG format in Stylus Studio Professional Author:Eric A Date:15 Dec 2005 02:36 PM
When converting my current XSL template to the WYSIWYG format and then previewing the doc from the WYSIWYG tab, I find that Stylus is incorrectly changing my XSL code. (Actually it also changes the code if I preview or just add text through the WYSIWYG screen)
More specifically it is adding a > sign near the top of the code and inserting the top level of my xsd structure into certain xsl:value-of select statements.
The later error is only happening when I use a xsl:value-of select="format-number(round(/xsd path... syntax.
It changes it to xsl:value-of select="/xsd path/format-number(round(/xsd path... which is invalid.
I am using an external includes file for common routines & text, and an external stylesheet definition file for fonts.
Stylus Studio 2006 XML Professional Edition Build 501f
xml version 1.0
Subject:XSL Errors when converting to WYSIWYG format in Stylus Studio Professional Author:Minollo I. Date:15 Dec 2005 04:11 PM
Considering that Stylus Studio goes through a preview process to render what you see in WYSIWYG, and considering that the underling MS Internet Explorer HTML editor takes "interesting" initiatives in organizing its internal HTML DOM representation, it may happen that especially in the presence of included/imported modules some bad behavior is triggered.
Unfortunately we won't be able to help much without being able to reproduce the problems you are describing; any chance you can either attach or email us (email@example.com) the files (XSLTs, XML and any included module) that you are using?
Subject:XSL Errors when converting to WYSIWYG format in Stylus Studio Professional Author:Eric A Date:04 Jan 2006 09:49 AM
Warning this post is long with the detailed explanations below.
Thanks for the reply.
I'm using Stylus Studio XML Profession Edition 2006 - licensed version
Framework version: Build 501f
I tried the Check for latest version option from inside of Stylus and it tells me that I'm using the latest version. I'll gladly try 501g if you have a link.
I've found the error only happens when I insert a new paragraph, editing inline text does not cause the issue.
Detailed steps to reproduce my error:
1) Open the sent Xsl file in Stylus Studio
2) Still on the XSLT Source tab, Click the preview results button and verify that the document is correct with no errors
3) Create a new Scenario with the ecatest.xml file as the Source XML URL, nothing in the Output URL, the file directory location as the Base URL for HTML links resolution (mine is file:///c:/working) and the Store paths relative to XSLT document path box checked
4) Click the WYSIWYG tab
5) Click Yes to the prompt to change the stylesheet's output method to HTML
6) Add a new paragraph by hitting enter after the paragraph in section 1 (this error also occurs if text is pasted in as a new paragraph)
7) Hit the preview results button on the WYSIWYG tab
8) First error message appears stating: Expected node test in value-of URL: file:///c:/Working/(filename) Line: 80 Col: 8 Jump to location? Yes or No.
9) Click either, (new popup msg) XML2HTML WYSIWYG encountered an error: Expected node test in value-of ...
10) Click OK, Stylus Studio error message that it has encountered a problem and needs to be closed. We are sorry for the inconvenience. (The rest is the typical Windows send error message or restart Stlyus studio message)
One note, if you follow the steps above through step 6,(inserting the new paragraph text on the WYSIWYG tab) and then click back to the XSLT Source tab without previewing, you will see that it has changed my xsl:value-of select logic in section 3.3. The root path that it adds before my format-number syntax is what appears to be invalid.
Subject:XSL Errors when converting to WYSIWYG format in Stylus Studio Professional Author:Minollo I. Date:04 Jan 2006 04:13 PM
I tried reproducing the problem, still with no luck, even if I do recognize the problem you are describing as a typical HTML DOM issue that we often fight in Internet Explorer.
In step #6, where do you *exactly* position the cursor before hitting Enter? Also, what version of Internet Explorer have you installed on your machine? (Stylus Studio uses Internet Explorer in design mode as its wysiwyg editing component)
Subject:XSL Errors when converting to WYSIWYG format in Stylus Studio Professional Author:Eric A Date:04 Jan 2006 04:40 PM
I place the cursor at the end of the paragraph in item 1. Right after the period, in the line that ends ...subject to Force Majeure.
My Internet Explorer is version: 6.0.2800.1106.
Would the JVM version matter? Mine is 1.5.0_02-b09
Another thing I noticed is that when I click on the WYSIWYG tab the first time, I get a greater-than sign inserted at the top of my document, which is not in my code. (This led me to believe that I have an HTML error that Stylus is trying to correct). The location can be described as: from the top left corner of the document, the app-tm open tag is first, then the app-tm close tag, then the new >, then the choose open tag. If you then go back and look at the code on the XSLT source tab, the > sign is in line 7 after the <xsl:apply-templates/> code.
I'm just throwing out ideas in case they may help.