Re: [xsl] Initial whitespace in PI from XSLT, main body
2022-05-08 02:59:04
Thanks for the thoughts, Dimitre. Could also use some other character (like ␠
(U+2420) or  (U+2424)) and convert it later. But in fact I have no need to
force a whitespace character on output. If I don’t mention it, the client may
not even notice that all of her PIs have lost a leading space after her files
are “fixed” 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,
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [xsl] Initial whitespace in PI from XSLT, main body, Bauman, Syd s(_dot_)bauman(_at_)northeastern(_dot_)edu
- [xsl] Re: Initial whitespace in PI from XSLT, appendices, Bauman, Syd s(_dot_)bauman(_at_)northeastern(_dot_)edu
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Michael Kay mike(_at_)saxonica(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Bauman, Syd s(_dot_)bauman(_at_)northeastern(_dot_)edu
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body,
Bauman, Syd s(_dot_)bauman(_at_)northeastern(_dot_)edu <=
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Wendell Piez wapiez(_at_)wendellpiez(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Wendell Piez wapiez(_at_)wendellpiez(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Michael Kay mike(_at_)saxonica(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Wendell Piez wapiez(_at_)wendellpiez(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Peter Flynn peter(_at_)silmaril(_dot_)ie
- Re: [xsl] Initial whitespace in PI from XSLT, main body, Wendell Piez wapiez(_at_)wendellpiez(_dot_)com
|
|
|