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

Re: Correcting misplaced spaces in XML documents

Subject: Re: Correcting misplaced spaces in XML documents
From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 26 Mar 2023 09:38:59 -0000
Re:  Correcting misplaced spaces in XML documents
On 26/03/2023 02:34, Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx wrote:
I suppose this falls into the category of data cleanup.

In the very simple case I am importing documents which have content
like this:

B B B <para>Press the<keyname> Escape </keyname>key.</para>

You'll notice that the adjacent spaces are wrapped in the keyname
element when they should just be adjacent to it, not in it.

This is a pathological case,

<aside> I believe this is commonly due to a bug in Word, where a double-click to select a word also used to include the following space, if any. AFAIK this has been fixed in current versions, but only relatively recently. What cause the inclusion of the leading space is more puzzling, but I would tend to suspect deficiencies in the original interface, whatever it was. </aside>

Peter

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.