Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How do I add a new line in a XML file rendered using xsl file How do I add a new line in a XML file rendered using xsl fileTo: NULL Date: 1/4/2007 1:57:00 AM
This is my xml file:
<root>
<node>
<text>Line 1
Line 2
Line 3
</text>
</node>
<node>
<text>Line 1
Line 2
</text>
</node>
</root>
This is the output I want:
Line 1
Line 2
Line 3
Line 1
Line 2
How do I construct my xsl so that it produces a new lines because html
ignores white space? When using <xsl:value-of
select="/root/node/text"/>
I have tried using <br /> in my xml however this does not parse. I have
tried uising < and > also and I have tried using a
dummy character such as '{n}' in the xml and used the translate xpath
function to replace the '{n}' with '<br />' however get the dreaded '<'
is an invalid character error.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
