XSL Pattern 和 XPath 在语法上有什么区别? [英] What's the difference between XSL Pattern and XPath in syntax?

查看:29
本文介绍了XSL Pattern 和 XPath 在语法上有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新代码以使用 MSXML3.0 中的 MSXML6.0.但是,我注意到,对于 MSXML3.0,默认的SelectionLanguage"是XSL Pattern",而 MSXML6.0 只支持 XPath.我担心此更改会引入查询语法的差异.

I'm updating codes to use MSXML6.0 from MSXML3.0. However, I noticed that, for MSXML3.0, the default "SelectionLanguage" is "XSL Pattern", while MSXML6.0 only support XPath. I have concerns that this change would introduce differences in the query syntax.

有人可以列出这两种语法之间的语法差异吗?

Can somebody list the difference of syntax between these two syntax?

推荐答案

XSL 模式,如果我没记错的话,是一种类似于 XPath 的选择语言,但在 XPath 标准化(甚至可能创建)之前由 Microsoft 实现.我认为任何人都不再有任何记录 XSL 模式的东西了.您基本上可以忘记它并专注于 XPath.它具有相同的目的,但得到了支持和标准化.

XSL Pattern, if I remember correctly, was a selection language like XPath but was implemented by Microsoft before XPath was standardised (possibly even created). I don't think anyone even has anything that documents XSL Pattern any more. You can basically forget about it and concentrate on XPath. It has the same purpose but is supported and standardised.

这篇关于XSL Pattern 和 XPath 在语法上有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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