Carriage returns within attribute values

Subject: Carriage returns within attribute values
From: BOUCHET Sébastien <sebastien.bouchet@xxxxxxx>
Date: Fri, 24 Sep 1999 15:31:15 +0200
Title: Carriage returns within attribute values

Hi,

when outputing the value of attribute "att" in  <elt att="firstword secondword"> with XSLT,
I get :

firtsword secondword

which is not a big discovery. Now imagine you want to output the two words on 2 separate lines, i.e :

firstword
secondword

I tried to change the XML file : <elt att="firstword
secondword">

But it doesn't help : the \n is processed like a white space. Is there a standard way to achive this goal, a kind of <elt att="firstword\nsecondword"> ?

Thanks,

Sebastien


Current Thread