|
Subject: Re: [xsl] Enclosing sequence items in single quotes From: Florent Georges <lists@xxxxxxxxxxxx> Date: Fri, 19 Oct 2007 16:51:26 +0200 (CEST) |
cknell@xxxxxxxxxx wrote:
Hi
> This produces output like this:
> AA BB CC DD EE FF GG ...
> I need output like this:
> 'AA','BB','CC','DD','EE','FF','GG', ..., 'ZZ'
With xsl:value-of:
<xsl:value-of separator="," select="
for $c in $codes return
concat('''', $c, '''')"/>
And in plain XPath:
string-join(for $c in $codes return
concat('''', $c, ''''),
',')
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Enclosing sequence items in s, cknell | Thread | Re: [xsl] Enclosing sequence items , David Carlisle |
| [xsl] Enclosing sequence items in s, cknell | Date | Re: [xsl] Enclosing sequence items , David Carlisle |
| Month |