Subject: Re: [xsl] whitespace problem From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Tue, 8 Jul 2003 15:43:17 +0100 |
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>	</xsl:text> > <xsl:apply-templates select="photo"/> > <xsl:text>	</xsl:text> > <xsl:apply-templates select="song_title"/> > <xsl:text>	</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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] whitespace problem, David Carlisle | Thread | RE: [xsl] whitespace problem, Michael Kay |
Re: [xsl] whitespace problem, David Carlisle | Date | Re: [xsl] whitespace problem, Devon Y. |
Month |