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, Content Query web parts & Search Web Parts.

Filter by
Sorted by
Tagged with
1 vote
1 answer
510 views

Formatting multiselect lookup in XSLT

I'm using this function to render items in a multi-select lookup field so that each one appears on a new line instead of AA;BB;CC;DD etc. This method uses the substring-before and substring-after ...
4 votes
1 answer
7k 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 ...
1 vote
1 answer
3k views

Customize discussion board xslt

I wanted to modify the xslt file that displays discussion board threads. I tried to find the xslt in "Style Library" -> "XSL Style Sheets" but could not find the stylesheet there. Where can I find the ...
5 votes
1 answer
219 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!
0 votes
1 answer
934 views

Connect to a view from a CQWP

Is it possible to point the CQWP to a list view? We have implemented 3rd level navigation using subsites and now the subsites can't read the lists in the parent unless we use a content query web part, ...
3 votes
2 answers
927 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/> ...
2 votes
3 answers
4k 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 fn:...
1 vote
2 answers
5k views

Change XSLT for Discussion Board, deploy via VS2010

So we are creating a branded web site for a client to deploy internally (kind of an intranet), but 99% of users won't see the ribbon, just a branded information site. They want to use the Discussion ...
2 votes
2 answers
3k 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 ...
1 vote
0 answers
608 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
1 answer
3k views

Custom field type rendering in XSLT

How can I render a custom field type with XSLT. I want to render in the same manner like I do with this CAML <RenderPattern Name="DisplayPattern"> <Switch> <Expr> &...
0 votes
1 answer
397 views

How do I use a XSLT file as an e-mail template?

I've seen a few sharepoint developers use XSLT files instead of HTML files as their e-mail templates when they need to send out various items from lists in emails to subscribers / clients. I have ...
0 votes
1 answer
1k views

XSLT - Conditional Formatting on Date Column

Is it possible to apply conditional formatting to a date column? I'm trying to set the columns background to red if the date has passed using the following <xsl:if test="normalize-space($thisNode/@...
0 votes
1 answer
2k 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
1 answer
940 views

deploy XSLT list view webpart using "AllUserWebPart" through a feature from the solution package

I am trying to deploy custom pages from feature. I came to know that the webparts(oob or custom) are to be deployed from the elements file using the "AllUserWebPart" wherein we have to include the "....
5 votes
3 answers
598 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 ...
2 votes
1 answer
3k 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
1 answer
2k 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 ...
0 votes
1 answer
204 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 ...
1 vote
1 answer
3k views

Data View Web Part: edit XSL to force a carriage return in a Multi-item field

I am using multi item lookup fields in a list (eg: "Data Subjects"). I then have a web part page with a Data View Web part connected to this list. The data within Lookup fields span the column ...
2 votes
2 answers
1k 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 ...
1 vote
2 answers
374 views

Sharepoint - Provisioning xsl Style Files

I'm trying to provision a .xsl file with custom styles to be applied to a Content Query Web Part in SP 2007 MOSS. I want to deploy it in a feature. So far any attempt has failed as I cannot retrieve ...
4 votes
1 answer
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 ...
2 votes
1 answer
537 views

Add numbering to the search core results web part in MOSS 2007

I am using MOSS 2007 to provide a custom search results page. I need to display a number as part of search results which indicates the number that result appears in the whole result set. The problem ...
1 vote
1 answer
322 views

Web part error - (401) Unauthorized

I have a little program that queries a web service, transforms the results using XSLT and displays them in a jQuery control. When I move the code into a web part it and deploy it, however I'm getting ...
1 vote
1 answer
686 views

Custom View Header Rendering Twice on External List

I'm starting to work with custom view stylesheets on an external list. I am finding the header is rendering twice - once upon initial page render and again after the data is returned from the server: ...
0 votes
1 answer
2k views

XSLT for summing Number column where there are cells with no value

This is akin to this question but I couldn't get the suggested sumAll function to work. I also have several different columns to sum and it just seems silly to have a separate template for each ...
1 vote
3 answers
4k views

DataViews and Query String Parameter

I've used a parameter in the query string to filter a dataview. The parameter is declared in "SelectParameters" tag and used in the "selectcommand" parameter as a filter in the query. Now, is there a ...
2 votes
1 answer
955 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
3 answers
945 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 ...
1 vote
1 answer
729 views

Dataview XSLT issues creating variables

I've got 2 fields in my list defined as numbers, @TotalSeats with a current value of 10 and @FilledSeats with a current value of 0. I'm trying to use some XSL Variables to handle some display logic ...
11 votes
1 answer
2k 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 ...
2 votes
3 answers
3k views

Comma in URL field

I'm having some trouble with URL fields in my List. The problem is that SharePoint stores URLs in two parts, "Description" and "Url", but in SharePoint Designer I can only access the whole URL in the ...
1 vote
1 answer
413 views

attachments issue in DVWP, published page vs draft

I've got a single item DVWP (in a web part zone) displaying items from a list (gets the ID of the item to display from a query string parameter), it also displays any attachments using this; ...
0 votes
1 answer
469 views

Conditional show list column based on current MUI language in SP2010?

I have a list in a SharePoint 2010 site which has two columns for a description - one in English and the other in French. I'd like to be able to show only the column that matches the language ...
1 vote
2 answers
2k views

XSLT show picture or show nothing

I have created a custom xslt style to display the news on my website. My issue is that some of my news have a banner and some of them don't. So how do I determine by using XSLT how to display the news ...
1 vote
1 answer
335 views

DataViewWebPart - Can We access the property bag value from the XSLT of DVWP

DataViewWebPart - Can We access the property bag value from the XSLT of DVWP?
0 votes
1 answer
642 views

what's the best practice to display tabular / Grid data in Sharepoint 2010?

We can develop a custom control in Visual studio and deploy it as a webpart to use in SP. but I head of some other ways, so can you please list possible ways to achieve this? and what's the pros and ...
0 votes
1 answer
234 views

FlexListViewWebpart + custom XSLT (MOSS 2007)

I am working as a sharepoint consultant for 2 months now. Recently graduated so everything is a bit new to me. At the moment i am trying to figure out the flexlistviewwebpart, a webpart to allow the ...
1 vote
2 answers
1k views

Duplicate the functions of the ddwrt xsl namespace

I am creating a custom print function for our Sharepoint data as we have some requirements about the way the data is formatted and some of this depends on the content. I am using xml and xsl for this ...
0 votes
1 answer
483 views

Show document library url in search results

When editing the XSLT for the search results web part I'd like to know when the result represents a document or, for that matter, a list item and then.. I'd like to be able to display a link to the ...
0 votes
1 answer
428 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
1 vote
1 answer
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 ...
2 votes
1 answer
2k 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 ...

1
6 7 8 9
10