⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xslt012.phpt

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻 PHPT
字号:
--TEST--Test 12: Using Associative Array of Parameters--SKIPIF--<?php require_once('skipif.inc'); ?>--FILE--<?phpecho "Test 12: Using Associative Array of Parameters";$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__)."/xslt012.xsl");if(!$xsl) {  echo "Error while parsing the document\n";  exit;}$proc = new xsltprocessor;if(!$proc) {  echo "Error while making xsltprocessor object\n";  exit;}$proc->importStylesheet($xsl);$parameters = Array(					'foo' => 'barbar',					'foo1' => 'test',					);$proc->setParameter( "", $parameters);print "\n";print $proc->transformToXml($dom);print "\n";--EXPECT--Test 12: Using Associative Array of Parameters<?xml version="1.0" encoding="iso-8859-1"?><html><body>barbartesta1 b1 c1 <br/> a2 c2 <br/> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -