Current Position:Home > XSL and carriage return problem

XSL and carriage return problem

Update:11-30Source: network consolidation
Advertisement
I'm using an HTML form to get the input text from the user.
The text is stored in an XML file and after that I use XSL transformation
to show the text as HTML file.
The problem is with carriage returns that user has entered.
In HTML file I see 
In my java code I tried to replace all &#13; with <br> but It sounds there is no &#13; when I
look in my XML content in a java string variable.
Any Idea?
Thanks,
Payam

The Best Answer

Advertisement
Store the user-entered portion in a <![CDATA[Data goes here]]> tag to preserve whitespace and carriage returns.
- Jesse
  • XSL and carriage return problem Update:11-30

    I'm using an HTML form to get the input text from the user. The text is stored in an XML file and after that I use XSL transformation to show the text as HTML file. The problem is with carriage returns that user has entered. In HTML file I see &#13;

  • XSL:FO: carriage returns within fo:block ? Update:11-30

    Im looking for a solution of the following problem: My XML Data contains a description field which maybe has some carriage returns in it. How can I display the Data without loosing the paragraphs? The output now is: Lorem ipsum sea ludus detracto ut,

  • Carriage Return Problem Update:10-11

    Hello, I have written some code which extracts data from a MySQL database and stores it in a CSV file using CFFILE. However, the database includes data inserted from an HTML textarea form element which is stored in a MySQL text field. The textarea da

  • Migration and Carriage Returns Problem Update:11-30

    I'm trying to migrate from Now Up To Date a Palm based 3rd party app - to Address Book in order to get get ready for and buy an iPhone. But all contacts with carriage returns in my NUTD contacts (doulble address lines and in Notes) look like this in

  • Write to spreadsheet adds carriage return Update:11-30

    I am using build array function to put together a number of strings and build an array of strings.  The build array is in a while loop.  A new line is added to the array every loop.  I am using write to spread sheet function to save the spreadsheet t

  • XSL mapping of ARTMAS IDoc - carriage returns and white space Update:10-11

    Hi all. I have tried all sorts here and am completely stuck. I am mapping an article master ARTMAS IDoc using XSL mapping and an extra carriage return and white space characters are being added to the FIELD1 and FIELD2 fields of the E1BPE1MARAEXTRT s

  • Problem with "carriage Return" or "Line Feed" in a table Update:10-11

    Hello, I need help with the function Zeichen(), so called it in german, I'm not sure if it is char() in english. In Pages Version 4.0.1 (746) I've created a table in Pages with this function to make an "carriage Return" in a cell. Here an exampl

  • JeditorPane text selection problem due to line feeds and carriage returns Update:10-11

    Hi folks, I have a jEditorPane (text/plain) that contains a document in which the user has highlighted some text. I want to pull the selected text from the pane, do some processing on it, and then put the altered text back in the same position. First

  • Carriage Return using XSL Update:11-30

    Hi, I have an RTF template that contains <xsl:text> </xsl:text> in one of the form fields because I want to force a Carriage return in the output. The form field looks something like: <?when?> Some text <xsl:text> </xsl:text>

  • Losing carriage returns in textarea / using plpdf to generate report Update:10-11

    Hello, I'm using Apex 3.1.1 and Oracle 10g database. I would appreciate any suggestions on how I can preserve carriage returns in a textarea when sending the text to a package that generates a report. Please see example of current problem (below code