Output a Newline From XSLT





0/5 (0 vote)
Thanks to this page, I found an even shorter alternative. First, you can add an entity in your DOCTYPE section:"> ]>You can then use this where you like in the document:&newline;That will get rendered...
Thanks to this page, I found an even shorter alternative. First, you can add an entity in your
DOCTYPE
section:
<!DOCTYPE stylesheet [
<!ENTITY newline "<xsl:text>
</xsl:text>"> ]>
You can then use this where you like in the document:
<div>&newline;</div>
That will get rendered as:
<div>
</div>