- From: Doug Davis via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 17 Aug 2010 20:02:37 +0000
- To: public-ws-resource-access-notifications@w3.org
Update of /w3ccvs/WWW/2002/ws/ra/edcopies
In directory hutz:/tmp/cvs-serv17921
Added Files:
spec-tests.css spec-tests.html spec-tests.xml spec-tests.xsl
Log Message:
adding testing doc templates
--- NEW FILE: spec-tests.xsl ---
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet version="1.0" exclude-result-prefixes="h s"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:s="http://w3.org/test">
<xsl:preserve-space elements="*"/>
<xsl:output method="html" encoding="utf-8" indent="no"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
media-type="text/html" omit-xml-declaration="no" />
<xsl:template match="s:spec">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> <xsl:value-of select="@name"/> Test Document </title>
<link href="spec-tests.css" type="text/css"
rel="stylesheet"/>
</head>
<body>
<p>
This is the test doc for
<a href="{s:url}"><xsl:value-of select="@name"/></a>. Boilerplate
header information willgo here...
</p>
<hr/>
<h1>Table of Contents</h1>
<ol>
<xsl:for-each select="s:feature">
<li>
<a href="#sec-F{position()}">
Feature F<xsl:value-of select="position()"/>:
<xsl:value-of select="s:name"/>
</a>
</li>
</xsl:for-each>
</ol>
<xsl:if test="s:description">
<hr/>
<p> <xsl:value-of select="s:description"/> </p>
</xsl:if>
<xsl:apply-templates select="s:feature"/>
</body>
</html>
</xsl:template>
<xsl:template match="s:feature">
<hr/>
<a name="sec-F{position()}"/>
<div>
<h1>
Feature: <xsl:value-of select="s:name"/>
<span class="note">(F<xsl:value-of select="position()"/>)</span>
</h1>
<div class="featureBox">
<p>
<xsl:apply-templates select="s:description"/>
</p>
<xsl:apply-templates select="s:test"/>
</div>
</div>
</xsl:template>
<xsl:template match="s:test">
<div class="testBox">
<h2>Test: <xsl:value-of select="@name"/>
<xsl:if test=" not('true' = @optional) ">
<b> (required)</b>
</xsl:if>
<span class="note">
(T<xsl:number format="1.1" level="multiple" count="s:feature|s:test"/>)
</span>
</h2>
<p>
<xsl:apply-templates select="s:description"/>
<br/>
<h3>Success Criteria:</h3>
<xsl:apply-templates select="s:success"/>
</p>
</div>
<!-- an IE bug -->
<p class="ieSpacer"><br/></p>
<!-- end of IE bug -->
</xsl:template>
<!-- === Just blindly copy all unknown elements/attributes === -->
<xsl:template match="s:*">
<xsl:element name="{local-name(.)}">
<xsl:for-each select="@*">
<xsl:copy/>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
--- NEW FILE: spec-tests.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>WS-Eventing Test Document </title><link href="spec-tests.css" type="text/css" rel="stylesheet"></link></head><body><p>
This is the test doc for
<a href=" http://www.w3.org/2002/ws/ra/edcopies/wseventing.html ">WS-Eventing</a>. Boilerplate
header information willgo here...
</p><hr></hr><h1>Table of Contents</h1><ol><li><a href="#sec-F1">
Feature F1:
EndTo </a></li><li><a href="#sec-F2">
Feature F2:
feature 2 </a></li></ol><hr></hr><p>
High-level info about this spec and its tests go here...
</p><hr><a name="sec-F1"></a><div><h1>
Feature: EndTo <span class="note">(F1)</span></h1><div class="featureBox"><p><description>
This will test the proper use of EndTo
</description></p><div class="testBox"><h2>Test: EndTo not supported<span class="note">
(T1.1)
</span></h2><p><description> tests that the proper fault is generated </description><br><h3>Success Criteria:</h3><success>
Client sends a Subscribe w/EndTo and the service generates
a EndToNotSupported fault.
</success></p></div><p class="ieSpacer"><br></p><div class="testBox"><h2>Test: t2<b> (required)</b><span class="note">
(T1.2)
</span></h2><p><description> test2 test2 test2 </description><br><h3>Success Criteria:</h3><success> success criteria .
The xml should look like this:
<xmp><foo>hello</foo></xmp></success></p></div><p class="ieSpacer"><br></p></div></div><hr><a name="sec-F2"></a><div><h1>
Feature: feature 2 <span class="note">(F2)</span></h1><div class="featureBox"><p><description> blah blah blah </description></p><div class="testBox"><h2>Test: t2<b> (required)</b><span class="note">
(T2.1)
</span></h2><p><description> test1 test1 test2 </description><br><h3>Success Criteria:</h3><success> success criteria .
The xml should look like this:
<xmp><foo>hello</foo></xmp></success></p></div><p class="ieSpacer"><br></p></div></div></body></html>
--- NEW FILE: spec-tests.xml ---
<?xml-stylesheet type='text/xsl' href='spec-tests.xsl'?>
<spec name="WS-Eventing" xmlns="http://w3.org/test">
<url> http://www.w3.org/2002/ws/ra/edcopies/wseventing.html </url>
<description>
High-level info about this spec and its tests go here...
</description>
<feature>
<name> EndTo </name>
<description>
This will test the proper use of EndTo
</description>
<test name="EndTo not supported" optional="true">
<description> tests that the proper fault is generated </description>
<success>
Client sends a Subscribe w/EndTo and the service generates
a EndToNotSupported fault.
</success>
</test>
<test name="t2">
<description> test2 test2 test2 </description>
<success> success criteria .
The xml should look like this:
<xmp>
<foo>hello</foo>
</xmp>
</success>
</test>
</feature>
<feature>
<name> feature 2 </name>
<description> blah blah blah </description>
<test name="t2">
<description> test1 test1 test2 </description>
<success> success criteria .
The xml should look like this:
<xmp>
<foo>hello</foo>
</xmp>
</success>
</test>
</feature>
</spec>
--- NEW FILE: spec-tests.css ---
h1 { margin : 0 }
h2 { margin : 0 ; margin-top : 10px ; text-decoration : underline }
h3 { margin : 0 ; margin-top : 5px }
.note { font-size : small ; color : #A988FF ; font-weight : normal }
.featureBox { background-color : #FFFFFF ;
margin-left : 10px ;
padding-left : 5px }
.testBox { border-left:2px solid #A9A9A9 ;
background-color : #FFFFFF ;
padding-left : 5px }
.ieSpacer { border-left : solid white ;
background-color : white }
p { margin : 0 }
xmp { background-color : #d3d3d3; border : 1px solid black ;
margin : 0 ; margin-left : 20px }
Received on Tuesday, 17 August 2010 20:02:38 UTC