- From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Jul 2006 22:27:09 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite In directory hutz:/tmp/cvs-serv26547/test-suite Added Files: violate-assertions.xsl Log Message: Extract all the assertion violations from the test metadata --- NEW FILE: violate-assertions.xsl --- <?xml version="1.0" encoding="UTF-8"?> <!-- This stylesheet has not been automatically generated. Do edit it! --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="tm" xmlns:tm="http://www.w3.org/2006/02/wsdl/TestMetadata" version="1.0"> <xsl:strip-space elements="*" /> <xsl:output method="xml" indent="yes" /> <xsl:template match="/"> <ViolatesAssertions> <xsl:for-each select='test-suite/test-case'> <xsl:variable name='file' select='concat(@id, "/TestMetadata.xml")' /> <xsl:variable name='test-id' select='@id'/> <xsl:for-each select="document($file)/tm:TestMetadata//tm:ViolatesAssertion"> <ViolateAssertion assertion='{.}' test-id='{$test-id}' origin="{normalize-space(ancestor::tm:TestMetadata/tm:Identifier)}"> </ViolateAssertion> </xsl:for-each> </xsl:for-each> </ViolatesAssertions> </xsl:template> </xsl:stylesheet>
Received on Wednesday, 5 July 2006 22:27:18 UTC