使用XSL样式表时如何在节点中提取特定名称 [英] How to pull a specific name within a node when using an XSL Stylesheet

查看:74
本文介绍了使用XSL样式表时如何在节点中提取特定名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对XML和制作XSL样式表非常陌生。目前,我的XML文档中列出了一堆Exchange Server。所有Exchange Server都位于节点内:

I’ve very new to XML and making XSL stylesheets. Currently I have a bunch of Exchange Servers listed throughout my XML document. All the Exchange Servers are located within the node:

展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号

推荐答案

这些都可以吗?
Do either of these work?
展开 | 选择 | Wrap | 行号


你给我的第一个选项全部拉出服务器甚至是具有不同FQDN的服务器。我收到你给我的第二个选项的错误:

The first option you gave me pulled all of the servers even the ones with different FQDN''s . I get the error below for the 2nd option you gave me:

展开 | 选择 | Wrap | 行号


您使用的是MSXML 3还是早?你是如何进行转型的呢?

您可能需要设置如下内容:

oXMLDoc.setProperty(" SelectionLanguage"," XPath");


支持子字符串后,例如:
Are you using MSXML 3 or earlier? How are you running the transformation?
You may need to set something like:
oXMLDoc.setProperty("SelectionLanguage", "XPath");

Is substring-after supported?, eg:
展开 | 选择 | Wrap | 行号


这篇关于使用XSL样式表时如何在节点中提取特定名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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