XSLT (Extensible Stylesheet Language Transformations) is a declarative, XML-based language used for the transformation of XML documents.
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 ...
9
votes
2answers
2k 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 ...
6
votes
2answers
2k 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
449 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"
...
5
votes
3answers
390 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 ...
5
votes
2answers
3k 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>
...
5
votes
1answer
171 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!
4
votes
3answers
314 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
2answers
2k 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
0answers
115 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 ...
3
votes
1answer
4k 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
3answers
449 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
558 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
2answers
3k 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
82 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
2answers
189 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
683 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 ...
3
votes
2answers
496 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
1answer
3k 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 ...
3
votes
1answer
92 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 ...
3
votes
1answer
273 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 ...
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
1answer
853 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:
...
2
votes
1answer
2k 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
3answers
735 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
51 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
276 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
942 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"
...
2
votes
2answers
6k 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
241 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 ...
2
votes
1answer
2k 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 ...
2
votes
3answers
715 views
Custom paging on lists through XSLT
I am working with vwstyles.xsl to implement custom paging on lists. The requirement I have is to have first and last button on the paging panel but can't work out how to direct the user to the last ...
2
votes
2answers
853 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
1answer
589 views
Can't read Enhanced Rich Text field value from CQWP
I'm trying to read the value of a multi-line, enhanced rich text field from a content query web part using a custom ItemStyle template in SP 2010. Even though it has a value, it keeps coming back as ...
2
votes
2answers
461 views
DataViewWebPart XSLT Caching
I have a DataViewWebPart with a complicated and rather expensive linked XSLT (the XSLT itself is stored in the Documents library of the site).
Currently, the part takes a long time to render, even ...
2
votes
1answer
449 views
Adding custom XSLT extension methods for Data Form Web Parts
I'm trying to figure out how to add my own XSLT extensions to be used in the DataFormWebPart on MOSS 2007, kind of like a custom ddwrt library.
A comment on this post seemed to say that I could ...
2
votes
3answers
580 views
Displaying Page list items in RSS gives wrong title
I have an external site at which I'm displaying news using Sharepoint Pages. I would like to publish these news pages using RSS, which works fine. But the title is the file name without the file ...
2
votes
2answers
858 views
Adding custom XSLT libraries for use in the Search Core Results web part
Out-of-the-box, the Search Core Results web part only supports XSLT 1.0. The last thing I read from Chris Lovett on the MS XML team is that Microsoft don't have plans for XSLT 2.0. This makes the ...
2
votes
1answer
254 views
XSL Transform impacting other Web Parts
I have on my SharePoint page an XSL List View Web Part linked to an XSLT file via the "XSL Link" property. Here is the content of the XSLT:
<?xml version="1.0" encoding="utf-8"?>
...
2
votes
1answer
1k views
SP 2010 - Search Core Results Default XSL Params
I was wondering, where I can find a list of the default xsl params available with the search core result webpart?
When we use the default xsl stylesheet of the webpart, default params are defined at ...
2
votes
3answers
1k views
How to encode URI in XSL of the XML Viewer Web Part?
I am using the XML Viewer Web Part to display some links. I need to encode the URI component because a value of a parameter may contain and ampersand. The way to do this in XSLT 2.0 is by using ...
2
votes
1answer
500 views
Internal Name not working in Content Query Web Part on SPS2007
I'm trying to get and display list columns in the Content Query Web Part. Unfortunatley, some of these column names are like "WEC_ArchiveDate" or "My Categories". So I find the internal SharePoint ...
2
votes
1answer
696 views
Two different render modes of XsltListViewWebPart - plain html and js+async load
We've realised that XsltListViewWebPart can render content in two different modes.
1) if we add XsltListViewWebPart by SharePoint Designers on aspx page - we have plain html render on the page
2) if ...
2
votes
1answer
796 views
How to get the username from a field which is defined as “Name (with presence)”
In a custom list there is a column / field defined as “Name (with presence)”.
In my modified aspx page, I want to do an ‘xsl if’ statement to check if the value from this field is the same as the ...
2
votes
2answers
100 views
In a ContentByQueryWebPart, how to generate a link to the item's display form?
I'm building a custom Xsl to customize the rendering of a ContentByQueryWebPart. This webpart is targeting pictures
In the results, I would like to generate a link to the corresponding dispform.aspx, ...
2
votes
1answer
51 views
Webpart not updating for Read only users
I have a SharePoint page with Two webparts, one of them is a list displaying the previous months, the other is a xsl webpart that displays the news of the selected month using the url. (like ...
2
votes
1answer
244 views
Site collection relative url in XSLT search or by JavaScript
I have the following question:
I'm modifying the XSLT of the search, so it is represented differently etc etc .. in this occasion I also need to get a relative site collection url.
In managed ...
2
votes
0answers
400 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 ...
2
votes
2answers
310 views
XSLT - Wrap Items According to Position
I need to render a wrapper to items.
I have a list of items that i want to display them in a DVWP, and every 3 items will be in a wrapper, for example:
<div>
<div>item</div>
...
