SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I render a custom field type with XSLT. I want to render in the same manner like I do with this CAML

<RenderPattern Name="DisplayPattern">
    <Case Value="" />
        <Column SubColumnNumber="0" HTMLEncode="TRUE"/>
        <HTML><![CDATA[, nr.&nbsp;]]></HTML>
        <Column SubColumnNumber="1" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="2" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="3" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="4" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="5" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="6" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="7" HTMLEncode="TRUE"/>
        <Column SubColumnNumber="8" HTMLEncode="TRUE"/>

I've tried with an XSL file like this

<xsl:stylesheet xmlns:x="" 
            exclude-result-prefixes="xsl msxsl ddwrt" 
            xmlns:ddwrt2="urn:frontpage:internal" ddwrt:oob="true">
<xsl:output method="html" indent="no"/>
<xsl:template match="FieldRef[@FieldType='AdresaField']" mode="Note_body">
<xsl:param name="thisNode" select="." />
<xsl:variable name="curElement" select="current()" />
<xsl:variable name="fldVal">
  <xsl:value-of select="$thisNode/@*[name()=$curElement/@Name]"/>
<xsl:value-of select="substring($fldVal, 1, 3)"/> - Just to show it's working. Here I don't know how to do


share|improve this question
up vote 1 down vote accepted

is the following link useful for you?

share|improve this answer
Whilst this may theoretically answer the question, we prefer inclusion of the essential parts of the answer here, and to provide the link for reference. – Alex Angas Jul 10 '11 at 0:08
This is the link which I read before posting here. – user3145 Jul 11 '11 at 11:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.