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.

XSLT (Extensible Stylesheet Language Transformations) is a declarative, XML-based language used for the transformation of XML documents. The original document is not changed; rather, a new document is created based on the content of an existing one. [1]

Questions having the xslt tag refers to transformation of xml-documents within SharePoint technologies. 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.

[1]http://en.wikipedia.org/wiki/Xslt

494 questions
6
votes
3 answers

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 described here, using parameterbindings. But I'm trying…
3
votes
1 answer

Modify List Header Utilizing XSL

I am working with SharePoint 2013 and SharePoint Designer 2010 (and I'm a newbie to SharePoint) striving to modify a list header. Since this is a corporate site there are a lot of limitations, so basically I believe I can only use XSL to do the…
Svet
  • 31
  • 1
  • 2
2
votes
1 answer

What is the xslt mode binding for a choice field?

Say I want to grab a choice field via xsl. What is the right binding for mode? I can't find this information anywhere, and I've tried everything in its place! Text_body ? Choice_body ? MultiChoice_body ?
bgmCoder
  • 3,581
  • 16
  • 61
  • 102
2
votes
1 answer

Description of SharePoint list column in SharePoint designer xslt

have a list in SharePoint portal. Also I have added description to each of the fields in list. Now I have created a dataview webpart in SharePoint 2007 Designer. I am able to get the list column values but I em not able to get the Column description…
sharmila
  • 593
  • 1
  • 8
  • 19
2
votes
1 answer

Filter xslt element values for SharePoint form

I have the following XSL declaration in a custom View form for an SPList: server Attachments
Robert Burke
  • 123
  • 4
2
votes
1 answer

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 current user.
Stef Heyenrath
  • 877
  • 13
  • 26
1
vote
2 answers

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 with the banner or without it if it doens't have…
user2536
1
vote
1 answer

Modify Link List

When I add
e.ozmen
  • 1,492
  • 11
  • 33
  • 52
1
vote
1 answer

itemstyle.xsl image styling

I'm using the itemstyle.xsl file to format a CQWP query on a page. Everything is working except that I want to fix the height and width of an image. I'm displaying the image with :
user14129
  • 11
  • 1
1
vote
1 answer

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" ' != 'Select="Rows/$myParam" ' Eventually the goal is to have…
user13186
  • 886
  • 1
  • 16
  • 34
1
vote
1 answer

ignore special characters in title (xslt)

my xslt: I get this output if the title is P&O: P&O but what i realy want is that he ignores the special characters, because the filter thinks it's a extra value. Is this possible? I…
Celestine
  • 11
  • 1
1
vote
0 answers

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 have a very simple XSL code that shows how to…
Curt
  • 11
  • 1
  • 2
1
vote
0 answers

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 it!!! Code as follows
Monica Jagani
  • 3,836
  • 6
  • 32
  • 49
1
vote
0 answers

Sum Multiple items if condition met

This is a document library. I'm trying to have calculations in two fields (Year 1 Total and Year Order Complete). I'm trying to use the condition "When Team = Axis Deer or Some Other Choice and DocumentType = Task Order or Modification) use xslt to…
1
vote
1 answer

Set xsl variable using javascript function

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:
Neejesh
  • 53
  • 2
  • 8
1
2