[Home] [By Thread] [By Date] [Recent Entries]
A specific problem in this category of "intra-para WS normalization", in
particular when normalizing nested emphasis elements, are embedded notes.
Suppose your XSLT already pulls out whitespace at the beginning or end of potentially nested emphasis elements like this: <p>text<emphasis> text <link>text </link></emphasis>text</p> -> <p>text <emphasis>text <link>text</link></emphasis> text</p> When dealing with nested inline elements, it is important not to pull out the trailing whitespace out of this embedded footnote: <p><phrase>text<fn><p>text. </p></fn></phrase>.</para> should *not* be normalized to: <p><phrase>text<fn><p>text.</p></fn></phrase> .</para> because it will move the previously layout-neutral space at the end of the footnote text to a place between the footnote marker and the period. So there should be some rule that doesn't pull out intra-para whitespace beyond the boundaries of the closest-ancestor para. I once wrote an XSLT library that does this nested-emphasis whitespace normalization for DocBook, TEI, and JATS: https://github.com/gimsieke/emphasis-normalize-space Rick, your example didn't suggest that the task at hand included normalizing this particular type of "emphasis-fringe WS", but if it does, then the library might be useful. Gerrit On 05.11.2019 16:29, Peter Flynn peter@xxxxxxxxxxx wrote: On 05/11/2019 01:00, Rick Quatro rick@xxxxxxxxxxxxxx wrote:Hi All,
|

Cart



