- From: Philippe Le Hegaret via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Jul 2006 22:26:30 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/test-suite In directory hutz:/tmp/cvs-serv25846/test-suite Added Files: extract-assertions.xsl Log Message: Extract all assertions from the specs --- NEW FILE: extract-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" version="1.0"> <xsl:strip-space elements="*" /> <xsl:output method="xml" indent="yes" /> <xsl:template match="/"> <assertions> <xsl:for-each select='specs/spec'> <xsl:variable name='file' select='concat("../wsdl20/", @src)' /> <xsl:variable name='uri' select='@uri' /> <xsl:for-each select="document($file)/spec/body/div1//assert"> <assertion class='{@class}' id='{@id}' required='{@required}' origin="{$uri}"> <!-- <xsl:apply-templates select='*|text()' /> --> <xsl:value-of select='normalize-space(.)' /> </assertion> </xsl:for-each> </xsl:for-each> </assertions> </xsl:template> <xsl:template match="@*|*"> <xsl:apply-templates select="@*|node()" /> </xsl:template> <xsl:template match="text()"> <xsl:copy></xsl:copy> </xsl:template> </xsl:stylesheet>
Received on Wednesday, 5 July 2006 22:26:37 UTC