[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML transform - no newlines
You can set a variable named newline and have text containing the new
line so whenever you want to split a line , send the newline variable as
output and it will be printed.
Variable can be defined as a global variable under <xsl:stylesheet ....>
as:
<xsl:varaible name="newline">
<xsl:text>
</xsl:text>
</xsl:variable>
Now in your template, you can use the new variable like this:
<xsl:value-of select='$newline"/> and a new line
characater is printed to the file ( I am assuming text file here).
Hope this helps
Raad
-----Original Message-----
From: cbgenrich
Sent: Sunday, December 02, 2001 8:44 PM
To: ajug-members
Cc: cbgenrich
Subject: XML transform - no newlines
I'm trying to use
transformer.transform(source,result);
The result is a file.
Trouble is, the output is all on one line.
Anyone know how to "pretty print" that output?