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)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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
(Deleted User) Subject: Replace in selection not working correctly
Author: (Deleted User)
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
(Deleted User) Subject: Replace in selection not working correctly
Author: (Deleted User)
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

   
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.