xsl-list
[Top] [All Lists]

Re: [xsl] Simple Word Wrap?

2007-09-28 12:06:03

By injecting a zero-width space (​) where you want to allow a 
line break to happen.  If no line break is needed, there is no visual 
disturbance.  If a line break is needed, the line breaks at the space.

For example, you could have the following in XSLT 2.0:

   replace(replace(.,'(','​('),')',')​')

... which injects a zero-width space before each left parenthesis and 
after each right-parenthesis.

Is there a nice way to do this replace in XSLT 1.0?


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>