Richard Lewis richardlewis@fastmail.co.uk wrote:
I hadn't noticed that. Um, {,n} and {n,} seem to work in sed, but {,n} causes a runtime error in XSLT saying that it expects a digit and if you use {0,n} it says it doesn't allow a regex that matches a 0 length string (presumably because its the replace() function). ({1,n} just splits it into single word strings...)
I'll keep fiddling.
You could just use the XSLT stylesheets I linked earlier which will tokenise and then split the strings to a certain character length... that link looked fairly useful for those type things... The link was: http://sources.redhat.com/ml/xsl-list/2001-12/msg00651.html
Which is a mailing list post, but following the links round there should give you an includable stylesheet that you can then just call with some parameters for the formatting.
Cheers,