开发者

content query web part xsl regex

I'm trying to transform an incoming text property in my XSL using a regular expression, something similar to:

<xsl:value-of select="replace(@Telephone, '^*.{}')" />
开发者_如何学C

but this does not seem to work. I've read blogs where they delve into analyze-string things and such which I don't understand.

Am I doing something wrong?

Thanks, Eric


The replace() function is only available in XPath 2.0 (XSLT 2.0).

AFAIK SharePoint doesn't use XSLT 2.0.


Waldek Mastykarz has written on the way you can extend CQWP with custom functions. See Extending Content Query Web Part XSLT with custom functions

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜