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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Richard PottsSubject: WYSIWYG - Changes disappearing
Author: Richard Potts
Date: 21 Jun 2006 12:34 PM
I've got an XML file, applying an XSL to it and want to display it in IE6.0 so want to add some html formatting

example source xsl:

<br/>
<xsl:text>Distance: </xsl:text>
<xsl:value-of select="totaldistance"/>
<br/>

I go to the WYSIWG screen and apply 'blue' text colour. to say 'Distance:'. It goes blue on the screen.

I look at the source tab and SS has done the following:

<xsl:text>
<font color="#0000ff">Distance:</font><![CDATA[ ]]>
</xsl:text>

so far so good.

I go back to the WYSIWYG tab and 'Distance:' is not blue any more!?
I go back to the source tab and I've got my original

<br/>
<xsl:text>Distance: </xsl:text>
<xsl:value-of select="totaldistance"/>
<br/>


This also happens if I try to 'bold' an item.

Any ideas? or just using it wrong?

SS Enterprise release 2 , 519d

Postnext
Minollo I.Subject: WYSIWYG - Changes disappearing
Author: Minollo I.
Date: 21 Jun 2006 03:11 PM
We can reproduce this problem, and we are investigating. The issue seems related to formatting of data contained in xsl:text instructions; if you remove xsl:text things work as expected.

Thanks.

Posttop
Minollo I.Subject: WYSIWYG - Changes disappearing
Author: Minollo I.
Date: 22 Jun 2006 05:36 PM
Just a follow up.

The problem is caused by the peculiar nature of xsl:text; when formatting text inside an xsl:text tag from the WYSIWYG environment, the proper formatting elements are created as *children* of xsl:text. As xsl:text doesn't output any sub-element (but only text nodes), those formatting instructions are lost when switching back and forth to/from text; but they wouldn't be properly rendered as XSLT result in the first place.

We have changed the behavior of WYSIWYG to force formatting applied to text inside xsl:text instructions to be global to the whole xsl:text container; that's the only way to allow formatting elements to be created as ancestors of the xsl:text element, preventing them from vanishing when the processor is run.

The change in behavior will be part of the next major Stylus Studio version.

 
Topic Page 1 2 3 4 5 6 7 8 9 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.