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

XSLT unit testing from Java

  • To: xml-dev@l...
  • Subject: XSLT unit testing from Java
  • From: "Pavel A. Sher" <pavel@a...>
  • Date: Mon, 8 Aug 2005 11:27:43 +0400
  • Organization: Actimind
  • Reply-to: "Pavel A. Sher" <pavel@a...>

xslt unit testing
Hello,

For those who uses Java and XSLT at the same time, it might be useful
to know about Juxy. 

Juxy is a Java unit testing library for XSLT. It allows you to write
JUnit tests for XSLT stylesheets. You can easily setup transformation
context (parameters, variables, current node) and then invoke the
transformation. There are corresponding methods to call or to apply
templates and you can even pass parameters to these templates, or
apply templates in different modes.

Result of the transformation can be verified in a number of ways. You
can evaluate XPath expression (Juxy depends on Jaxen for XPath
support) and compare its result with your expectation, or you can
compare XML canonically.

Juxy does not depend on any XSLT processor specific functionality. If
your XSLT processor supports TRaX API, it should work with Juxy. For
now Juxy has been tested with two most popular processors: Xalan and
Saxon.

Latest release of Juxy (0.6.5) brings support for URIResolver (you can
now pass your custom resolver and it will be used during
transformation) and better support for XSLT 2.0.

Juxy is available under the terms of the Apache License 2.0.

More details about Juxy can be found here: http://juxy.tigris.org/

-- 
Best regards,
 Pavel                          mailto:pavel@a...


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.