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
2answers
159 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?
1
vote
3answers
180 views

SharePoint XSLT and FF + Safari

I'm currently working on optimizing a clients website for all big browsers (IE, FF, Safari, Chrome, Opera) and I've encountered unsolveable issues (for me at least) here regarding the CQWP & ...
1
vote
1answer
412 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 ...
1
vote
1answer
337 views

Print attachment image in data view web part

I want include the attachment image directly in data view web part. I used the below code snippet, it is displayed image name link, but I need to print image here. <xsl:element ...
3
votes
1answer
4k 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
1answer
2k 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 ...
1
vote
1answer
562 views

How to construct 3 level grouping usng xslt 1.0 - Sharepoint 2007

I have this XML output from a sharepoint list <z:row ows_Attachments="0" ows_Title="Parra" ows_State="State" ows_Area="Area 4"/> <z:row ows_Attachments="0" ows_Title="matta" ...
5
votes
1answer
196 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
1answer
157 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
356 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
2answers
4k 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 ...
4
votes
2answers
942 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 ...
2
votes
2answers
1k views

How to display document approval status in a content query web part?

I have this XSLT to display document title and approval status <xsl:template name="DocumentStatus" match="Row[@Style='DocumentStatus']" mode="itemstyle"> <xsl:variable ...
2
votes
3answers
940 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
1k 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
3answers
2k 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 ...
1
vote
2answers
4k 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 ...
4
votes
2answers
3k 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 ...
1
vote
2answers
947 views

Xpath - How to get multiple values from Checkbox list as parameters

I have a custom list that i'm filtering passing parameter from an asp.net control. I do have some checkboxlist items, e,g below $priorChk. The problem I have is if I select only one checkbox and ...
1
vote
0answers
490 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 ...
0
votes
1answer
211 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
1answer
747 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 ...
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 ...
1
vote
1answer
2k views

CQWP - Get Current Web URL

I am customizing the ItemStyle.xsl in SPD2010 for a CQWP crawling a whole site collection. I need to use the current web as a variable. I tried multiple options: Option #1 - use server variables in ...
0
votes
1answer
726 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 ...
2
votes
1answer
1k 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
1answer
831 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
1answer
182 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 ...
2
votes
2answers
646 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 ...
0
votes
1answer
2k views

content query webpart itemstyle wrapped by group style in XSLT

I have the following markup: <ul id="slider"> <!-- slider item --> <li> ... </li> <!-- end of slider item --> </ul> and I have ...
3
votes
1answer
1k 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: ...
1
vote
1answer
2k 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> ...
1
vote
1answer
73 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
1answer
2k 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
1answer
662 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
3answers
877 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 ...
0
votes
1answer
472 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 ...
2
votes
1answer
508 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 ...
1
vote
3answers
669 views

Remove Images from RSS Viewer running over SSL

Within our SharePoint 2010 farm running over SSL, we have multiple RSS feeds that are delivered through http://. The issue arises when these RSS feeds have an image and IE displays the warning of ...
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 ...
3
votes
2answers
628 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/> ...
1
vote
3answers
2k views

Hide column in xslt view

I've got an xslt list view. I have one column that should be used in the xslt calculation (shown as a row tooltip) but it should not be visible as a column in the list. Question: Must the column be ...
1
vote
2answers
9k views

How to format the date column in itemstyle.xsl

I'm editing the itemstyle.xsl to produce my own styling for a Content Query Web Part (CQWP) as follows: (NB - 2 laternative lines of code are shown as (A) and (B) <xsl:template name="MyNewStyle" ...
1
vote
2answers
304 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 ...
1
vote
3answers
1k views

content query web part versus custom web part

In a publishing site, I want to create a webpart that display the result of a query with a custom display (a kind of rotator). As the goal of the web part is to be reusable and must be quite simply ...
1
vote
3answers
1k 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
1answer
551 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: ...
1
vote
1answer
362 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; ...
1
vote
2answers
1k 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
3answers
2k 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 ...