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
Boss AtHomeSubject: Replace in selection not working correctly
Author: Boss AtHome
Date: 11 Dec 2007 01:16 AM
SS Enterprise R2 2007, 894m, WindowsXP

Apologies if this has already been reported, but I just came across an error when editing XML files using Replace in Selection.

In a file with 7 lines selected and where the same string in all 7 lines should have been changed, only the first 4 lines were changed. When the remaining 3 lines were selected, the change only worked on first 2 of the 3.

None of the "match"/Regex/Search inside checkbox options had selected.

Postnext
Alberto MassariSubject: Replace in selection not working correctly
Author: Alberto Massari
Date: 11 Dec 2007 10:41 AM
Hi Sheila,
I tried a few cases, and in all cases the Replace All found and replaced all the instances in the selection. Could you post the text in the selection and the strings you were trying to replace?

Thanks,
Alberto

Postnext
Boss AtHomeSubject: Replace in selection not working correctly
Author: Boss AtHome
Date: 11 Dec 2007 10:51 AM
Hi, Alberto,

I just tried it again in a new file and had the same problem.

<Plans>
<PlanName name="AR">aaa</PlanName>
<PlanName name="PS">bbb</PlanName>
<PlanName name="MO">ccc</PlanName>
<PlanName name="TX">ddd</PlanName>
<PlanName name="RI">eee</PlanName>
<PlanName name="WA">fff</PlanName>
<PlanName name="GA">ggg</PlanName>
</Plans>

and my search string is "PlanName" to be changed to "Plan", with all 7 PlanName lines highlighted/selected.

It changes the first 4 lines and gives the dialog that 8 changes have been made. If I select the remaining 3 lines again, it changes only 2 of the 3 lines.

Sheila

Posttop
Alberto MassariSubject: Replace in selection not working correctly
Author: Alberto Massari
Date: 11 Dec 2007 01:00 PM
Hi Sheila,
you have uncovered a bug :-(
Everytime you are replacing a string located next to the end of a line, and the new text is shorter than the existing one, the selection will be reduced by one line.

We will fix the issue in the next update of Stylus.

Thanks,
Alberto

 
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.