| Author |
Missing newline in xml output by using XSLT + SAXON + JAVA
|
tulips phan
Greenhorn
Joined: May 11, 2011
Posts: 5
|
|
Hi all,
Everyone can you help me to solve the problem? I have used XSLT to convert an input to xml and I don't know why the new line character is missing in the output as:
Output file t.xml as:
XSLT t.xslt as:
Input file t.ini as:
name = joe
server = Socrates
role = admin
initial screen = accounts
|
 |
g tsuji
Ranch Hand
Joined: Jan 18, 2011
Posts: 357
|
|
You can add the top-level element xsl:output to the xsl document, say, under the xsl:param element, like this.
And the functional part is the attribute indent="yes".
|
 |
tulips phan
Greenhorn
Joined: May 11, 2011
Posts: 5
|
|
g tsuji wrote:You can add the top-level element xsl:output to the xsl document, say, under the xsl:param element, like this.
And the functional part is the attribute indent="yes".
It works well now. Thanks so much :)
|
 |
tulips phan
Greenhorn
Joined: May 11, 2011
Posts: 5
|
|
Hi,
I also have a problem when using collection function.It only supports for getting file which is on xml format but I really like to get list of file which is non-xml format. Please help me to give another way or any option for collection function.
Thanks,
|
 |
g tsuji
Ranch Hand
Joined: Jan 18, 2011
Posts: 357
|
|
As to the new question, I've seen a new thread being opened for the same, and that, though it can arguably extrapolate to make some relation to the original question with some twists, I don't consider naturally directly related to it; hence, I would rather refer members to there than continuing this thread.
http://www.coderanch.com/t/537575/XML/Getting-list-non-xml-files
|
 |
 |
|
|
subject: Missing newline in xml output by using XSLT + SAXON + JAVA
|
|
|