如何将 XML 文件与 XSLT 文件链接起来? [英] How to link up XML file with XSLT file?

查看:48
本文介绍了如何将 XML 文件与 XSLT 文件链接起来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例在

http://en.wikipedia.org/wiki/XSLT

http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog

似乎是独立的 XML 和 XSLT 文件.他们不需要链接吗?或者你以某种方式将它们放入同一个文件中?否则,一个文件怎么知道如何从另一个文件中吸取数据?

seem to be independent XML and XSLT files. Don't they have to be linked? Or do you somehow put them into a same file? Otherwise, how does one file know how to suck in data from the other file?

推荐答案

可以在xml声明后添加这个

You can add this after the xml declaration

<?xml-stylesheet type="text/xsl" href="yourxsl.xsl"?>

这篇关于如何将 XML 文件与 XSLT 文件链接起来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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