Subject:Error - Duplicating Elements Author:Robert Peterson Date:17 Aug 2004 12:00 PM
XSL WYSIWYG editor is duplicating elements during a 'SAVE' operation.
V 5.3 Build 179j
See attached screen shots "original.jpg" and "duplicated.jpg"
Note elements in RH column of table in original.jpg.
I typed the characters "ABC" in a completely different part of the WYSIWYG display - not in the affected table. I then did a FILE>SAVE. Nothing seems to be changed in the original table at that time. HOWEVER, I did a FILE>CLOSE then a FILE>OPEN (same xsl file) and the table now contains duplicate elements in the RH column (see duplicated.jpg screen shot.)
More duplicates are added each time I repeat the steps above.
Subject:Error - Duplicating Elements Author:Ivan Pedruzzi Date:17 Aug 2004 06:00 PM
Robert
You are trying to load a transformation written in a different language called XSL.
This language was created by Microsoft before the XSLT 1.0 became a recommendation.
That's the reason why Stylus Studio gets confused.
Transforming your script from the old XSL to XSLT 1.0 in this case is simple.
The xsl:eval block need to be replaced, here is an example
To
<xsl:value-of select="format-number(AVGCRLIM, '###,##0;-###,##0')"/>
You don’t even need to use Microsoft proprietary script extensions because XSLT supports format-number.
You can get rid of the xsl:script block.
XSLT 1.0 is supported by many more (by far) products then the old XSL language.
The XSL language has been discontinued by Microsoft, so it is not supported by any new Microsoft products, sorry for the bad news.