added a quick pi test

This commit is contained in:
jez 2007-11-22 21:53:44 +00:00
parent c7c0c3d36c
commit ccbdeeaa41
5 changed files with 26 additions and 1 deletions

View file

@ -104,6 +104,7 @@ int main(int argc, const char* argv[])
runner.addTest("ArabicaErrors", ArabicaTest_suite("errors"));
runner.addTest("ArabicaInclude", ArabicaTest_suite("include"));
runner.addTest("ArabicaProcessingInstruction", ArabicaTest_suite("processing-instruction"));
runner.run(argc, argv);

View file

@ -59,5 +59,13 @@
<output-file role="principal" compare="XML">include02.out</output-file>
</scenario>
</test-case>
<test-case id="pi01">
<file-path>processing-instruction</file-path>
<scenario operation="standard">
<input-file role="principal-data">data.xml</input-file>
<input-file role="principal-stylesheet">pi01.xsl</input-file>
<output-file role="principal" compare="XML">pi01.out</output-file>
</scenario>
</test-case>
</test-catalog>
</test-suite>
</test-suite>

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<yes><?xmlish woo?></yes>

View file

@ -0,0 +1 @@
<data/>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/">
<yes>
<xsl:processing-instruction name="xmlish">woo</xsl:processing-instruction>
</yes>
</xsl:template>
</xsl:stylesheet>