XSLT (Extensible Stylesheet Language Transformations) is a declarative, XML-based language used for the transformation of XML documents.

learn more… | top users | synonyms (1)

10
votes
2answers
3k views

How can I use normal paging on a custom view?

I'm creating several lists (and their views) programmatically, based on custom list definition templates. When these views display more than 30 items, the following link is displayed: Whereas on ...
10
votes
1answer
1k views

Localizing the Content Query Web Part in XSL

Has anyone managed to get the locale ID for the context of an instance of a Content Query Web Part in XSL, without extending the class? DataViewWebParts have a Language parameter passed in, but CQWP ...
8
votes
3answers
9k views

Sharepoint 2010 XsltListViewWebPart on site definition template

Im having a problem placing the XsltListViewWebPart on my Default.aspx template (relevant code bellow) <WebPartPages:WebPartZone runat="server" ID="NewsItemsList"> <ZoneTemplate> ...
7
votes
2answers
6k views

XSLT Get Current date or Today in XSLT

Help please can anyone advise how I get current date, or today method in xslt 1.o SharePoint
6
votes
3answers
639 views

XSLT or JSLink (which one to use?)

If I have the option of using XSLT or JSLink, which one shall I chose? I don't know anything about JS Link and so far I have done all work in XSLT but I have heard JS Link is the future as there ...
6
votes
3answers
1k views

How to do a for-each in ItemStyle.xsl

I'm trying to pull in custom columns from a SP list, and it works fine, but now I have to figure out how to do a for-each instead since it needs to pull in all items not just one. Here's where I am ...
6
votes
3answers
2k views

Show created field with only date in XSL

I have a custom XSL file I linked in one my view. I would like to display the created field value as a date only. By now I have this xsl template : <xsl:template name="FieldRef_ValueOf.Created" ...
6
votes
1answer
199 views

Current user login name in XSLT

I'm trying to define a display template for one of my site columns by using XSLT. One of the things I would need is the loginname (DOMAIN\user) of the currently logged in user. There's one way ...
5
votes
1answer
202 views

SharePoint Designer Menu for Filtering Joined Views

In SharePoint Designer, is there an easy interface for filtering joined views (either parent or child)? Currently I go to code view to type the filters directly in xslt. There must be an easier way!
5
votes
1answer
218 views

XSLT Global parameter LCID is empty

According to this MSDN documentation about XSLT global parameters, in main.xsl there is a parameter named LCID whose value should be the value of ...
4
votes
3answers
445 views

Can the ID from a referenced column be obtained when using the Data View Part?

I have a Data View Part pulling from a list that has a lookup column to another list (title linked by ID) And somewhere in the XSLT, it reads <xsl:value-of select="@ColumnX"/> Now since ...
4
votes
1answer
1k views

Render Pattern in list view for “custom field types” sharepoint 2010

I have developed a custom field type which will show the link to the "workflow history list" in the list (It's a column in the list). It works fine in sharepoint 2007 site. when i migrate the code to ...
4
votes
2answers
3k views

XSLT ListView web part grouping and filtering

I have a web page in sharepoint 2010 on which I have added a document library using a XSLT ListView web part in sharepoint designer. I created a parameter that gets its value from the URL and is used ...
4
votes
1answer
205 views

SharePoint XML Web Part dynamically adding xml link

Is there a way to dynamically insert a variable in the <XMLLink> --variable here--</XMLLink> tag? I'm trying to read an URL parameter which will contain the xml files path. What I am ...
4
votes
1answer
683 views

Show Author.name in custom XSL for blog post

I've been attempting to modify the XSLT on the blog posts to show the authors photo. I've managed to get the photo showing by changing the 'Created By' column to the value "Person (with picture)" and ...
4
votes
2answers
1k views

<xsl:import> not working in SP2010

I have been trying for days to understand why, following an upgrade to Sp2010, none of the statements used in my web part definitions are working. The work fine in SP Designer 2010 and render as ...
4
votes
1answer
4k views

Custom field type XSL in SP2010

Has anybody upgraded an old custom field type to use the new XSL transform in SharePoint 2010? I have a multi-column field type, and want the Display pattern to render the 2nd "column", which contains ...
4
votes
1answer
192 views

Custom Field Type in 2013 Not Respecting Header Template

I have a custom field type with a fldtypes_xxx.xsl template that we have carried forward from a 2010 solution into a 2013 solution. The Number_body template we are using works just fine. However, I ...
4
votes
1answer
1k views

Content Query Web Part: Lookup Column Value and XSL

There is a List with Lookup field. And there is a CQWP web part which uses this list as a Source and uses custom XSL style added to Itemstyle.xsl. And there is a problem how to render this field as a ...
4
votes
2answers
3k views

Provision XSLTListViewWebPart with <AllUsersWebPart> or <View> and customize the XslLink

I've created some custom List Definitions (aka List Templates) and am provisioning List Instances of them into my site. I am then provisioning Pages (Wiki/WebPartPages) that refer to the lists/views ...
3
votes
3answers
990 views

Blog Read More Link and Summary of Body

I created a blog that uses the standard sharepoint 2010 blog site template. However as it currently stands the default.aspx page shows the entire blog article. I would like it to only show the first x ...
3
votes
1answer
8k views

Filtering a list with date ranges - xslt / advanced expressions on list filters possible?

I've got a Sharepoint 2010 list that I'd like to filter with date-ranges. I'm doing something like if END_DATE > [NOW - 1Week] and END_DATE < [NOW + 1Week] or PLAN_END > [NOW -1Week] and ...
3
votes
2answers
4k views

Calling Javascript within XSL after transformation in RSS Web Part

Hey all, got a tricky one for you. I have an RSS web part which uses a custom ItemStyle.xsl stylesheet to transform the results of the RSS feed into a UL list. I have some jQuery I want to inject ...
3
votes
3answers
2k views

How to create a column from the value of another using xsl?

I have a custom list with two columns. I want to use xsl to take the value of the fields in the first column, build a hyperlink and put it in the second column. Please don't suggest calculated ...
3
votes
1answer
1k views

Unescape HTML from list column

I've got a multiline column in a list that contains HTML. When trying to use the field in SharePoint Designer 2010, it shows it as raw HTML, instead of rendering it. So using this syntax: ...
3
votes
1answer
4k views

XSLT, get imageurl from custom image field

I have a Contenttype with a custom Image with formatting and constraints for publishing -- StockImg. I have a rollup of all listitems with this Contenttype. In my ItemStyle.xsl I have created a custom ...
3
votes
2answers
5k views

Modify core search results to display custom property

I am trying to modify the core search results webpart in SP2010. Ive created a managed property named: ExternalContactsCompany I then added a <Column name="ExternalContactsCompany"/> section to ...
3
votes
1answer
800 views

Passing a C# object into an XSLT in SharePoint 2010 without using a custom web part

I have created a custom field type that renders the input as an html link. The xsl transform that creates the link tag should prepend the user input with a base url from an xsl parameter. I want this ...
3
votes
2answers
496 views

Content Query WebPart - Group by date - SP2010

I need to display top X last modified documents and/or publishing pages. They need to be grouped by modified date. As far as I know, the CQWP does not support grouping by date. Is there a workaround ...
3
votes
1answer
934 views

Edit date format of Blog post and comments

I'm trying to change the date format of blog posts and comments in Post.aspx, but having trouble. What I want to do is change the $thisNode/@PublishedDate value with ...
3
votes
1answer
128 views

XSLT conditional statements

I have a simple list with 3 columns: Title, URL, Color. The Color column is a choose column with two options: yellow or lightgreen. I am using the XSLT List View Web Part . I am trying to create an ...
3
votes
1answer
222 views

XSLT - add icon in GANTT view

In my custom XSLT file, I am able to modify a choice field to swap the text for icons. My choice looks like this; it just checks for the column header name and for the number in parenthesis, then ...
3
votes
1answer
174 views

Modify xslt in search core web part to join a column from another list

I am using search core web part to display the results of my search. I have added a column in xslt so that it displays ProjectId in the search result. I am using BCS to search an external database. I ...
3
votes
1answer
480 views

SharePoint 2010 List Grouping Expand/Collapse Sequence Bug

I've run into a bug with a List web part that has me stumped. Bug description: Using the web part and XSL specified below, expanding groups may result in items from the wrong group being shown. ...
3
votes
2answers
928 views

Remove LI wrapper from Content Query Web Part / ContentQueryMain.xsl

I have done a fair amount of experminting with this but cannot get it to work and I'm now looking for pointers or working examples. I want to customise the output of the Content Query Web Part to ...
3
votes
2answers
600 views

Get <img>-SRC out of <content:encoded> (xsl - RSS Viewer WP)

I need to get the image source out of this code: <content:encoded> <![CDATA[ <span><img width="200" src="..."></span><br /> [some Text] ]]> ...
3
votes
2answers
654 views

Wrong formating of date in xslt

My xslt list view suddenly broke today, and it seems to be due to some date time formatting I've done (and that I'm unable to spot) Today:<xsl:value-of select="$Today"/><br/> ...
3
votes
0answers
623 views

Problem with getting SafeImageHtml in CustomItem.xsl of a CQWP

I have a CQWP with the Parameters: Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;| Description:{691b9a4b-512e-4341-b3f1-68914130d5b2},ShortComment,Text;| ...
2
votes
2answers
346 views

How to display taxonomy value using xslt?

I have created an item template in ItemStyle.xsl to assign it to the CQWP. My template is: <xsl:template name="DepartmentsTemplate" match="Row[@Style='DepartmentsTemplate']" mode="itemstyle"> ...
2
votes
1answer
4k views

Sharepoint 2010 Discussion Board Thread.xsl

Ok, I have searched and searched for an answer on how to customize the thread.xsl file. So I have copied the file, and renamed it as thread2.xsl. In the threaded.aspx page, I have changed the ...
2
votes
2answers
2k views

Issue trying to customize xslt layout of a list view

This is probably simple but here goes. I want to customize the xslt layout of a list view. The idea is to add a header to the top which shows the name of the list. Here is what I have so far. ...
2
votes
3answers
122 views

XSLT: Set the background colour of cell when the task is overdue

I currently have this XSLT added to my list (snippet): ... <xsl:param name="Today">CurrentDate</xsl:param> <xsl:template name="FieldRef_printTableCell_EcbAllowed.Due_x0020_Date0" ...
2
votes
1answer
2k views

How to attach programmatically and XSL to a View

I have my custom Document Library with his own content type, views and so on... I'd like to add a particular XSL to a View, to trasform particular value into other.. This works if I put the XSL file ...
2
votes
2answers
1k views

Is it possible to style mobile list views?

I have been working on a task to style mobile lists views and since then, I have been unable to find a solution in terms of how I could get the views styled. So I am starting to wonder if is it really ...
2
votes
3answers
899 views

Does Designer make page XSL static?

I've been chasing some weird problems with a Custom Field Type on a page that has a list view web part with Designer-provided Conditional Formatting. It seems like the XSL for the fields have been ...
2
votes
2answers
8k views

XSLT for summing a column in a Data View Web Part

I have this (an attempt to solve the task): <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" ...
2
votes
2answers
265 views

is it possible to use sharepoint server-side code inside the search core web part xstl?

is it possible to use sharepoint server-side code inside the search core web part xstl? I have to join the search web part data and data from a custom list. I am trying to achieve this functionality: ...
2
votes
1answer
437 views

Description of SharePoint list column in SharePoint designer xslt

have a list in SharePoint portal. Also I have added description to each of the fields in list. Now I have created a dataview webpart in SharePoint 2007 Designer. I am able to get the list column ...
2
votes
1answer
2k views

Strip out DIV tags around rich text fields

I've noticed that SharePoint 2010 wraps rich text fields (multiline text) with DIV tags, which can be annoying. I've got a custom XSL template for the columns being pulled by a content query web part ...
2
votes
2answers
2k views

What is the best way to encode parameters to pass it to other List / Page?

I would like to know the best way to encode parameters (with a space or other unsafe characters) when passing these to another List. With ddwrt:UrlEncode ? <xsl:variable name="MyURL" ...