Jump to content

[XML & XSL] Working with text in XSL


Recommended Posts

've been developing a stylesheet that takes XML from a database and parses it into a web page. The output for one field of the database consists of html code that I want passed on to the page I'm designing. A sample of the value is:

 

<brief_description>Short Sleeve Golf Shirt<br>100% Combed Cotton<br>No Pocket<br>Assorted Colors<br>Imported</brief_description>

 

Currently I've been able to get just this to show up:

Short Sleeve Golf Shirt<br>100% Combed Cotton<br>No Pocket<br>Assorted Colors<br>Imported

 

I want to be able to display this as:

Short Sleeve Golf Shirt
100% Combed Cotton
No Pocket
Assorted Colors
Imported

 

Can anyone help me?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/54314-xml-xsl-working-with-text-in-xsl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.