On Tue, Aug 26 2008 01:38:49 +0100, darren@xxxxxxxxxxxx wrote:
> I'm interested in unit testing XSL transformations, and so have been
Good for you!
> trying to get the tennison-tests code from Sourceforge working.
...
> When I run ant I get the following error:
...
> [xslt] /client/Test Cases/Software/tennison-tests/main/src/xslt/
> tests-utils.xsl:19: Fatal Error! To perform validation, a schema-aware
> XSLT processor is needed
> [xslt] Failed to process /client/Test Cases/test-1.xsl
>
> BUILD FAILED
> /client/Test Cases/build.xml:16:
> javax.xml.transform.TransformerConfigurationException: Failed to
> compile stylesheet. 1 error detected.
>
> FYI, I'm using Saxon 9 and Ant 1.7 on a Mac running Leopard 10.5.4. I
> have added saxon9.jar to $HOME/.ant/lib.
The offending line is:
<xsl:document validation="lax">
The "validation" attribute is only available if you have a schema-aware
processor, so Saxon is correct (though it could have used error code
XTSE1660 [1] for the error).
Remove the attribute and try again.
Regards,
Tony Graham Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx
Director W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599 http://www.menteithconsulting.com
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
xmlroff XSL Formatter http://xmlroff.org
xslide Emacs mode http://www.menteith.com/wiki/xslide
Unicode: A Primer urn:isbn:0-7645-4625-2
[1] http://www.w3.org/TR/xslt20/#basic-conformance
|