• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Missing newline in xml output by using XSLT + SAXON + JAVA

 
tulips phan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 666
3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 666
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic