xsl-list
[Top] [All Lists]

Re: [xsl] Removing unwanted space

2021-06-04 17:49:57
On 04/06/2021 23:45, Charles O'Connor coconnor(_at_)ariessys(_dot_)com wrote:
Ask an ye shall receive. Here's an example from a table (words have been 
changed to protect the innocent), though I think Peter's template would work 
fine here. However, there are gene names and yeast mating types that use 
markup on just parts of terms, and I'm not sure how it would work on them:

                  <td colspan="5" valign="middle">
                     <p>
                        <bold>Curds:</bold> sha la la la la lee</p>
                     <p>
                        <bold>Whey: </bold>here comes the nice</p>

Including the following space in a subelement is almost always an error,
and often passes unseen by the user. It wouldn't be too hard to detect
it in the instance where the element was NOT followed by a space, but
you'd need to be sure of your sample. Easy enough to test, though.

Peter
--~----------------------------------------------------------------
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>