xsl-list
[Top] [All Lists]

Re: [xsl] Using node-set variables in predicates (another node comparison question)

2022-01-05 13:31:59
Hi Makita-san,

You are right, in most cases the DITA-OT is good about suppressing 
leading/trailing spaces!

We use Oxygen’s PDF Chemistry for publishing, and I noticed the following:


  *   In TOC, trailing whitespace pushed the dot leader (dotted line) rightward.
  *   In figure titles, leading spaces pushed the title rightward.
  *   In table cells, leading spaces pushed the content rightward.

Sometimes <indexterm> elements would complicate the issue:

<entry><indexterm …/>  Here is some text.</entry>

Plus, the presence of leading/trailing spaces bothered me from a correctness 
perspective. 😊

I developed the trimming refactoring operation for all of these reasons. (The 
updates to ignore <indexterm> elements in the sibling searches are not shown in 
the code samples I shared on this list, but I’m happy to share the completed 
operation if you are interested.)


  *   Chris

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