处理 CFchart 时的实际 XML 文件位置 [英] Actual XML file location while dealing with CFchart

查看:9
本文介绍了处理 CFchart 时的实际 XML 文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我在使用coldfusion时是否需要将xml文件放在一个单独的目录中?现在,我将 xml 文件保存在 .cfm 文件所在的同一目录中.当我运行文件(cfm)时,它说,

Could anyone tell me whether I need to place xml file in a separate directory while working with coldfusion? Right now I have kept my xml file in the same directory where I have .cfm file. When I run the file(cfm) it says,

Could not locate the style file filename.xml

这是错误:

找不到样式文件 VerticalXLabels.xml.确保文件存在且可读.

Could not locate the style file VerticalXLabels.xml. Ensure that the file exists and is readable.

The error occurred in C:PATHTesting_Connections.cfm: line 296
Called from C:PATHTesting_Connections.cfm: line 271
Called from C:PATHTesting_Connections.cfm: line 1

294 :         <cfchartseries  query="detail4" type="line" itemColumn="FIFTHCONN " valueColumn="FIFTHOccurances" > 
295 :        <cfchartseries  query="detail5" type="line" itemColumn="SIXTHCONN" valueColumn="SIXTHOccurances" >   
296 :        <cfchartseries  query="detail6" type="line" itemColumn="SEVENTHCONN" valueColumn="SEVENTHOccurances" >
297 :   </cfchartseries>  
298 : </cfchart>  

推荐答案

根据documentation here,您可以将 XML 文件放在您喜欢的任何地方,但是,您必须能够像使用 CFINCLUDE 一样访问它.

According to the documentation here, you can put the XML file anywhere you like, however, you must be able to access it as if you were using CFINCLUDE.

ColdFusion 使用与查找使用 cfinclude 标记包含的文件相同的规则来查找图表样式 XML 文件.

ColdFusion uses the same rules to look for the chart style XML files as it does for files included using the cfinclude tag.

这篇关于处理 CFchart 时的实际 XML 文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆