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

Re: Initial whitespace in PI from XSLT, main body

Subject: Re: Initial whitespace in PI from XSLT, main body
From: "Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 8 May 2022 07:58:54 -0000
Re:  Initial whitespace in PI from XSLT
Thanks for the thoughts, Dimitre. Could also use some other character (like
b  (U+2420) or b$ (U+2424)) and convert it later. But in fact I have no need
to force a whitespace character on output. If I donbt mention it, the client
may not even notice that all of her PIs have lost a leading space after her
files are bfixedb with my XSLT. But the spaces are summarily unimportant.
(Although it does make me wonder how they got there in the first place. :-)

________________________________
Syd, I see two ways (if you really need to) to maintain a PI whose string
value starts with a whitespace character:

  1. Enclose this value in some strippable non-whitespace characters (say
apostrophes or quotes), or,

  2. If the value is guaranteed not to end with a space character, just use
the reversed string value, and when you get that in your code, reverse it
back.

Hope this helps,

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.