Jump to content

Carriage Return


Guest melson_rocafort
 Share

Recommended Posts

Guest melson_rocafort

I have a XML Data where some carriage return and new line feed are contained. However, XSL only interprets them as spaces. How can I have XSL detecting eventual carriage return and consequently apply the right thing to do in the ouput?

<XML>   <Text data="This is my first line. Following come the carriage return :   This is the next text line."/></XML>

Then, in XSL :<xsl:value-of select="/XML/@data"/>Output is :"The is my first line. Following come the carriage return : Here isthe next text line."I would like it to normally be :"The is my first line. Following come the carriage return : Here is the next text line."Anyone can help me..Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...