gimsieke/xspec

Shouldn't XSpec support XQuery as well?

Closed this issue · 1 comments

  Hi,

  XSpec is a nice framework for test suites.  For XSLT of course,
but also for XQuery.  Using the same test suite language, one can
write a test suite for XPath functions, regardless of whether
they are provided by an XSLT stylesheet, an XQuery library module
or even by another technology.

  I've adapted the initial generate-*.xsl stylesheets to generate
XQuery instead of XSLT.  This is just a quick and dirty change
(for instance it does not generate a nice XML report, it just
returns success or FAIL for each test, which is displayed to the
user, see screenshot).  I attach them just in case they could
help.

  As generate-xspec-tests.xsl and generate-tests-helper.xsl are
compile-time stylesheets, they are still stylesheets but
generating XQuery instead of XSLT (generate-query-tests.xsl and
generate-query-helper.xsl resp.) and as generate-tests-utils.xsl
is a stylesheet imported at run-time to provide utils, it has
been rewritten as a library module (generate-query-utils.xql)
imported from the generated XQuery module for the test suite.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Original issue reported on code.google.com by fgeorges on 8 Jan 2010 at 7:03

Attachments:

Resolved. I've just added this files to the repository.

Original comment by fgeorges on 25 Jan 2010 at 3:44

  • Changed state: Fixed