[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kdom/catalog/TestSuite
From: Frans Englich <frans.englich () telia ! com>
Date: 2005-04-30 19:41:58
Message-ID: 20050430194158.C1DBF665 () office ! kde ! org
[Download RAW message or body]
CVS commit by englich:
A slew of fixes to runTests.xsl, by Dave Pawson from xml-dev.
M +5 -1 ChangeLog 1.18
M +18 -5 runTests.xsl 1.2
M +0 -2 kde/valid.xml 1.8
--- kdenonbeta/kdom/catalog/TestSuite/ChangeLog #1.17:1.18
@@ -1,3 +1,7 @@
-2005-05-14 Frans Englich <frans.englich@telia.com>
+2005-05-30 Frans Englich <frans.englich@telia.com>
+
+ A slew of fixes to runTests.xsl, by Dave Pawson from xml-dev.
+
+2005-04-14 Frans Englich <frans.englich@telia.com>
Added four tests, kde-valid-008 - 011, for testing uriSuffix and
--- kdenonbeta/kdom/catalog/TestSuite/runTests.xsl #1.1:1.2
@@ -21,8 +21,13 @@
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:str="http://exslt.org/strings"
+
xmlns="http://www.w3.org/1999/xhtml"
+
version="1.0">
+
+ <xsl:param name="dir" select="'.'"/> <!-- Directory for source file -->
+
+
<xsl:output method="xml" indent="yes"/>
@@ -61,5 +66,5 @@
<xsl:template mode="list" match="TestCases">
<li>
- <a href="#{str:encode-uri(@Desc, false())}">
+ <a href="#{@Desc}">
<xsl:value-of select="@Desc"/>
<xsl:text> — </xsl:text>
@@ -69,5 +74,6 @@
<xsl:template match="TestCases">
- <a name="{str:encode-uri(@Desc, false())}"/>
+ <a name="{@Desc}"
+ href="{@Desc}"/>
<div>
<table>
@@ -82,5 +88,5 @@
</thead>
<tbody>
- <xsl:apply-templates selecy="EntityTest | UriTest" />
+ <xsl:apply-templates select="EntityTest | UriTest" />
</tbody>
</table>
@@ -90,5 +96,5 @@
<xsl:template match="EntityTest | UriTest">
<tr>
- <td><a href="{str:encode-uri(@catalog, false())}"><xsl:value-of select="@id"/></a></td>
+ <td><a href="{concat($dir,'/',@catalog)}"><xsl:value-of select="@id"/></a></td>
<td><xsl:value-of select="normalize-space(.)"/></td>
<td>
@@ -164,4 +170,11 @@
</xsl:template>
+ <xsl:template match="*">
+ <xsl:message>
+***** <xsl:value-of select="name(..)"/>/<xsl:value-of select="name(.)"/>*******
+ </xsl:message>
+ </xsl:template>
+
+
</xsl:stylesheet>
<!-- vim: set et tw=80 ts=4 sw=4 sts=4: -->
--- kdenonbeta/kdom/catalog/TestSuite/kde/valid.xml #1.7:1.8
@@ -25,5 +25,4 @@
<TestCases Author="Frans Englich, KDE" Desc="Valid tests" xml:base="kde/" >
- <!--
<EntityTest type="nomatch" id="kde-valid-001" catalog="cat1.xml"
prefer="public" publicId="pubdelnext" systemId="" expectedFile="none">
@@ -75,5 +74,4 @@
</UriTest>
--->
<UriTest type="match" id="kde-valid-008" catalog="suff.xml"
uri="/uniqueName.xsd"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic