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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Using XSL files to transform x... (4)
-> + Logical Operators in if test (2)
-> + xpath with predicate otherwise... (3)
-> + XSL logic help (2)
-> + Rounding of Numbers Issue (3)
-> + using saxon trace (option -T) ... (4)
-> + Returning a node-set (4)
-> + Dynamic columns (2)
-> + Creating an XML fragment from ... (2)
-> + Writing quot. marks with XSLT ... (3)
-> + New to XSL with Recursion/Coun... (2)
-> + Identity Transform problem. Hi... (5)
-> - How can I put static content o... (1)
-> - WYSIWYG - Changes disappearing (3)
-> ->WYSIWYG - Changes disappe...
-> ->WYSIWYG - Changes disappe...
-> + Generating DeNormalized Schema (2)
-> + Building TransforMiiX standalo... (2)
-> + Problem with xs name space in ... (2)
-> + xsl:param seems to be xsl:par... (4)
-> + Input namespace prefix problem (4)
-> + Need help with grouping (3)
-- Previous [1441-1460] [1461-1480] [1481-1500] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.