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

Re: RE: Replacing the space character with another ch

Subject: Re: RE: Replacing the space character with another character
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 14 May 2007 14:21:19 +0200
Re:  RE: Replacing the space character with another  ch
Mark Peters wrote:
Just wondering -- maybe you should be thinking "&amp;" -- do you examine
the raw output of your stylesheet, or view it in a browser?


Do you mean, <xsl:value-of select="translate(.,'&#x20;','&amp;')"/>


No. He means, I think, that it would help us a great deal if you show us the exact results (only relevant bits please) that you get from applying the template that David suggested. You should get something like:


  old[with spaces]
  new[with&amp;spaces]

if you view it in the browser (like Mark suggests), it likely looks more like this, but is actually the rendered result of your output:


old[with spaces] new[with&spaces]

After removing old/new, you should, of course, get "with&amp;spaces". If this latter is not correct, then we'd like to see a full stylesheet (small example please) plus a small input XML that reproduces this behavior with the processor you use.

Cheers,
-- Abel Braaksma

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-2011 All Rights Reserved.