热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

XSLTProcessor::importStylesheet()中的多个PHP警告

错误:Warning:XSLTProcessor::importStylesheet()[xsltprocessor.importstylesheet]:Undefinedvari

错误:


Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
Undefined variable in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
compilation error: file /protocols.xsl line 18 element template in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
Failed to compile predicate in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
Undefined variable in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
compilation error: file /home6/oneninfi/public_html/craigfreeman/iphone/project1/protocols.xsl line 22 element template in /transform.php on line 24
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]:
Failed to compile predicate in /transform.php on line 24
Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]:
No stylesheet associated to this object in /transform.php on line 35

PHP:

$xsl = new XSLTProcessor();
$xsldoc = new DOMDocument();
$xsldoc->load($_GET['xsl'].'.xsl'); // protocols.xsl
$xsl->importStyleSheet($xsldoc); // LINE 24
if(isset($_GET['sectionNumber']))
$xsl->setParameter('', 'sectionNumber', $_GET['sectionNumber']);
if(isset($_GET['protocolNumber']))
$xsl->setParameter('', 'protocolNumber', $_GET['protocolNumber']);
if(isset($_GET['entryNumber']))
$xsl->setParameter('', 'entryNumber', $_GET['entryNumber']);
$xmldoc = new DOMDocument();
$xmldoc->load($_GET['xml'].'.xml');
echo $xsl->transformToXML($xmldoc); // LINE 35

XSL:







// LINE 18


// LINE 22

(.









 STOP








  • XML:





    Verify patient is pulseless and apneic.
    Initiate or continue CPR. CPR is to be continued at all times, except during defibrillation and /or interruptions <10 sec for patient transfer.
    Assure airway patency and begin use of BVM. Provide initial BLS airway management, including Oropharyngeal or Nasopharyngeal Airway.
    Apply AED or SAED if available. If AED already in place, wait until current shock sequence completion to switch to another AED or manual monitor – may use previously applied patches if compatible with new unit.
    Follow prompts provided by AED/SAED device.
    Utilize ALS, or initiate timely transport toward ALS (ALS intercept or hospital if closer). If ALS not available, no more than 3 shocks should be delivered at the scene. Defibrillation should not be performed in a moving ambulance.
    Advise receiving hospital ASAP.


    If AED/SAED not already applied, quick look using manual monitor and defibrillate PRN after CPR of at least 5 cycles (about 2 minutes). Apply limb leads and pads in between shock sequences as appropriate.
    Obtain vascular access.
    Secure definitive airway. If BLS airway is sufficient to maintain chest rise, continue until additional time or resources are available. If unable to intubate, continue use of BLS airway adjuncts or use alternate airway device.

    emove Bag Valve device whenever transferring patient, moving patient in and out of Ambulance, or other times
    when Bag Valve device may dislodge the device.

    Reassess airway patency after any movement of patient.



    Give medications as listed in the following specific arrhythmia / dysrhythmia protocols.

    Should IV/IO access not be available, Epinephrine, Atropine, and Lidocaine may be administered via ETT under
    direct, on-line Medical Control.


    PHP5
    已启用XML / XSL

    思考?有什么明显的??

    解决方法:

    看看这个错误:
    警告:XSLTProcessor :: importStylesheet()[xsltprocessor.importstylesheet]:编译错误:第24行的/transform.php中的文件/protocols.xsl第18行元素模板

    在第18行你有:

    // LINE 18

    $sectionNumber在哪里定义? PHP无法看到它.


    推荐阅读
    • CSS3选择器的使用方法详解,提高Web开发效率和精准度
      本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
    • 本文讨论了如何优化解决hdu 1003 java题目的动态规划方法,通过分析加法规则和最大和的性质,提出了一种优化的思路。具体方法是,当从1加到n为负时,即sum(1,n)sum(n,s),可以继续加法计算。同时,还考虑了两种特殊情况:都是负数的情况和有0的情况。最后,通过使用Scanner类来获取输入数据。 ... [详细]
    • 本文介绍了OC学习笔记中的@property和@synthesize,包括属性的定义和合成的使用方法。通过示例代码详细讲解了@property和@synthesize的作用和用法。 ... [详细]
    • 知识图谱——机器大脑中的知识库
      本文介绍了知识图谱在机器大脑中的应用,以及搜索引擎在知识图谱方面的发展。以谷歌知识图谱为例,说明了知识图谱的智能化特点。通过搜索引擎用户可以获取更加智能化的答案,如搜索关键词"Marie Curie",会得到居里夫人的详细信息以及与之相关的历史人物。知识图谱的出现引起了搜索引擎行业的变革,不仅美国的微软必应,中国的百度、搜狗等搜索引擎公司也纷纷推出了自己的知识图谱。 ... [详细]
    • 本文介绍了Oracle数据库中tnsnames.ora文件的作用和配置方法。tnsnames.ora文件在数据库启动过程中会被读取,用于解析LOCAL_LISTENER,并且与侦听无关。文章还提供了配置LOCAL_LISTENER和1522端口的示例,并展示了listener.ora文件的内容。 ... [详细]
    • 成功安装Sabayon Linux在thinkpad X60上的经验分享
      本文分享了作者在国庆期间在thinkpad X60上成功安装Sabayon Linux的经验。通过修改CHOST和执行emerge命令,作者顺利完成了安装过程。Sabayon Linux是一个基于Gentoo Linux的发行版,可以将电脑快速转变为一个功能强大的系统。除了作为一个live DVD使用外,Sabayon Linux还可以被安装在硬盘上,方便用户使用。 ... [详细]
    • 合并列值-合并为一列问题需求:createtabletab(Aint,Bint,Cint)inserttabselect1,2,3unionallsel ... [详细]
    • 项目需要实现弹幕,网上参考了各种方法,最后觉得transform+transition实现的效果在移动设备上性能最好,在iphone6和红米4上测试,看不到 ... [详细]
    • UMTS基础知识汇总
      协议框架23G接口UMTS实体EntityNameDescriptionAuCAuthenticationCenterCBCCellBroadcastCenterC-RNCCon ... [详细]
    • 近来公司前后端星散,前端自力供应页面和静态效劳很天然的就想到了用nginx去做静态效劳器。同时因为跨域了,就想应用nginx的反向代办去处置惩罚一下跨域,但是在解决题目的同时,发明 ... [详细]
    • 基于PgpoolII的PostgreSQL集群安装与配置教程
      本文介绍了基于PgpoolII的PostgreSQL集群的安装与配置教程。Pgpool-II是一个位于PostgreSQL服务器和PostgreSQL数据库客户端之间的中间件,提供了连接池、复制、负载均衡、缓存、看门狗、限制链接等功能,可以用于搭建高可用的PostgreSQL集群。文章详细介绍了通过yum安装Pgpool-II的步骤,并提供了相关的官方参考地址。 ... [详细]
    • Spring源码解密之默认标签的解析方式分析
      本文分析了Spring源码解密中默认标签的解析方式。通过对命名空间的判断,区分默认命名空间和自定义命名空间,并采用不同的解析方式。其中,bean标签的解析最为复杂和重要。 ... [详细]
    • HDU 2372 El Dorado(DP)的最长上升子序列长度求解方法
      本文介绍了解决HDU 2372 El Dorado问题的一种动态规划方法,通过循环k的方式求解最长上升子序列的长度。具体实现过程包括初始化dp数组、读取数列、计算最长上升子序列长度等步骤。 ... [详细]
    • 本文介绍了多因子选股模型在实际中的构建步骤,包括风险源分析、因子筛选和体系构建,并进行了模拟实证回测。在风险源分析中,从宏观、行业、公司和特殊因素四个角度分析了影响资产价格的因素。具体包括宏观经济运行和宏经济政策对证券市场的影响,以及行业类型、行业生命周期和行业政策对股票价格的影响。 ... [详细]
    • Ajax智能匹配检索(含图含完整代码)
      使用谷歌搜索引擎的用户都知道,只要在文本框中输入部分关键字,就能显示相关搜索提示信息列表。如图:   本技术的核心是通过ASP.NETAjaxControlToolkit中的Aut ... [详细]
    author-avatar
    兄弟465748208_279
    这个家伙很懒,什么也没留下!
    PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有