[xep-support] preventing line breaks before punctuation

Geoff Levner geoff at n-generate.com
Thu Nov 2 18:55:35 PST 2006


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

> On Mon, 30 Oct 2006 18:39:53 +0400, Geoff Levner <geoff at n- 
> generate.com> 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.

Geoff

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list