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

Re: ANN: 'Testing XSLT' training course PDF available

Subject: Re: ANN: 'Testing XSLT' training course PDF available
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Fri, 14 Dec 2007 18:46:47 +0530
Re:  ANN: 'Testing XSLT' training course PDF available
I almost agree with Andrew, that it's not possible to unit test a XSLT
stylesheet, which is like JUnit testing.

I guess, Florent that your unit test scripts will duplicate XSLT code
from the *actual* stylesheet ? Whereas, ideal unit testing will be
(JUnit like) - the unit test script invokes the main stylesheet (which
doesn't have any testing code, i.e. it's pure) and supplies some data
to it (an input XML for e.g.), and do assertions.

Please correct me if I am wrong.

On Dec 14, 2007 6:35 PM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> Andrew Welch wrote:
>
>  Hi
>
> > Personally I don't think you can unit test XSLT
>
>  Mmh, what do you think, in this context, about something that looks
> like the following:
>
>    <t:tests>
>      <t:title>Fibonacci</t:title>
>      <t:test>
>        <t:assert expect="0" select="my:fibonacci(0)"/>
>      </t:test>
>      <t:test>
>        <t:assert expect="1" select="my:fibonacci(1)"/>
>      </t:test>
>      <t:test>
>        <t:assert expect="6765" select="my:fibonacci(20)"/>
>      </t:test>
>    </t:tests>
>
>  ;-)
>
>  Regards,
>
> --drkm


-- 
Regards,
Mukul Gandhi

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.