Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xslt]

XSLT (Extensible Stylesheet Language Transformations) is a declarative, XML-based language used for the transformation of XML documents. In SharePoint, you can use XSLT for formatting the content, generate dynamic content, edit the Web Part content such as List View web parts, Data View Web Parts, ...

0
votes
1answer
24 views

XSLT IF Statement

I have a custom Content Query web part that I'm using to display my JQuery Q&A functionality. I'm using a XSL file to determine what display as my question and answer headers. What I want to do ...
2
votes
1answer
13 views

XSL Item Style in Content Query gets replaced by 'default' for visitors

I have a page with a Content Query WP that retrieves and displays a series of items from a list (blog posts). I have edited ItemStyle.xsl for this list and created a brand new item style that I then ...
0
votes
1answer
31 views

Is there a way to force the sharepoint RSS viewer web part to get the latest 5 RSS feed items

I added an RSS viewer web part to our sharepoint online site page, and i define this RSS feed url http://feeds.bbci.co.uk/news/world/rss.xml + i define to get 5 items as follow:- now i thought that i ...
0
votes
1answer
18 views

Incrementing a date in a dataview by 1

I need to increase a date field by 1 day. The xslt I have which displays this date is: <xsl:value-of select="ddwrt:FormatDateTime(string(pubDate),1041,'yyyy年 MM月 dd日')"/> I tried to add one ...
2
votes
2answers
124 views

CQWP ItemStyle: how to display background of description with conditional formatting

I have 3 elements in a field and I would like the CQWP to display red as a bg colour of the field or amber or green. I guess the starting point is <xsl:if test="RAG = 'Red'">background-color: #...
1
vote
1answer
122 views

How to add 1 day in Date using XSLT

I have a scenario like fetching data from rss feed.every thing is working fine except date field,the date value is not displaying properly(showing 1 day back). How can I achieve this using XSLT 1.0. ...
1
vote
1answer
93 views

Overriding xsl templates in SharePoint 2016

I am attempting to customize the aggregate section of a grouped list that I have created through a schema.xml in a Visual Studio project. I have created a mapped folder to {SharePointRoot}\Template\...
0
votes
1answer
33 views

remove ;# characters and number from xsl value (person /People group)- itemsyle.xsl

I'm retrieving like this <xsl:call-template name="RemoveHtml"> <xsl:with-param name="String" select="@Person.title"/> </xsl:call-template> Result looks like ...
0
votes
0answers
24 views

CQWP discussion board link to flat view

I've got a CQWP that brings back discussions from the discussion board. My issue is that the link takes you back to the display form and not to the discussion itself (flat view). I've been fiddling ...
0
votes
0answers
24 views

how to remove hash and semicolon from people and group column - CQWP - itemstyle.xsl

I have this code below in my CQWP. The person/Group field contains multi values e.g Peter James;#33;#Andrew Field <xsl:variable name="Person"> <xsl:value-of select="@Person.title" ...
0
votes
0answers
16 views

Custom CQWP with concat Google Map w/ SharePoint 2016

I am using the CQWP in SharePoint 2016 and I would like to create a new list style that displays the Event Title, Start Date/Time, and Event Location. With event location, I would like an web link to ...
0
votes
0answers
16 views

Help with XSL and Content Query Webpart

I have a SharePoint list with links that I needed to query on another site. I used the following instructions http://doitwithsharepoint.blogspot.com/2011/04/url-fields-in-sharepoint-content-query....
0
votes
1answer
38 views

Use custom XSL for the default view of a list (Allitems.aspx)

I was able to successfully add a custom xsl to the webpart and render it the way I wanted. (I borrowed the example from here: http://mundrisoft.com/tech-bytes/how-to-customize-list-view-web-part-using-...
0
votes
1answer
44 views

Translate a boolean value to show yes/no in a dataformwebpart

I have a dataformwebpart which gets data from a SharePoint list. I am trying to show a yes/no field in the webpart but it displays 1 for yes and 0 for a no. I would like it to displayed yes and no ...
0
votes
1answer
86 views

Joining 2 lists into a single view

So, I've come across a slight issue that I don't know how to fix in SharePoint 2013, I've been able to join 2 lists into a single view through the use of a Data source, whilst this has provided me ...
0
votes
0answers
83 views

SharePoint XML Visualization

I have a SharePoint document library with about 40 XML files of the same datatype. I would like to visualize the contained data within SharePoint. The requirement is that I click on a button or link ...
0
votes
0answers
29 views

Get view name in XSL Link page SharePoint 2010

I can't find the answer anywhere and it may not exist or is really obvious. I'm trying to assign the current view name of the list to a variable in my XSL link sheet. Anyway to do that?
0
votes
1answer
382 views

What is the XSLT query to get items which have date greater than or equal today

I haven't worked on XSL. Scenario: We have a list which has a column called expiry. We want to display only those records which have expiry date greater than or equal to today's date. Trials: ...
0
votes
1answer
65 views

Display or edit field conditionally based on dates (javascript/xslt)

I'm trying to make a condition such that: If date in field is before current date or equals to current date, user can tick the checkbox Otherwise, any fields with dates after the current date will be ...
1
vote
0answers
48 views

How do I get the list title to use inside xslt?

I'm using a script to create a button, so that the user can create new form: <script type="text/javascript"> function displayLayover(url) { var options = SP.UI.$create_DialogOptions(...
1
vote
0answers
234 views

Set Display:block by default for a slideshow

I'm using a picture library to display ppt slides inside a Slideshow presentation. It looks like this: Now my problem is that the first slide is always set on Display:none and I have to click first ...
0
votes
1answer
245 views

Get current site URL or picture URL from Picture Library

I created an xsl file to change the appearence of the Picture Library. As I had troubles to get the PictureURL I took the value of the "FileLeafRef" to get the filename of the picture. Than I use the ...
1
vote
1answer
531 views

Set xsl variable using javascript function [closed]

I am trying to assign a random number generated by javascript function to a xsl variable which will be used to construct a query string for redirect purpose. Example of code: <xsl:variable name ="...
1
vote
1answer
301 views

XSLT: Display choice field value

I am editing ItemStyle.xsl to display documents in a web part. I need to display the value of a choice field whose name unfortunately contains a forward slash and I don't get it to display its value. ...
1
vote
3answers
5k views

Javascript not working in IE but work works in Chrome

I had a long search and until I found a working script to use the logged in user id. Finally I have found the following Javascript code, put it in XSL to be used in an XMl viewer web part: <script ...
1
vote
1answer
457 views

Content Query Webpart (CQWP) Pagination in SPO

I am trying to paginate a CQWP results set but I am struggling with XSLT. Is there an easy way to do it? Should I work directly on the ItemStyle.xsl? Should I use jQuery instead? I can't believe ...
1
vote
3answers
58 views

Customize displaying field in list view

I have a custom field for storing an attachment name. I'm trying to display url for this attachment on list view instead of just the name. I've tried to overide GetFieldValue in field definition ...
1
vote
0answers
84 views

Filter styled list webpart using XSL stylesheet

So I have .css and .xsl code turning an out of the box SP calendar list into a pretty events list. I have a different image for each month and my code is long but works perfectly. I also have a ...
2
votes
0answers
35 views

Sharepoint 2010 Conditional XSL Style based on field values?

I am working on a Sharepoint 2010 site. I have a content query webpart with a custom itemstyle template. The items pulled in via the query have a few custom columns (multiline text, image, singleline ...
1
vote
0answers
39 views

how i can hide/remove links named (share on facebook ,Digg this ,etc) from my RSS viewer web part

I have added a RSS viewer web part to my team site, and i added this custom XSL (code copies from here http://sonnyeom.com/wordpress/simplified-rss-xsl-for-sharepoint-rss-viewer/.), to display only ...
3
votes
0answers
117 views

Return current local datetime in XSL feed from RSS

I am currently using xsl to feed weather from rss.weather.com.au. Everything working fine but as soon as i add reference exslt it will not work and show error "Failed to apply XSLT to the content". I ...
0
votes
1answer
147 views

Display current date in xsl

I would like to display current date with the following format. However using current-date() is throwing error "Failed to apply XSLT" Thu 02 Mar 2017 The following is the code that i have so far. ...
1
vote
1answer
67 views

@EventDate Not Displaying

I am quite new to this so please bear with me. This has been driving me crazy all morning. I have been trying to create template for the CQWP that will display the calendar how I want it to show on ...
0
votes
1answer
245 views

Check if parameter contains column value in filter for data view web part

I am trying to filter a dataview webpart using a parameter ($Users) which is a string of usernames delimited by a semicolon (domain\user1;domain\user2;domain\user3;domain\user4). This string is ...
0
votes
2answers
52 views

My xslt doesn't work

I wrote some xslt to make a new style for my content query web part, but it doesn't work. I'm new to xslt and don't know what i did wrong. I hoped that someone here could help me.
1
vote
0answers
10 views

How can I pull a contextual link into a Page Layout

We are creating a new commerce site for our existing SharePoint 2010 site to link to. Right now our main product pages each use layouts that have an unordered list styled into tabs across the top. The ...
1
vote
1answer
121 views

Sum of column based on <xsl:choose> statement in a data view?

I have a column in a SharePoint 2010 dataview that is as follows: <td> <xsl:variable name="CurrentYear" select="ddwrt:FormatDateTime(string(ddwrt:Today()),1033,'yyyy')"/> <xsl:...
0
votes
1answer
48 views

Sharepoint 2013 - Error XSL List error with user not Logged in

This is my first topic so I apologize if something is not in order and I apologize for my bad english. I have a problem with a particular SP13 list. I created an XSL that uses JQUERY and BOOTSTRAP ...
0
votes
1answer
141 views

Hide or Show Data Fields in List Editor Form (Using Share point Designer )

I am facing an issue in developing Share point List Editor Form (Custom Form) using Share point Designer in O365. My requirement is, if column named "Payment Status" is "Pending For Payment" then show ...
0
votes
1answer
261 views

SharePoint Designer - Hiding fields in a form unless specific condition is met [duplicate]

I'm trying to create a form in SharePoint Designer 2013, I want to be able to hide a specific field in the form unless the answer to another field has been changed to a specific option. Here is my ...
1
vote
1answer
81 views

cqwp: formatting a date inside a standard template

I do not have a formal knowledge of XSLT so my successes are with attempts. I would like to know one information once for all. Sometimes I need a slight modification on the templates such as the '...
3
votes
1answer
465 views

Need help comparing two dates with times

I'm trying to compare two dates with time. I'm able to compare just the date, but when I add the time element it doesn't work. I'm not sure what the correct format should be. <xsl:if test="ddwrt:...
0
votes
1answer
659 views

Remove a section of a string in xsl

So I am doing a project in Sharepoint 2010 environment. I have an xsl template to retrieve the value of a page url. Currently this is the value that is being returned. http://sitebuilder2/corporate/...
1
vote
0answers
30 views

XML dont get rendered for special charcters in the browser from SharePoint site [closed]

This may not be related to SharePoint but since I got this error from my SharePoint site, I am posting in this forum. So Please do not put it on hold. I have a properly generated XML file in one of ...
0
votes
1answer
45 views

When I show Custom XSL date in my Web Part that time it showing one day added Date.?

I am showing the custom date in my Web Part but it showing one Day added to date. The current date field is DateTime Format, so I am showing only date it work but it showing one day added to date. ...
1
vote
1answer
97 views

SharePoint 2010 XSLT treating calculated column number as string which breaks ddwrt:Max

I have a calculated column that is a number field. It basically adds to other number fields. When I look at the item through the website I see the format as "1,050" (with the comma). In a DVWP using ...
2
votes
1answer
108 views

Filter xslt element values for SharePoint form

I have the following XSL declaration in a custom View form for an SPList: <xsl:element name="SharePoint:AttachmentsField"> <xsl:attribute name="runat">server</xsl:attribute> ...
0
votes
1answer
406 views

Content Query Web Part / XSLT Variable Name

I am trying to create my own item style for the content query web part. I need to create a variable to display. The following for title works ... <xsl:variable name="DisplayTitle"> <xsl:...
0
votes
1answer
72 views

SharePoint 2010 People Search Results with Managed Properties returns GUID

I have been tasked with adding some extra phone numbers to our SharePoint 2010 People Search results. To do this, I have created some custom Managed Properties, and mapped them to the relevant Crawled ...
0
votes
1answer
202 views

Content query web part on sharepoint online does not pull some values

I have successfully implemented the following instructions on sharepoint on premise to create a CQWP of a blog roll (a subsite) http://erikswenson.blogspot.co.uk/2010/03/sharepoint-2010-content-query-...