xsl-list
[Top] [All Lists]

[xsl] Converting xml to csv

2006-12-11 07:56:23
Hello,

i'm converting xml to csv and so i wrote a xslt template to do that.

It look's like the following (simplified example):


<xsl:template match="car">
        <xsl:value-of select="@type"/>
        <xsl:apply-templates select="power"/>
        <xsl:text />
</xsl:template>

<xsl:template match="power">
        [
        <xsl:value-of select="."/>
        ]
<xsl:template>

The result is a little bit different from what i've expected.

Audi
        [
        100
        ]

I expected:

Audi [100]

How can i  achieve it that it looks like i want without the spaces
between templates and between rows?

Thanks in advance
Sven

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>