Guest melson_rocafort Posted December 13, 2005 Share Posted December 13, 2005 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 More sharing options...
steve_marjoribanks Posted December 13, 2005 Share Posted December 13, 2005 I guess you're wanting the output to be in the form of a page in a web browser? If so, your stylesheet will be in html anyhow so can't you just put a <br/> in where you want the new line? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now