Friday, August 18, 2006

unit testing xslts

Some XSLT testing frameworks

XSLTUnit
http://xsltunit.org

Outdated
Tough to setup the testing environment

Tennison’s testing framework
http://tennison-tests.sourceforge.net/
http://www.jenitennison.com/xslt/utilities/unit-testing/

Test cases could be written in xml itself
Easy to write test cases
Supports xpath based expressions testing of nodes and values
Tests are more readable than XSLT unit
Don’t support global variable and params setting properly

UTF-X
(http://utf-x.sourceforge.net/)

Test cases could be written in xml itself
Supports template generation for writing test cases
Support for ant tasks to run test while executing builds
Needs java 1.5
Supports Junit
Don’t support advanced xslt testing needs

Juxy
(http://juxy.tigris.org/)

Java Based
Needs to have knowledge of java programming
Could be integrated with JUnit
Support param set-up for xslt and global variable setup and other options for xslt testing
Drawback: need knowledge of java to write test cases.

Recommendations:

If you are okie to write xslt test cases in java, then Juxy will provide us with much flexible framework.

Or else if you need to stick with XML based test case building (which can be written just with knowledge of xml/xslt alone), then we could use the Tennison Testing framework.

Wednesday, August 09, 2006

Customizing the web - chickenfoot

User customizations of today’s website are mostly restricted to theme and color of the site. Are these customizations solves the specific needs of the user? The customizations provided are just visual; they don’t solve the content needs of different users.

Though we have concept of services, and portal yet the flexibility is restricted by service provider. The end user doesn’t have real control to customize the site as per his needs both in look and content.
Now-a-days the web is just display of HTML tags interpreted by browsers. Nobody can sense out of data with the markup tags in the HTML. The mark-up are for visual clues, no markup for the meaning of the data. RDF is a proposed technology to describe your web document and resources much better. If the markup gives you the meaning and context of the data out there in the web, then the search can be most accurate as possible. The search query more specific like this, even will lead you the exact result right away.
“Show the theaters running ‘MI-3’ where tickets are available for tonight”

But there is long way to achieve this, as it takes time to implement this for most sites.

Recommended Blog Posts