blob: bcac7a4505e8df23840fb9bafab9202cf0fa2f4b [file] [log] [blame]
0.1 original xml:
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="xslt-text.xsl"?><TEST>SOURCE XML: &lt;&lt;&lt;&amp;тест&amp;&gt;&gt;&gt;</TEST>
0.2 xsl1:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" encoding="KOI8-R"/>
<xsl:template match="TEST">CHARACTERS IN XSLT: &lt;&lt;&lt;&amp;тест&amp;&gt;&gt;&gt;
<xsl:apply-templates/><xsl:text>
</xsl:text></xsl:template>
<xsl:template name="foobar">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
0.3 xsl2:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="TEST">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
CHARACTERS IN XSLT: ééééééééééé<br /> <xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template name="foobar">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.0 void importStylesheet(in DOMNode style):
1.1 Import two different stylesheets:
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>
CHARACTERS IN XSLT: ééééééééééé<br /><br />SOURCE XML: &lt;&lt;&lt;&amp;тест&amp;&gt;&gt;&gt;</body></html>
1.2 Import same stylesheet twice:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title></head>
<body>
<pre>CHARACTERS IN XSLT: &lt;&lt;&lt;&amp;тест&amp;&gt;&gt;&gt;
SOURCE XML: &lt;&lt;&lt;&amp;тест&amp;&gt;&gt;&gt;</pre>
</body>
</html>
1.3 Import undefined stylesheet:
Success
1.4 Import undefined stylesheet:
****Failure**** (expected exception, instead got result: "undefined")
1.5 Don't import stylesheet:
Success
2.0 DOMDocumentFragment transformToFragment(in DOMNode source, in DOMDocument output):
2.1 fragment with undefined source:
Success
2.2 fragment with undefined output document:
Success
2.3 use non-DOMDocument output parameter:
Success
2.4 transform to same fragment twice:
Success
2.5 transformed fragment containing only text:
Success
2.6 fragment using passed parameters:
Success
3.0 DOMDocument transformToDocument(in DOMNode source):
3.1 document from undefined source:
Success
3.2 transform twice:
Success
4.0 void setParameter(in DOMString namespaceURI, in DOMString localName, in Value value):
4.1 pass setParameter same localname, different namespaces:
****Failure**** (expected: "Success" actual: "Failure")
4.2 pass undefined namespace:
Success
4.3 pass setParameter an undefined name:
****Failure**** (expected exception, instead got result: "undefined")
4.4 pass unsupported value to setParameter:
****Failure**** (expected exception, instead got result: "undefined")
5.0 Value getParameter(in DOMString namespaceURI, in DOMString localName):
5.1 pass getParameter an undefined name:
****Failure**** (expected exception, instead got result: "Success")
5.2 pass getParameter a name which has not been set:
Success
5.3 verify getParameter actually gets (and set sets):
Success
6.0 void removeParameter(in DOMString namespaceURI, in DOMString localName):
6.1 pass removeParameter same localname, different namespaces:
****Failure**** (expected: "Success" actual: "Failure")
6.2 verify removeParameter actually removes using undefined namespace:
Success
6.3 pass removeParameter undefined name:
Success
6.4 pass removeParameter a name which has not been set:
Success
6.5 verify removeParameter actually removes:
Success
7.0 void clearParameters():
7.1 verify that clearParameters does:
Success
8.0 void reset():
8.1 verify that parameters have been cleared:
Success
8.2 verify that stylesheet has been cleared:
Success