使用xslt从字符串中删除点和空格 [英] Removing Dot and space from a string using xslt

查看:402
本文介绍了使用xslt从字符串中删除点和空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个接受字符串输入的xslt代码,我想从字符串中删除空格和点并返回它.

尝试谷歌搜索但没有帮助...

任何帮助或指针都会有所帮助..
在此先感谢

I am writing an xslt code which takes string input.I want to remove the spaces and dots from the string and return it.

Tried googling it but no help...

Any help or pointers wud be helpful..
thanks in advance

推荐答案

Xslt 2.0具有替换字符串的功能:

http://www.w3schools.com/xpath/xpath_functions.asp#string [ ^ ]
Xslt 2.0 has a replace function for strings:

http://www.w3schools.com/xpath/xpath_functions.asp#string[^]


您不知道不需要XSLT 2.0.

You don''t need XSLT 2.0.

<xsl:value-of select="translate(YourXPathHere, '. ', '')" />


这篇关于使用xslt从字符串中删除点和空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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