如何在xsl文件中导入xml数据 [英] how to import xml data in xsl file

查看:238
本文介绍了如何在xsl文件中导入xml数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在xsl文件中尝试使用以下命令

< xsl:import href ="c:\ image \ test.xml">
< xsl:apply-imports/>

但是它并没有显示我期望的实际xml数据.

I have tried with the below command in my xsl file

<xsl:import href = "c:\image\test.xml">
<xsl:apply-imports/>

but it doesn''t display with the actual xml data what i expected. how to display the exact info what we see when we open an xml file in a notepad?

推荐答案

import元素用于导入另一个样式表,而不是xml
http://www.w3schools.com/xsl/el_import.asp [
The import element is used to import another stylesheet not xml
http://www.w3schools.com/xsl/el_import.asp[^]

You apply styles to xml you don''t import into a stylesheet.


这篇关于如何在xsl文件中导入xml数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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