[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: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Mar 2023 21:39:26 -0000
Re:  Correcting misplaced spaces in XML documents
On Mon, 2023-03-27 at 20:00 +0000, Eliot Kimber
eliot.kimber@xxxxxxxxxxxxxx wrote:
>
> You can also use XQuery databases like BaseX to do the updating but
> that takes a bit more work to set up the writing of the result back
> out and the database may not always preserve all the document details
> the way Oxygen or Saxon will.

You don't have to use a database - or even have a database server
running - to use BaseX for this. Although if you do ahve a server
running, you can avoid the Java runtime startup time, of course.

Just use doc() and, if needed, file:write() and serialize().

I think these days BaseX no longer strips whitespace-only text nodes by
default, thankfully.

liam


--
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

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.