Subject: Re: [xsl] csv to xml converter bug From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Tue, 10 Jul 2007 16:42:17 +0100 |
> I gave up dirty hacks long ago (and as you've said yourself, > that was a dirty hack).
I wash my hacks in Persil.
Haven't worked out the detail, but it seems to me that if you add a trailing comma at the end of the string, you can then do
<xsl:analyze-string select="concat($in, ',')" regex='("[^"]*"|[^,]*),'> <xsl:matching-substring> <token><xsl:value-of select="regex-group(1)"/></token> </xsl:matching-substring> </xsl:analyze-string>
Doesn't strip the quotes off, but that part's easy.
-- http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] csv to xml converter bug, Michael Kay | Thread | Re: [xsl] csv to xml converter bug, Andrew Welch |
RE: [xsl] csv to xml converter bug, Michael Kay | Date | [xsl] 5 column grid sorted by Coun, W Charlton |
Month |