[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Blank lines in output XML file
I use the standard <xsl:copy> structure. Here is a part of the xlst file i am using <xsl:template match="/"> <xsl:apply-templates select="msns:Workbook"/> </xsl:template> <!-- ********************************************* --> <xsl:template match="msns:Workbook"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:copy-of select="*[name()!='Worksheet']"/> <xsl:apply-templates select="msns:Worksheet"/> </xsl:copy> </xsl:template> <!-- ********************************************* --> <xsl:template match="msns:Worksheet"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates select="msns:Table"/> <xsl:copy-of select="*[name()!='Table']"/> </xsl:copy> </xsl:template> <!-- ********************************************* --> The source XML file is a excel worksheet that is saved as a XML file. When i open it via edit under dos, Then the file looks ok ----- Original Message ----- From: "David Carlisle" <davidc@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, April 22, 2002 11:19 AM Subject: Re: Blank lines in output XML file > > > > doing a XML -> XML transformation, my output XML contains between each line > > a blank line. > > every character in the result tree, including newline characters, is > specified by the stylesheet, either being copied from the source tree or > from the stylesheet document. > > Given that you didn't show any input or your stylesheet it's hard to say > where your nelines are coming from. > > David > > _____________________________________________________________________ > This message has been checked for all known viruses by Star Internet > delivered through the MessageLabs Virus Scanning Service. For further > information visit http://www.star.net.uk/stats.asp or alternatively call > Star Internet for details on the Virus Scanning Service. > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|