XML XSL Stuff

Tim Field

Member
Joined
Aug 31, 2005
Messages
20
:confused:
My XML:

<school_address>Main Office<br/>Mercian Avenue<br/>Cheltenham<br/>Glos.<br/>GL52 3ED<br/>United Kingdom<br/><school_address>

My XSL:
<xsl:value-of select="/root/school_address"/>

How do I get the BRs to work? They just print out as normal, I actually want a line break.

Thanks, Tim
 
You could always try
Code:
<xsl:value-of select="/root/school_address" disable-output-escaping="yes|no" />
and see if that works, however I would suggest the XML itself is badly designed - the whole point of XML is storing information not formatting, <br /> should not be part of the data.
 
Back
Top