Re: [xep-support] preventing line breaks before punctuation

From: Geoff Levner <>
Date: Thu Nov 02 2006 - 18:55:35 PST

On 30 Oct 2006, at 15:57, David Tolpin wrote:

> On Mon, 30 Oct 2006 18:39:53 +0400, Geoff Levner <geoff@n-
>> wrote:
>> I agree with you, in theory. But in fact, XSLT is very poorly
>> equipped for dealing with this problem, which is essentially to
>> replace all occurrences of a regular expression in a string with
>> another regular expression. And to provide a full solution for the
>> problem -- which involves detecting cases where the space(s) and the
>> punctuation mark are separated by XML markup -- would call for some
>> truly gnarly XSLT code.
> Geoff,
> a simple XSLT extension to do just that will be fast to implement
> and to run.
> David

It was not so simple nor fast to implement, but it does work!

Thanks for your suggestions.


(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Thu Nov 2 19:09:05 2006

This archive was generated by hypermail 2.1.8 : Thu Nov 02 2006 - 19:09:09 PST