wood burning stoves*
The moose likes XML and Related Technologies and the fly likes Missing newline in xml output by using XSLT + SAXON + JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Missing newline in xml output by using XSLT + SAXON + JAVA" Watch "Missing newline in xml output by using XSLT + SAXON + JAVA" New topic
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: 499
    
    3
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: 499
    
    3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Missing newline in xml output by using XSLT + SAXON + JAVA
 
Similar Threads
XSLT parsing XML
Problem in XSL apply-templates Tag ??
xsl to merge duplicate tag
xhtml to xhtml using xslt
xslt String replace with node