XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ron PapeSubject: Text output, blank line inserted
Author: Ron Pape
Date: 25 Jan 2007 12:14 PM
Hello,

Input is an XML file that is not well formed, rather proprietary - output from another application.

Output is in XML format, although I am using "text" so that I can create the elements when I want versus using the xsl:element. I cannot get my head around the need to separate the begin/end tags, so that the moment I am using text.

Anyway, when I run the XSL using Debug mode the output file is created OK. However, when I run normally (w/o debug) there is a blank line inserted at the top of the output.

There are several blank lines throughout the result document, but that is not a problem (at least for now).

I am new to using XSLT and thus far been unable to determine where this line is getting inserted.

thanks -

Posttop
Minollo I.Subject: Text output, blank line inserted
Author: Minollo I.
Date: 25 Jan 2007 12:54 PM
> Input is an XML file that is not well formed, rather proprietary - output from another application.

If it's not well formed, it's not XML. I wonder how you can use XSLT to process it?

> Output is in XML format, although I am using "text" so that I can create the elements when I want versus using the xsl:element.
>I cannot get my head around the need to separate the begin/end tags, so that the moment I am using text.

Anyone is free to suffer the way he pleases.
But you may want to reconsider that choice, as the extra lines/whitespaces you are seeing are most likely caused by the fact that you chose "text" as your output method.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.