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

learn more… | top users | synonyms (1)

1
vote
1answer
455 views

how to store an xsl field in parameter/variable?

I am trying to create a dynamic query filter with N columns but to do this I must store the entire query in a parameter. Assuming $myParam = "@Title" ' Select="Rows/@Title" ' != ...
1
vote
1answer
130 views

ignore special characters in title (xslt)

my xslt: <a href="?Filter={$itleUrl}"><xsl:value-of select="@Title" /></a> I get this output if the title is P&O: P&O but what i realy want is that he ignores the special ...
1
vote
0answers
72 views

Wierd format of Modified date and PublishingStart

Iam having trouble with date formats of these two fields: Modified and PublishingStartDate. They are different in format. Iam attaching how they display on my computer. I have regional settings set to ...
1
vote
0answers
81 views

CQWP pass columns by default

Lately we migrated a website from Sharepoint 2007 to Sharepoint 2010 and one of the issues we faced is that the content query webparts used to work fine but now it doesn't (It's missing some values) ...
1
vote
0answers
3k views

How to link Title to document using XSL?

I have been struggling with this one for a couple days and figured it was time to ask for some help. I'm not sure if this is right forum, so if not please point me in the right direction. Does anyone ...
1
vote
1answer
414 views

replace link in search results with custom column

I would like to edit how the search results render. The default behaviour is to start with a link to the document (or the dispform.aspx of a list item). I was able to change the url value for specific ...
1
vote
0answers
764 views

How do I create a lookup field for a hyperlink field and display the URL?

I have a regular, out of the box, list of type "Links". I have created a custom list that includes a lookup field to the URL field of the "Links" list. I have created a custom xsl template file for ...
1
vote
1answer
145 views

SP2010 workflow task-mails: invalid html in sended mails

Sometimes (not always) some task-mails are not displayed correctly. xslt: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" ...
1
vote
1answer
761 views

CQWP Error when modifying webpart and ItemStyle.xsl : from example SP2010

I am trying to create a webpart that would take blog posts from subsites under site and roll them up. I found a blog that describes exactly what I am trying to achieve here. After following these ...
1
vote
1answer
401 views

xslt dropdown & spservice.spcascadedropdown

I have a xslt list form view. I have 3 drop down on the form - Area , Geo Market , Country for which i want to implement cascading functionality. Data saved in list is of type Single line of ...
1
vote
0answers
432 views

xslt enable-disable control

I have 2 control : Check box and Choice (Radio Button). On Selecting check box , radio field should be enabled and on unchecked of check box , choice field should be disabled. Can someone help with ...
1
vote
2answers
3k views

How to count the number of rows returned when using a Data View Web Part XSLT and Xpath

I have created a data source to link, via a join, 2 lists in sharepoint 2010. The result is a Data View Web Part. I would like to count the results returned in the second 'lookup' list. So for ...
1
vote
2answers
1k views

ddwrt Schema Unavailable?

So: I'm trying to use the ddwrt:FormatDateTime function in an XSL transform, but I'm getting the following error: Exception details: Method: ...
1
vote
0answers
300 views

Problem with 2 column layout in DVWP

MOSS 2007. I have a joined list with mutliple categories. I have a two column layout where the category is the header for each section with a group of subcategories. The categories are filtered based ...
1
vote
1answer
330 views

Enterprise Search Results + Ratings

I am trying to add rating stars to the search results in my Enterprise Search Center site according to the instructions found on the following sites: MSDN | Corey Roth - MVP's Blog | Todd's Blog ...
1
vote
1answer
739 views

Get the title of file and not file name in content query web part?

What do I use instead of <xsl:variable name="DisplayTitle"> <xsl:call-template name="OuterTemplate.GetTitle"> <xsl:with-param name="Title" ...
1
vote
1answer
180 views

Copying code over in Sharepoint Designer 2010 and changing it, deletes code from the original file, how can I fix this

Suppose I have two files, A, and B respectively. Everytime I copy xsl code from file A to B and modify the code in B and save it. The code in A gets removed (all except for the WebPartZone tags and a ...
1
vote
0answers
522 views

How do I make the XML Viewer web part ignore a Doctype element?

I have an issue with a SharePoint 2010 xml viewer webpart and an xml feed that contains DOCTYPE. The xml renders fine when there is no associated XSL with the webpart. When I add XSL to the webpart I ...
1
vote
1answer
28 views

Add new announcement link viewable by permissions

I created a Content query web part on my home page which is from an announcement list from a sub site. I wanted to add the "Add new Announcement" link below it, but only viewable to those who have ...
0
votes
4answers
2k views

help with xsl if statement

I am trying to change the icon for the "Link to Document" on the searchResult.aspx page. I added following to the xslt of the result but then the result webpart never renders meaning the code is ...
0
votes
1answer
1k views

Close SP.UI.ModalDialog on form submit

I am using the SP.UI.ModalDialog to popup a custom form. The form uses an XSL stylesheet that uses the GenFireServerEvent to commit the data. This works correctly, but I want to close the popup once ...
0
votes
1answer
205 views

HTML code being displayed instead of resulting output from a column in List

I have a column named "Detail" in my list and its type is "Rich Text". When I insert some item in this list for e.g. "This is a test" and when I display this list on home page of my site using XSLT ...
0
votes
1answer
171 views

Writing Javascript code in XSLT

Can I write Javascript code in XSLT? Basically I will be calling Javascript's document.location.href to check which site is currently opened (English or Arabic). So let's say if English site is ...
0
votes
3answers
349 views

obtain list view rendered html from code?

Is there an option how to obtain the list view rendered html from code? For example I have an item (for example task ct) and i would like to obtain html rendered (on server side) if this item will ...
0
votes
1answer
1k views

xsltlistview overiding the column headings using Xsl Link

I have a listview webpart that used specific columns. Changing the names of the columns is not an option. Our users are insisting that the heading for these columns be updated, so I am thinking of ...
0
votes
2answers
699 views

DVWP CrossList Paging Does Not Work

I've build a Data View Web Part with SharePoint Designer 2010, using SPDataSource and DataSourceMode="CrossList". The DVWP works great, but when I add paging, it adds the paging placeholder and the ...
0
votes
1answer
81 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 ...
0
votes
1answer
185 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 ...
0
votes
2answers
68 views

Applying XSL to a field in sandboxed solutions

I have 6 fields that need to be displayed differently in list views. Normally, I would accomplish this by deploying a fldtypes_....xsl file to the hive. The problem here is that I cannot use farm ...
0
votes
1answer
41 views

Except “Modified” none of the fields are being displayed in XSL

I have a site in which there is a library named "Pages". This is the standard library where all pages that you create comes. Using XSL, I am trying to display page links on my home page. Problem is ...
0
votes
1answer
2k views

string-length in XSLT not working

I have written the following code which checks whether the string provided is greater than 1- characters in which case only print the first 10 characters, otherwise print complete string. But I am ...
0
votes
3answers
401 views

How to use resrouce file inside page layout?

I have a page layout in which following text is written: NEWS I already have a resource file which I am using in one of my XSLT file to display text based on language. In XSLT file I simply ...
0
votes
2answers
785 views

Totalling output from column for all entries in a list

SP2010: I need to come up with a total (number) of a column for all entries in a list. For instance: Given a list with entries which can be comprised of apples, oranges, and pears, and their ...
0
votes
2answers
646 views

How to have a row number in a custom webpart with pagination

I have a custom list and i would like to have a row number. I did use the <xsl:number/>and that worked but when i click on the next page of the list the number resets itself back to 1 again. Is ...
0
votes
1answer
2k views

Linking CSS file to ItemStyle.xsl for CQWP custom template

Beginner. I have created a custom template for a CQWP in the ItemStyle.xsl. One thing that I am not sure about is how I could associate a css file so that anytime this template style is used the ...
0
votes
1answer
743 views

DataFormWebPart - Implement cascading dropdown

I have new form modified via xslt. So i have DataFormWebpart. I want to implement cascading drop down for 2 of my lookup field(Area and Country). Can anyone help on it. I am aware of the ...
0
votes
1answer
521 views

Converting datetime column value to server datetime value

I am trying to build a calendar with date time columns. My SP 2007 server is in US and I am trying to use this site in India. My server returns the EventDate column value in India format. I want to ...
0
votes
2answers
877 views

Remove Duplicates in DVWP using JQuery

I am using a linked datasource in MOSS to create a dynamic table of contents page based on a metadata associated with files in a document library. The library contains multilookup columns for the ...
0
votes
2answers
178 views

How do I grab first element using XSLT?

In one of my itemstyles I want the first element in the list to have a bit different look than the other items being displayed. How is it possible to take the first item?
0
votes
1answer
169 views

Help with ContentQueryMain.sxl

I'm creating a CQWP that i want to style without the <ul class="dfwp-list"> ... wrapped around it. I know the html is created via a variable inside OuterTemplate but For this QCWP i dont ...
0
votes
1answer
185 views

render Custom Field Type

I have a Custom Filed Type which is rendered in default view (using a simple XSL) like this StreetName,1,K1,2,1,3,Los Angeles,90210 It's an simple adress. How can I render it like StreetName, nr. 1 ...
0
votes
1answer
866 views

Programmatically assign custom xslt to search result webpart

How can I programmatically assign some custom rendering xslt to a search results webpart using Visual Studio? I'm working with SharePoint 2010
0
votes
1answer
425 views

MOSS ItemStyle.xsl

I have a content query webpart which uses a style within ItemStyle.xsl. How can I extract the URL that the webpart sits within from ItemStyle.xsl? Many Thanks, Nav
0
votes
1answer
1k views

Discussion replies show as 'Dispform.aspx' in search results

Search results show 'dispform.aspx' as the page title on replies to discussion posts. Ideally i'd want it to say 'RE: discussion title'. Does anyone have any idea how to achieve this? EDIT - should ...
0
votes
1answer
59 views

How to get SharePoint ID given only item URL?

Looking for the simplest possible solution, but needs to be JavaScript/jQuery if at all possible. I have an XML document that I am transforming using XSLT to render an HTML page. This XML document ...
0
votes
2answers
395 views

Converting text field to hyperlink via xslt

In my list I have a field for just a regular old text field - all default. It's just a plain, default text field named [TextLink]. And in my fldtypes_custom.xsl file I have included some lines to ...
0
votes
1answer
154 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
37 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
1answer
57 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 ...
0
votes
1answer
388 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 ...