[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XPath Find and Replace

Subject: Re: XPath Find and Replace
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 21 Sep 2007 07:57:32 +0200
Re:  XPath Find and Replace
Hi Michael,


These are not find & replace, but only find, as I understand them, but perhaps this help you a bit?


XPath checker
https://addons.mozilla.org/en-US/firefox/addon/1095

Xpather:
https://addons.mozilla.org/en-US/firefox/addon/1192

Also, tools like Oxygen have powerful visual xpath tools (xpath 2.0 I believe) and quite some others exist, not sure if they can also do replace (I use xslt to do that).

Not sure this is what you are after,

Cheers,
-- Abel Braaksma

Michael Terry wrote:
Shouldn't text editors for programmers have find-and-replace with
XPath? In the case of invalid XML, like a fragment or HTML, it should
try to wrap the text content or convert it to valid XML temporarily in
memory using a free tool[1].

This comes up for me all the time when editing HTML. It'd be so
convenient. Most of the time I want to do pattern matching it's on
markup, and regular expression that can do this have lots of problems:

1) Multiline matching isn't enabled in the tool I'm using.
2) I'm not using perl, so I can't use dynamic patterns.
3) The pattern is fragile and breaks on one of the hundreds of
assumptions I didn't take into account.

[1] Or something. I know some hack is possible, else Firefox
extensions like Firebug couldn't give me expressions to nodes on
arbitrary web pages.

- mwt

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.