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

Re: Poor man's test suite

Subject: Re: Poor man's test suite
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Thu, 20 Dec 2007 22:13:20 +0100
Re:  Poor man's test suite
I couldn't help but test if it was possible to feed all the relevant
files to my stylesheet in one go using Saxon 9b only and starting with
"xmltest/valid/sa". It works using:

saxon:compile
saxon:transform
saxon:expression
saxon:eval

<xsl:variable name="expression" select="saxon:expression('concat($p1,
$p2, $p3, $p4)')"/>

<xsl:value-of select="for $a in 1 to 119 return
saxon:transform(saxon:compile-stylesheet(doc('identity-template.xsl')),
doc(saxon:eval(
$expression, 'xmlconf/xmltest/valid/sa/', if($a lt 10) then '00' else
if ($a lt 100) then '0' else '', $a, '.xml')))"/>

Test file 012.xml must be fixed first, it is not well-formed.

Cheers,
Jesper Tverskov
www.xmlplease.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.