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

learn more… | top users | synonyms (1)

0
votes
1answer
11 views

How to check if variable is not empty in xslt?

I am using sp 2010. I have a custom search result in xslt. I would like to check if "srportalurl" is not empty before show a ahref. If variable "srportalurl" is empty I would like show only the ...
0
votes
1answer
20 views

How can you move up the paging buttons

The default location of the Paging buttons is all the way down(see picture below). Is there a way to move them over all the way UP, so that users don't need to scroll down every time they want to ...
0
votes
1answer
16 views

Removing “<pdf:Producer>” from HitHighlighting results in Sharepoint with Foxit PDF IFilter

In my search results, I am getting something like this included in the HitHighlight section of the result item in the "Search Core Results" web part: <pdf:Producer>Microsoft® Word 2010 ...
0
votes
0answers
19 views

Pass Content Query Web Part ToolPart TextBox Value to XSL

I have extended the Content Query Web Part by adding a textbox control ToolPart. This is working, i.e. I am able to see the control, add a value in the textbox and save it. Is it possible to pass ...
0
votes
0answers
21 views

SP2013 CQWP and slider give me blank slides

I have a big issue and a question about CQWP and slider. I have an image library which will serve as a news library. I've set a CQWP on my homepage which will display Image, title and comments ...
0
votes
1answer
15 views

Itemstyle.xsl custom template

I have a custom template that I use for a CQWP with announcements. I have it set to truncate the announcement at 750 characters, then show a link with the text [Full Announcement]. The issue is when ...
0
votes
0answers
24 views

Xslt truncate text in field and add link

Hi I have a DataForm Webpart and editing in SPD. I need to truncate a column so I've replaced this line <xsl:value-of select="@AboutUsDetailedIntroduction" disable-output-escaping="yes" /> ...
0
votes
0answers
11 views

XSLT Image Source Duplication

I have an XSLT file where I output the image source using an attribute. It works fine or should I say it was working fine until I realised that it's outputting two values the same that are now ...
0
votes
1answer
25 views

Showing Items of Custom List

I created a new custom list then I created new web-part with custom list. I added xsl code for the web-part. I want to five item appears on homepage. If users click on "All Items", they redirect to ...
0
votes
0answers
17 views

How to get the unique values in DVWP using XSLT

My requirement is to get the unique values from the list in DVWP Web Part using XSL. Let's say i have following values in my list (10,10,20,30) and i need to show as (10,20,30). Any help would be ...
0
votes
0answers
18 views

Custom filter and sort using xslt

Is it possible to use a query string to select items from a list and order them? For instance my page & query string SortFilter.aspx?selection='i13o1,i5o2,i27o3,' (i is for Item, O is for ...
0
votes
0answers
30 views

XSLT on Person field allowing multiple values

I have a content query using custom XSLT that displays the user and his presence icon on the page.I got the XSLT from this link Here's a snippet of how I'm using it: <xsl:variable ...
0
votes
0answers
43 views

Dataview sort order issue

We have a dataview that pulls info from an XML file in a SharePoint library which is used to display a list of results grouped by 2 different dates in ascending order. An issue occurs when the XML ...
0
votes
0answers
23 views

SP2013: Recursively sum a calculated column

I know SharePoint 2010, but this is my first time with 2013 and XSLT. I've got a page with a DVWP that's pulling data via SOAP from another list on the site, and I'm trying to get the sum of an ...
0
votes
1answer
49 views

XSL for CQWP to display Link List items

I am attempting to use the following solution from Marc D Anderson's blog to display LinkList data in a Content Query Web Part: ...
0
votes
0answers
23 views

How to retrieve the ISO/original value of a DateTime column in a list using CAML?

I'm using SharePoint Foundation 2013 and I want to retrieve the data in my DateTime column. Is there a way to retrieve the original/raw values or ISO values of a DateTime column using CAML query? ...
1
vote
2answers
31 views

Hours and Minutes calculation in Dataview webpart

I have a DataView Webpart, to display XML data using XML File connection. I use the below formula to calculate the day difference between 2 dates: ...
1
vote
0answers
53 views

Search Results XSLT add filename property and render document link

I'm attempting to configure the custom XSL for core results search web-part in 2010. The goal here is: Include File name property as a search target Display Link directly to the file I've ...
0
votes
0answers
20 views

how to get the XSL names of the columns list

I need to add 3 more columns in the list which is shown in XSL. I looked at the webpart properties and there is defined a XSL Link file in the " Miscellaneous" of the web part properties. I opened ...
0
votes
0answers
25 views

XSLTListViewWebpart recursive header

I created a new XSLTListViewWebpart to display a list of files. This list contains folders and i just want to show the files with " Scope="Recursive" ". Now the header filters only show the folder ...
0
votes
1answer
45 views

XSLT or .NET in a webpart

Now I do a webpart with XSLT when only show data, but no know if is better make it with code .Net. for Example in XSLT: XSLT and SharePoint – Part 1 XSLT and SharePoint – Part 2 what is the ...
1
vote
0answers
28 views

xsl change on fields in dispform.aspx

It isn't too difficult to use xsl to modify the display of items in a list (via a custom fldtypes.xsl file), but can the fldtypes.xsl file also be used to change the display on the `dispform.aspx' ? ...
0
votes
1answer
54 views

How to refresh after edits to fldtypes.xsl?

After I make an edit to my custom \LAYOUTS\XSL\fldtypes.xsl file, such as these, how do I make the system immediately load the new file? I know I can get it loaded immediately with an iisreset. I ...
1
vote
1answer
35 views

XSL Handle on PercentComplete column

In my sharepoint task list there is a field with a display name of % Completed with a name of PercentCompleted. I am trying to get an XSL handle on this column so I can add a css class. I have put ...
0
votes
0answers
34 views

XSLT rendering differently in the browser

I am having an issue with modifying some XSLT. I have two columns, and am trying to change the background color of each item depending on the value of the two columns. In SPD 2010 this works ...
0
votes
1answer
76 views

Redirect to Display Form page after new item created

I have created a custom New Item Form, and customized the Save button to redirect to the Display Form after submission. I asked a similar question, and it was gratefully answer by @Amal (here). The ...
1
vote
1answer
103 views

Redirect after form submission to a display form page

I have a Item Form to which I would like to add a redirect feature after submission. <button class="btn btn-default" onclick="javascript: ...
1
vote
0answers
53 views

Can you make an XSLT group by itself through lookup?

Recently I figured out this nice grouping template that I will paste below. Now I am wondering: my list is really simple: Title Parent (= lookup to Title of this list) I would like to this list to ...
0
votes
2answers
49 views

List Validation

In attached sharepoint list column "Status" Data Type is "Number", Column type is "Calculated", Formula :- =IF(NOT([Balance Qty]=0),"OPEN","CLOSED"). Here the requirment is if "PO Date" is not ...
0
votes
2answers
48 views

My first row keeps repeating - <xsl:template match=“Row”>

I am getting data from a list with xsl and creating a nice print preview of that data. The table I am creating is correct except my first row keeps repeating (it has the column name and it is only ...
1
vote
1answer
51 views

Display count of items in each group by in the header using a data view

I am doing a group by in my data view web part and would like to be able to show the item count of each group in the header. There is an option you can use from the data view Sort & Group options ...
0
votes
0answers
27 views

Why does (XSLT-Function) generate-id() not work in SharePoint 2013 Content by Search WebPart?

Is there a reason that some XSL 1.0 functions do not work in SharePoint 2013 Content by Search Web Part? I recently came across the problem that a nested <xsl:for-each> does not work and neither ...
0
votes
2answers
84 views

CQWP: How to count rows per category

I have a CQWP that returns all draft items in a single library, grouped by "Modified by." I would like to display a count of draft items next to each user's name. I know how to edit Header.xsl, and ...
0
votes
1answer
32 views

What is the meaning of this XSLT?

I want to know the meaning of this following XSLT Code shown below... <xsl:choose> <xsl:when test="(substring-before(substring-after(@Department,'=*&quot;&gt;'),'&lt;')) = ...
0
votes
1answer
191 views

Alternate List Row Color in WebPart Content Query

XSL File : Created Custom Template Style <xsl:template name="Custom" match="Row[@Style='Custom']" mode="itemstyle"> <xsl:variable name="SafeLinkUrl"> ...
0
votes
2answers
83 views

how to deploy a page with XML in Visual Studio that having Friendly Url?

how to deploy a page with XML in Visual Studio that having Friendly Url? Does anyone knows how can I do that? example what not have Friendly Url <File Path="Home.aspx" Url="Home.aspx" ...
0
votes
0answers
45 views

SP2013 - Static item in Content Query Web Part?

On our main page of our SharePoint implementation, we have a CQWP called Spotlight. It's displayed as a banner slider with paging buttons on it. It will only ever show 7 of the most recent Spotlights. ...
0
votes
0answers
16 views

Change $CurrentLcid in XSL

In the XSL of my refinement panel, I've this: <xsl:param name="CurrentLcid"></xsl:param> Unfortunately the value never changes when I change my selected language. Do you have a ...
0
votes
0answers
37 views

CQWP blog roll Item Style for blog posts how to put a field in bold in xsl? or format others?

I followed this popular guide to do a CQWP of one or more blogs. http://erikswenson.blogspot.co.uk/2010/03/sharepoint-2010-content-query-for-blog.html Everything works, except I would like to know ...
0
votes
0answers
52 views

XSLT - Field Value shows in designer, but all field values does not render in browser except @Title

SharePoint 2010 I have project I'm working with, using Accordion within EasyTabs. Everything works fine, but when the page is rendered in the browser fields drop off. Except for the @Title field. ...
2
votes
3answers
147 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" ...
6
votes
1answer
267 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 ...
0
votes
0answers
111 views

dispex SharePoint.OpenDocuments.3 works for PDF but not Office docs?

I have the folllowing in my XSL for a (SharePoint 2010) content query webpart: < A onfocus="OnLink(this)" HREF="{$ItemUrl}" onmousedown="return ...
1
vote
0answers
42 views

get the current lang in xslt

I'm new with xslt and have a web part refiner. In the xslt, i've the param at the beginning: CurrentLcid <xsl:param name="CurrentLcid"></xsl:param> When i test the value, the value is ...
0
votes
0answers
19 views

XML document in an XSL

I have an XML document located in the style library inside a folder "Traduction". I have a refinement web part and in the xsl, I'm trying to load this document, unsuccesfully. Here is my XML ...
1
vote
1answer
66 views

CQWP ItemStyle Divs are being nested

In short, sibling divs coded in my custom ItemStyle for use with a CQWP are being nested into each other. Stripped down to the essential structure I have <xsl:template ...
0
votes
2answers
50 views

get the current lang in xsl

I'd like to know if it's possible in Sharepoint2010 to get the selected language. in js you can have it with lcid = SP.Res.lcid; now i'd like to have the value in the xsl of the refinement panel ...
0
votes
0answers
22 views

Email link in XSL with custom body

I have one requirement of sending an link through email by just opening browser with custom html. So for that I have added following in my xsl file, refer my fiddle: ...
0
votes
1answer
132 views

How to create my own xml viewer webpart programmatically?

I am using sharepoint 2013. I have used the xml viewer webpart but I have to much trouble and limitations. I would like to build a visual webpart in Visual Studio. In this webpart I would like to read ...
1
vote
1answer
181 views

How to get current date in xsl in XML Viewer WebPart?

I am using SharePoint 2013. I am using the XML Viewer WebPart. In this webpart I have some xml and a write xsl in the xsl editor. Everything is working fine. I would like to filter te data on the ...