This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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@nag.co.uk>
To: <xsl-list@lists.mulberrytech.com>
Sent: Monday, April 22, 2002 11:19 AM
Subject: Re: [xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]