Inserting Line Breaks in XSL?
I'm developing an XSL to transform XML data into a text format. I need to force it to insert line breaks, but it's not working. No matter how many line breaks I insert it doesn't help.
This would be between two tags. Is there a way to force XSLT to insert a line break between two tags without putting text in there?
July 23rd, 2003, 11:01 AM
This will work for you:
<xsl:template match="Element" attr1="blah" attr2="blah">
July 24th, 2003, 01:08 AM
I had the same problem and I found a solution.
I don't know if it is the best but it works.
I define a variable:
This variable you could you in your program.
<xsl:value-of select="$newline"> <!-- line break in output file -->
you can also use
Helmut Hagemann Germany
fallen to the bottom of the facts?
I reach my hand and we go together
wer lesen und google kann ist klar im Vorteil
who read and google is able is clear in the advantage
December 29th, 2011, 11:30 AM
This seems most appropriate:
(without the space of course, but DevShed's forum engine doesn't allow me to show that)
<xsl:text xml:space="preserve">& #10;</xsl:text>