[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: string replace with ­

Subject: Re: string replace with ­
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Fri, 02 Nov 2001 23:33:29 +0000
non spacing break
Miller, James V (CRD) wrote:
Either of these is fine with me. I am just trying to allow the browser to break the string "machine.site.domain" at the '.' over a line-end. If there is a hyphenless way to do this, that
would be great.

Some print-formatters have routines to do this but I don't know of one for XSLT, and I don't know how many browsers will honour the relevant non-spacing break character (Unicode expert needed here).

This content is inside of a table element and am I just trying to give the browser an opportunity to reformat the string.

A very good idea.


I would also like allow the browser to break lines at a "/".

That would be one of the permissible breakpoints, but you run into trouble if it breaks the "method" component as in http:/ /www.w3.org in the "wrong" place. This is why an algorithm is needed, not a simple insertion.

Is there a difference in what is returned by xsl:value-of when called for an element vs an attribute?

If the two contain identical character data, no.


As a concrete example, the attribute value

./Common/Testing/Cxx/ObjectFactory.cxx

should have been translated to

.&shy;/Common&shy;/Testing&shy;/Cxx&shy;/ObjectFactory.cxx

but becomes

.A-/CommonA-/TestingA-/CxxA-/ObjectFactory.cxx

Wrong encoding, I think.


///Peter




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.