[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: whitespace problem

Subject: Re: whitespace problem
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 8 Jul 2003 15:43:17 +0100
tennison whitespace
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.