diff options
author | SVN Migration <svn@php.net> | 2003-10-30 10:07:27 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2003-10-30 10:07:27 +0000 |
commit | e00288b5b25766c2292b2e45596b9bc25d910111 (patch) | |
tree | d217ee89217ebab98202493d6820befb7bfdca6e /ext/xsl | |
parent | 0b3fe789062221deb65f7c0b15c450d9bda9bcbb (diff) | |
download | php-git-php-5.0.0b2.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_5_0_0b2'.php-5.0.0b2
Diffstat (limited to 'ext/xsl')
-rw-r--r-- | ext/xsl/tests/documentxpath.xsl | 10 | ||||
-rw-r--r-- | ext/xsl/tests/prepare.inc | 20 | ||||
-rw-r--r-- | ext/xsl/tests/skipif.inc | 1 | ||||
-rw-r--r-- | ext/xsl/tests/streamsinclude.xsl | 6 | ||||
-rw-r--r-- | ext/xsl/tests/xslt.xml | 28 | ||||
-rw-r--r-- | ext/xsl/tests/xslt.xsl | 25 | ||||
-rw-r--r-- | ext/xsl/tests/xslt.xsl.gz | bin | 395 -> 0 bytes | |||
-rw-r--r-- | ext/xsl/tests/xslt001.phpt | 22 | ||||
-rw-r--r-- | ext/xsl/tests/xslt002.phpt | 29 | ||||
-rw-r--r-- | ext/xsl/tests/xslt003.phpt | 23 | ||||
-rw-r--r-- | ext/xsl/tests/xslt004.phpt | 29 | ||||
-rw-r--r-- | ext/xsl/tests/xslt005.phpt | 31 | ||||
-rw-r--r-- | ext/xsl/tests/xslt006.phpt | 23 | ||||
-rw-r--r-- | ext/xsl/tests/xslt007.phpt | 24 | ||||
-rw-r--r-- | ext/xsl/tests/xslt008.phpt | 31 | ||||
-rw-r--r-- | ext/xsl/tests/xslt009.phpt | 25 |
16 files changed, 0 insertions, 327 deletions
diff --git a/ext/xsl/tests/documentxpath.xsl b/ext/xsl/tests/documentxpath.xsl deleted file mode 100644 index 0e5c5c181d..0000000000 --- a/ext/xsl/tests/documentxpath.xsl +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Id: documentxpath.xsl,v 1.1 2003-10-27 15:12:20 chregu Exp $ --> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > - <xsl:output method="xml" encoding="iso-8859-1" indent="no"/> -<xsl:template match="/"> - -<xsl:value-of select="document('compress.zlib://ext/xsl/tests/xslt.xsl.gz')/xsl:stylesheet/xsl:param/@name"/> -</xsl:template> - - </xsl:stylesheet> diff --git a/ext/xsl/tests/prepare.inc b/ext/xsl/tests/prepare.inc deleted file mode 100644 index c2e76fd4b3..0000000000 --- a/ext/xsl/tests/prepare.inc +++ /dev/null @@ -1,20 +0,0 @@ -<?php -$dom = new domDocument; -$dom->load(dirname(__FILE__)."/xslt.xml"); -if(!$dom) { - echo "Error while parsing the document\n"; - exit; -} -$xsl = new domDocument; -$xsl->load(dirname(__FILE__)."/xslt.xsl"); -if(!$xsl) { - echo "Error while parsing the document\n"; - exit; -} -$proc = new xsltprocessor; -if(!$xsl) { - echo "Error while making xsltprocessor object\n"; - exit; -} - -?> diff --git a/ext/xsl/tests/skipif.inc b/ext/xsl/tests/skipif.inc deleted file mode 100644 index 0ef73723a3..0000000000 --- a/ext/xsl/tests/skipif.inc +++ /dev/null @@ -1 +0,0 @@ -<?php if (!extension_loaded('xsl')) die('skip xsl extension not available');?> diff --git a/ext/xsl/tests/streamsinclude.xsl b/ext/xsl/tests/streamsinclude.xsl deleted file mode 100644 index 6f8bc40ed9..0000000000 --- a/ext/xsl/tests/streamsinclude.xsl +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Id: streamsinclude.xsl,v 1.1 2003-10-27 15:12:20 chregu Exp $ --> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > - <xsl:output method="xml" encoding="iso-8859-1" indent="no"/> - <xsl:include href="compress.zlib://xslt.xsl.gz"/> -</xsl:stylesheet> diff --git a/ext/xsl/tests/xslt.xml b/ext/xsl/tests/xslt.xml deleted file mode 100644 index b0e9506c7b..0000000000 --- a/ext/xsl/tests/xslt.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version='1.0' encoding="iso-8859-1" ?> -<chapter language="en"> - <title language="en">Title</title> - <para language="ge"> - -<!-- comment --> - <informaltable> - <tgroup cols="3"> - <tbody> - <row> - <entry>a1</entry> - <entry morerows="1">b1</entry> - <entry>c1</entry> - </row> - <row> - <entry>a2</entry> - <entry>c2</entry> - </row> - <row> - <entry>ä3</entry> - <entry>b3</entry> - <entry>c3</entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> -</chapter> diff --git a/ext/xsl/tests/xslt.xsl b/ext/xsl/tests/xslt.xsl deleted file mode 100644 index 6248a28580..0000000000 --- a/ext/xsl/tests/xslt.xsl +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Id: xslt.xsl,v 1.1 2003-10-27 08:46:55 chregu Exp $ --> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > - <xsl:output method="xml" encoding="iso-8859-1" indent="no"/> - <xsl:param name="foo" select="'bar'"/> - <xsl:template match="/"> - <html> - <body> - <xsl:value-of select="$foo"/><xsl:text> -</xsl:text> - <xsl:apply-templates select="/chapter/para/informaltable/tgroup/tbody/row"/> - </body> - </html> - </xsl:template> - - <xsl:template match="row"> - <xsl:for-each select="entry"> - <xsl:value-of select="."/> - <xsl:text> </xsl:text> - </xsl:for-each> - <br/> <xsl:text> -</xsl:text> - - </xsl:template> -</xsl:stylesheet> diff --git a/ext/xsl/tests/xslt.xsl.gz b/ext/xsl/tests/xslt.xsl.gz Binary files differdeleted file mode 100644 index 910bb63c8e..0000000000 --- a/ext/xsl/tests/xslt.xsl.gz +++ /dev/null diff --git a/ext/xsl/tests/xslt001.phpt b/ext/xsl/tests/xslt001.phpt deleted file mode 100644 index 885e7c9824..0000000000 --- a/ext/xsl/tests/xslt001.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -Test 1: Transform To XML String ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 1: Transform To XML String"; -include("prepare.inc"); -$proc->importStylesheet($xsl); -print "\n"; -print $proc->transformToXml($dom); -print "\n"; - - ---EXPECT-- -Test 1: Transform To XML String -<?xml version="1.0" encoding="iso-8859-1"?> -<html><body>bar -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body></html> diff --git a/ext/xsl/tests/xslt002.phpt b/ext/xsl/tests/xslt002.phpt deleted file mode 100644 index d8a0458d01..0000000000 --- a/ext/xsl/tests/xslt002.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Test 2: Transform To HTML String ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 2: Transform To HTML String"; -include("prepare.inc"); -// changing output method to html -$xp = new domxpath($xsl); -$res = $xp->query("/xsl:stylesheet/xsl:output/@method"); -if (count($res) != 1) { - print "No or more than one xsl:output/@method found"; - exit; -} -$res[0]->value = "html"; -$proc->importStylesheet($xsl); -print "\n"; -print $proc->transformToXml($dom); -print "\n"; - - ---EXPECT-- -Test 2: Transform To HTML String -<html><body>bar -a1 b1 c1 <br> -a2 c2 <br> -ä3 b3 c3 <br> -</body></html> diff --git a/ext/xsl/tests/xslt003.phpt b/ext/xsl/tests/xslt003.phpt deleted file mode 100644 index a3c848b1b7..0000000000 --- a/ext/xsl/tests/xslt003.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Test 3: Using Parameters ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 3: Using Parameters"; -include("prepare.inc"); -$proc->importStylesheet($xsl); -$proc->setParameter( "", "foo","hello world"); -print "\n"; -print $proc->transformToXml($dom); -print "\n"; - - ---EXPECT-- -Test 3: Using Parameters -<?xml version="1.0" encoding="iso-8859-1"?> -<html><body>hello world -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body></html> diff --git a/ext/xsl/tests/xslt004.phpt b/ext/xsl/tests/xslt004.phpt deleted file mode 100644 index 6c4da2d0ef..0000000000 --- a/ext/xsl/tests/xslt004.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Test 4: Checking UTF8 Output ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 4: Checking UTF8 Output"; -include("prepare.inc"); -$xp = new domxpath($xsl); -$res = $xp->query("/xsl:stylesheet/xsl:output/@encoding"); -if (count($res) != 1) { - print "No or more than one xsl:output/@encoding found"; - exit; -} -$res[0]->value = "utf-8"; -$proc->importStylesheet($xsl); -print "\n"; -print $proc->transformToXml($dom); -print "\n"; - - ---EXPECT-- -Test 4: Checking UTF8 Output -<?xml version="1.0" encoding="utf-8"?> -<html><body>bar -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body></html> diff --git a/ext/xsl/tests/xslt005.phpt b/ext/xsl/tests/xslt005.phpt deleted file mode 100644 index 272a226c79..0000000000 --- a/ext/xsl/tests/xslt005.phpt +++ /dev/null @@ -1,31 +0,0 @@ ---TEST-- -Test 5: Checking Indent ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 5: Checking Indent"; -include("prepare.inc"); -$xp = new domxpath($xsl); -$res = $xp->query("/xsl:stylesheet/xsl:output/@indent"); -if (count($res) != 1) { - print "No or more than one xsl:output/@indent found"; - exit; -} -$res[0]->value = "yes"; -$proc->importStylesheet($xsl); -print "\n"; -print $proc->transformToXml($dom); -print "\n"; - - ---EXPECT-- -Test 5: Checking Indent -<?xml version="1.0" encoding="iso-8859-1"?> -<html> - <body>bar -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body> -</html> diff --git a/ext/xsl/tests/xslt006.phpt b/ext/xsl/tests/xslt006.phpt deleted file mode 100644 index 26fada1650..0000000000 --- a/ext/xsl/tests/xslt006.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Test 6: Transform To Doc ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 6: Transform To Doc"; -include("prepare.inc"); -$proc->importStylesheet($xsl); -print "\n"; -$doc = $proc->transformToDoc($dom); -print $doc->saveXML(); -print "\n"; - - ---EXPECT-- -Test 6: Transform To Doc -<?xml version="1.0" encoding="iso-8859-1"?> -<html><body>bar -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body></html> diff --git a/ext/xsl/tests/xslt007.phpt b/ext/xsl/tests/xslt007.phpt deleted file mode 100644 index bc6ad8477a..0000000000 --- a/ext/xsl/tests/xslt007.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Test 7: Transform To Uri ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 7: Transform To Uri"; -include("prepare.inc"); -$proc->importStylesheet($xsl); -print "\n"; -$doc = $proc->transformToUri($dom, "file://".dirname(__FILE__)."/out.xml"); -print file_get_contents(dirname(__FILE__)."/out.xml"); -unlink(dirname(__FILE__)."/out.xml"); -print "\n"; - - ---EXPECT-- -Test 7: Transform To Uri -<?xml version="1.0" encoding="iso-8859-1"?> -<html><body>bar -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body></html> diff --git a/ext/xsl/tests/xslt008.phpt b/ext/xsl/tests/xslt008.phpt deleted file mode 100644 index 76dcb1174d..0000000000 --- a/ext/xsl/tests/xslt008.phpt +++ /dev/null @@ -1,31 +0,0 @@ ---TEST-- -Test 8: Stream Wrapper Includes ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 8: Stream Wrapper Includes "; -include("prepare.inc"); - -$xsl = new domDocument; -$xsl->load(dirname(__FILE__)."/streamsinclude.xsl"); -if(!$xsl) { - echo "Error while parsing the document\n"; - exit; -} -$xp = new domxpath($xsl); -$res = $xp->query("/xsl:stylesheet/xsl:include/@href"); -$res[0]->value = "compress.zlib://".dirname(__FILE__)."/xslt.xsl.gz"; -$proc->importStylesheet($xsl); -print "\n"; -print $proc->transformToXML($dom); - - ---EXPECT-- -Test 8: Stream Wrapper Includes -<?xml version="1.0" encoding="iso-8859-1"?> -<html><body>bar -a1 b1 c1 <br/> -a2 c2 <br/> -ä3 b3 c3 <br/> -</body></html> diff --git a/ext/xsl/tests/xslt009.phpt b/ext/xsl/tests/xslt009.phpt deleted file mode 100644 index dd8060f4b9..0000000000 --- a/ext/xsl/tests/xslt009.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Test 9: Stream Wrapper XPath-Document() ---SKIPIF-- -<?php require_once('skipif.inc'); ?> ---FILE-- -<?php -echo "Test 9: Stream Wrapper XPath-Document()"; -include("prepare.inc"); - -$xsl = new domDocument; -$xsl->load(dirname(__FILE__)."/documentxpath.xsl"); -if(!$xsl) { - echo "Error while parsing the document\n"; - exit; -} - -$proc->importStylesheet($xsl); -print "\n"; -print $proc->transformToXML($dom); - - ---EXPECT-- -Test 9: Stream Wrapper XPath-Document() -<?xml version="1.0" encoding="iso-8859-1"?> -foo |