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
Robert PetersonSubject: 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.


Imageoriginal.jpg


Imageduplicated.jpg

Postnext
Ivan PedruzziSubject: Error - Duplicating Elements
Author: Ivan Pedruzzi
Date: 17 Aug 2004 02:43 PM
Hi Robert,

Could you extract a small test case (XSLT+XML) we can work with?
That would help us a lot.

Thank You
Ivan

Postnext
Robert PetersonSubject: Error - Duplicating Elements
Author: Robert Peterson
Date: 17 Aug 2004 03:02 PM
Sure - here you go:


Unknownstate.xml


Unknownstatescrpt.xsl

Postnext
Ivan PedruzziSubject: 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

From
<xsl:eval xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/>STATETTLavgcrlim(this)</xsl:eval>

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.

Hope this helps
Ivan

Posttop
Robert PetersonSubject: Error - Duplicating Elements
Author: Robert Peterson
Date: 18 Aug 2004 08:13 AM
Thanks for taking the time to look at this - I appreciate it!

 
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.