Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Escape characters in XSLT ??

843834Dec 20 2006 — edited Dec 20 2006
Hi guys

I am using the translate function in XSLT to replace a certain character in with another one in the variable that i pass (string)
it works with some thing like:
<xsl:value-of select="translate($string, 'i', 'j' )"/>

to replace all the i 's contained in the variable string with j 's

but when i use:

<xsl:value-of select="translate($string, '&#10', '</br>' )"/>

to solve my actual problemo which basically is to replace the xml newlines with html new lines in the transform the xml spy gives me the error:
the file is not well-formed ; expected

any escape character that i could use??

or any other suggestions??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2007
Added on Dec 20 2006
1 comment
480 views