xsl-list
[Top] [All Lists]

Re: whitespace problem

2003-07-08 07:43:17
Hi Devon,

...and I need to turn these into text file of tab separated values,
each artist element must have a line break after it. Basically I'm
turning it into a .sql file. I'm having strange strange troubles
though. I've done lots of transformations, but never into
method='text' before, so I've never dealt with whitespace.
[snip]
<xsl:template match="artists">
  <xsl:apply-templates select="name"/>
  <xsl:text>&#9;</xsl:text>
  <xsl:apply-templates select="photo"/>
  <xsl:text>&#9;</xsl:text>
  <xsl:apply-templates select="song_title"/>
  <xsl:text>&#9;</xsl:text>
  <xsl:apply-templates select="date"/><xsl:text>
</xsl:text>
</xsl:template>

(I assume that this template is actually matching 'artist' elements
rather than 'artists' elements.)

I tried this with Saxon, MSXML3 and MSXML4 and it gave me the output
that I expected, namely:

Commandos       commandos.jpg   Everybody's Way 2003-07-03

You haven't told us much but the problem that you're having sounds
suspiciously similar to the problem that Allistair Crossley reported
recently (and that we weren't able to track down).

Can you fill us in on some more details: what processor you're using,
how you're invoking it, what the rest of your stylesheet looks like,
and what output you actually get.

Thanks,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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