mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
added a quick pi test
This commit is contained in:
parent
c7c0c3d36c
commit
ccbdeeaa41
5 changed files with 26 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<yes><?xmlish woo?></yes>
|
|
@ -0,0 +1 @@
|
|||
<data/>
|
13
tests/XSLT/testsuite/TESTS/arabica/processing-instruction/pi01.xsl
Executable file
13
tests/XSLT/testsuite/TESTS/arabica/processing-instruction/pi01.xsl
Executable 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>
|
Loading…
Reference in a new issue