Re: [xslt] Patch to implement date:sum(node-set)



On Wed, Sep 22, 2004 at 02:59:51PM +0200, Derek Poon wrote:
> LibXSLT developers (esp. Daniel Veillard and Charles Bozeman),
> 
> This patch to libxslt 1.1.5 implements the date:sum function as
> specified in http://exslt.org/date/functions/sum/
> Please provide feedback, or apply it to the source.

  Hum ... I tried ... and hit the fact that there is already
a date sum function provided in recent versions.
  http://cvs.gnome.org/viewcvs/libxslt/libexslt/date.c?rev=1.30&view=auto
The version in CVs obviously got more testing since it was added in
1.1.9 last month (EXSLT date:sum added (Joel Reed))
   http://xmlsoft.org/XSLT/news.html
So I think I will keep the existing implementation, which seems
to work just as well except it generate one difference when running
the regression tests:

paphio:~/XSLT/tests/exslt/date -> ../../../xsltproc/xsltproc sum.2.xsl sum.2.xmlxmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
xmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
xmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
xmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
xmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
xmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
xmlXPathCompiledEval: evaluation failed
runtime error: file sum.2.xsl line 12 element value-of
xsltValueOf: text copy failed
no result for sum.2.xml
paphio:~/XSLT/tests/exslt/date ->

  I'm of course adding your regression tests to the suite :-)

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]