-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 24 April 2002 12:03, Evgeniy Strokin wrote: > Hi, > I use > translate(string(sts:selectNodeList(/,'.//someTag//')),' > ','') to remove all spaces from string. How can I > remove all carriage returns?
In XML, carriage-returns within attribute values are normalized to plain spaces unless they are escaped with ' ' or similar. Since the XPath expression is specified as (usually) the select attribute of some XSL tag, you will have to use such an escape sequence. So you might try this: <xsl:value-of select="translate($theNode, ' ', '')"/> If that doesn't work, then I don't know :) - -- Peter Davis -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8x1MjNSZCJx7tYycRAtrvAKDMNyy8BDiCBhnGflH3EAEpZSMhHwCfW26l 9eV8fW4YFv1x8jOS0VkkYFQ= =tvUm -----END PGP SIGNATURE-----
