[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[ANN] XTS: XSLT 2.0 Unit Testing stylesheets

Subject: [ANN] XTS: XSLT 2.0 Unit Testing stylesheets
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Tue, 23 Jan 2007 20:30:02 +0100 (CET)
 [ANN] XTS: XSLT 2.0 Unit Testing stylesheets
  Hi

  I put a set of stylesheets to process test suites for XSLT
2.0 on http://www.fgeorges.org/xslt/xslt-unit/.  Here is the
description from this page:

    XTS provides a unit testing framework for XSLT.  It allows
    you to write test suites related to styelsheet
    modules.  Basically, you can test any XSLT 2.0 sequence
    constructor like this:

    <t:tests>
      <t:title>hello-world()</t:title>
      <t:test>
        <t:expect select="'Hello, world!'"/>
        <xsl:sequence select="hw:hello-world()"/>
      </t:test>
    </t:tests>

    That will evaluate all the elements after the t:* as a
    sequence constructor (here the xsl:sequence), and then
    compare its result to the expected result (the result of an
    XPath expression, a piece of XML or an expected error).  You
    can even write your own predicates to compare the result or
    choose one of the available functions (as the eq operator or
    the standard deep-equal() function).

    When the test suite is run, an XML report is generated,
    containing all the related information (test performed,
    result of the evaluation...)  This report can then be
    formatted as HTML.

    Comments are very welcome at drkm-lib-xslt AT lists.sf.net
    (a mailing-list that doesn't require to subscribe in order
    to post).

  It is still a beta version, but I think it could already
be usefull, and I would like to have comments from XSL List,
if any.  The tarball is there:

    http://www.fgeorges.org/xslt/xslt-unit/xslt-unit.tar.gz

  To run the sample, just go to the directory where you
unpacked the archive, and:

   # saxon test/hello-world.xts src/test-suite-gen.xsl      \
       > test/test-hello-world.xsl
   # saxon test/hello-world.xsl test/test-hello-world.xsl   \
       > test/test-hello-world.xml
   # saxon test/test-hello-world.xml src/report-to-html.xsl \
       > test/test-hello-world.html

  The stylesheets are tested only with Saxon 8.8, but I'd
like to have time to test more version of Saxon and Gexslt
(the Colin's XSLT 2.0 processor) in the near future (Gexslt
is almost supported).

  Comments are very welcome on drkm-lib-xslt AT lists.sf.net.

  Regards,

--drkm























	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.