|
Subject: Re: [xsl] csv to xml converter bug From: iwanttokeepanon <iwanttokeepanon@xxxxxxxxx> Date: Thu, 12 Jul 2007 15:45:29 -0500 |
<xsl:analyze-string select="concat($str, ',')" regex='(("[^"]*")+|[^,]*),'>
<xsl:matching-substring>
<xsl:sequence select='replace(regex-group(1), "^""|""$|("")""", "$1")'/>
</xsl:matching-substring>
</xsl:analyze-string>
Here you have regex='...' and select='...' ; but your HTML page shows regex="..." and select="..." ; which is invalid XML given the quotes in the regular expression.
I had copied the code out of the webpage and saxon won't compile it. I modified the quotes and all workes perfectly!
Thx, -- Rodman
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] csv to xml converter bug, Andrew Welch | Thread | Re: [xsl] csv to xml converter bug, Andrew Welch |
| Re: [xsl] Select Deepest Node only , J. Zhang | Date | [xsl] Grammars for XPath 2.0: which, Dimitre Novatchev |
| Month |