[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 21:08:44 +0000
string currents. 02 nov 2001
Miller, James V (CRD) wrote:
I have an XML file that I am converting to HTML. In the processing, I have a string of the form
"machine.site.domain".  These strings can be fairly long.  When I output the HTML, I would to add a
hint to the browser that it can hyphenate this string at any ".".  So when I output the string I
would like it to be

machine&shy;.site&shy;.domain

So that it can be rendered as

machine-
.site.domain

David has answered your question, but can I ask why you want to do this this way? It will be very misleading to your readers: the normal way to break URLs over a line-end is to use a hyphenless break at punctuation points only. My personal preference is to leave the punctuation at the end of the line, but I know some editors prefer the punctuation at the start of the next line, eg

machine.
site.domain

or

machine
.site.domain

But I urge you to use one of them and not introduce additional
characters which are not part of the name but could be misunderstood
by the unwary.

///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.