I have in xslt code first and last name selects

            <xsl:value-of select="@firstname" />
            <xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:whitespace-preserve="yes" xml:space="preserve"> </xsl:text>
            <xsl:value-of select="@lastname" />

I used xslt concat method which is pointing above to Sharepoint people user profile page link. This works well.

Problem is that some name are with umlauts ex. Tiina Tähtvere, but profile pages pointing to domain name in the end ex. domain/Tiina.Tahtvere without umlauts answer. Ofcourse user is not found then.

Is possible to make domain name without umalauts in xslt code and how? Thanks for any answers. Hopefully this was clear explenation.

I use XSLT 1.0 and Sharepoint 2010.

有帮助吗?

解决方案

You should be able to use the translate function to convert your umlauts to standard characters. So you can just update your example to the below:

<xsl:value-of select="translate(@lastname,'&#xE4;','a')"/>

I used the character encoding of that character in the translate because my process was giving an error about the specific character encoding but either should work.

Also, if you have additional characters you would just add them to the translate function as well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top