如何在xslt中使用字符串替换fn [英] How to use string replace fn in xslt

查看:158
本文介绍了如何在xslt中使用字符串替换fn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有谁知道如何在xslt中使用字符串替换选项吗?在我的xml文件中,我有一个属性值C1.我需要将C1更改为第1章.任何人都可以指导我.我浏览了许多站点作为参考,它们提供了如何使用字符串替换的示例,但没有提供用于其的名称空间的示例.

我需要知道特别是在使用字符串替换功能时要使用的命名空间.

如果您有任何想法,请帮助我.

预先谢谢您.

Hi,

Does any one know how to use string replace option in xslt? In my xml file I have a attribute value C1. I need to change C1 as Chapter 1. Can anyone guide me. I have gone through various sites for reference they provide sample for how to use string replace but not the namespaces used for it.

I need to know the namespace to be used in particular for using string replace function.

If you have any idea please help me out.

Thanks in advance.

推荐答案

好,您需要的名称空间是System.Xml.Xsl.您可以从这里开始:
http://msdn.microsoft.com/en-us/library/14689742.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/70k6zz96 [ ^ ].

—SA
OK, the name space you need is System.Xml.Xsl. You can start here:
http://msdn.microsoft.com/en-us/library/14689742.aspx[^],
http://msdn.microsoft.com/en-us/library/70k6zz96[^].

—SA


这篇关于如何在xslt中使用字符串替换fn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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