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.
494
questions
0
votes
2
answers
80
views
CQWP Search Result shows incorrect Item Link URL
Environment: SharePoint 2013
I`m using Gridview to display CQWP search data in Grid format with Link to the Title of the Item.
Using XSLT Template, I have the following code to have ITEM link ...
0
votes
2
answers
723
views
How to add days to ddwrt:today() in Xslt?
<xsl:value-of select="ddwrt:Today()">
I would like to add 7 days to the above code. please help
0
votes
1
answer
418
views
How to hide "Name" column from Preview Pane style
I'm trying to hide the Name column from the preview pane view in a form library.
What I've done in my view on SPD is change the field used in the view list (the area you hover over) to this:
&...
0
votes
1
answer
889
views
XSLT template for custom field not working
I have a custom XSL transform for a Text column and it works fine. Here is markup:
<xsl:template name="FieldRef_Text_body" ddwrt:dvt_mode="body" match ="FieldRef" mode="Text_body">
<xsl:...
0
votes
0
answers
48
views
Pull Data Into Individual Web Part
I know what I would like to do, but I do not know how to search to find the best solution. I have a list of URLs on a list that link to stories. I do not want the user to see the entire list of URLs....
0
votes
1
answer
127
views
How can I show/access XSLT variable in Content Query web Part pane?
I am using Content Query WebPart to display one item only on home page from the Posts list.
I need to display the data based on three conditions:
1) if "Display on home page" check box is checked
2) ...
0
votes
1
answer
1k
views
How to get current user email id or login name in XSLT?
I am using office 365, and trying to get current user email id or login name in XSLT. A similar question is asked here. How can I do?
0
votes
1
answer
5k
views
How to check if xslt value is empty
I am creating a link on a custom display form in SP2013 on premise.
I can create a working link fine using:
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@...
0
votes
1
answer
57
views
Search Result - xslt - url
I have following in XLST to display URL
<td class="ms-vb" style="width: 257px">
<a href="{url}">
<xsl:value-of select="url"/>
</a>
</td> ...
0
votes
0
answers
93
views
load next data using content query web part
I am using CQWP to display some items from a custom list. So far it is working fine, but now I would like to add a button where the user can click to load the next batch of data. Like a sort of paging ...
0
votes
1
answer
94
views
Changing XSL View not working
I have on my site a Business Data Connectivity list with a field which equals some urls.
I found some internet links to change the url text to the image which the text points on. But it's not working....
0
votes
0
answers
93
views
Get only published pages from pages library in CQWP
I am working on CQWP web part and all weorks fine except one thing.
In my CQWP webpart, it rollup all pages of specific content type and display in CQWP webpart. But problem is that it also return ...
0
votes
1
answer
1k
views
How to save attachments filename into a field?
I am trying to create a URL/ Link with current item attachment filename.
My example
List name: MyList
ItemID : 100
LinkField: NULL
attachments: abc.csv & abv.doc
I would like create a ...
0
votes
0
answers
449
views
How to work with the Content Query Web Part (CQWP) & XSLT
I have been using SharePoint for a few years now, but limit of my skills include anything I can do in the browser and some stuff using Designer (Branding, Workflows).
I know how to use the CQWP to ...
0
votes
1
answer
139
views
Why won't list view display when <xsl:if> element is used?
I have a list of contacts in SharePoint 2010 that I want to display in 3 different tables based on a TablePos attribute using a custom stylesheet. The TablePos attribute can have a value of Left, ...
0
votes
1
answer
58
views
System.BadImageFormatException after adding line to XSLT for a DVWP
I'm getting a peculiar error after adding a line to my XSLT used in my DVWP. I can't paste all my XSL here but let me explain like so:
I have an .xslt file with 284 lines
My DVWP references it ...
0
votes
1
answer
38
views
differences in the XML returned in a DVWP vs list.asmx webservice for a plain text field with a URL
I'm trying to figure out why the XML returned in a DVWP is different then what is returned with the list.asmx webservice for a plain text field with a URL in it.
I have a list with a plain text field....
0
votes
0
answers
178
views
How can I take some user input (html or markdown), transform with XSLT, and write the resulting file to a library?
Not looking for a solution here, just something to get me started in the right direction.
I would like to create a page that takes some user input from a textbox (markdown would be cool, but HTML is ...
0
votes
1
answer
54
views
Need help rendering .prepend text in SharePoint
Folks,
I am trying to use the jQuery .prepend method to display some text on the top of a web part page (underneath the main header). Unfortunately, the text is not rendering across the hole page, ...
0
votes
1
answer
193
views
Remove line break from text in JavaScript (variable value from XSLT)
I need get a variable value from XSLT in search result in SharePoint 2010. But this value is muti-lines text. When I add this variable value in JavaScript, the JS code cannot work, because the line ...
0
votes
1
answer
108
views
Does adding a web part to a page make a copy of the web part definition?
The setup:
- Custom Summary Link web part
- Custom SummaryLinkMain.xsl
- Custom ItemStyle.xsl
- JavaScript file that the SummaryLinkMain calls from a separate site collection (an internal CDN) and ...
0
votes
1
answer
342
views
Summarize text data in a field using XSLT
I'm trying to work out a way that several items in a list could be summarized in a single item if they have a keyword in common. For example, given the items:
Sounds: a
Sounds: b
Vocab: word
Vocab: ...
0
votes
0
answers
458
views
Search Result Core Webpart, sort/filter enabled column is not sorting
I am using sp 2010. I have a search core result webpart on a page. I have modify the xslt in sharepoint designer by a dataview webpart. I have make all columns sort/filter enabled.
Filtering is ...
0
votes
1
answer
3k
views
Using xsl stylesheet with List View Web Part to display custom text
I am using a custom xsl stylesheet in Sharepoint 2013 listview webpart using the "XSL Link" property.
The list view shows some items based on a filter. I want to display custom text such as "No ...
0
votes
1
answer
615
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
1
answer
139
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
This ...
0
votes
1
answer
346
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 columns,...
0
votes
1
answer
370
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
1
answer
814
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
1
answer
73
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
1
answer
503
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
1
answer
811
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:
http://sympmarc.com/2011/02/15/displaying-links-lists-urls-in-a-content-...
0
votes
2
answers
855
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 ...
0
votes
0
answers
94
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
1
answer
49
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,'=*">'),'<')) = 'IT-...
0
votes
1
answer
2k
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">
<xsl:call-...
0
votes
0
answers
156
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
0
answers
317
views
Errors Implementing jQuery UI Tabs in a Sub-Joined Data View
I am trying to implement jQuery UI tabs onto my site using a subjoined data view, but I am experiencing some issues. I believe it has to do with my XSL markup, but have been hitting my head against a ...
0
votes
1
answer
153
views
Output all comment versions within CQWP
I currently have a list which contains a text field for comments, versioning is enabled and the comments field is set to "Append Changes to Existing Text", so that we can capture and maintain multiple ...
0
votes
1
answer
119
views
Unable to diplay this Web Part when using a DVWP to display items for a large list
I hope someone can help me out with this one. I have a large list that contains about 40 columns and currently holds 33 thousand list items in SharePoint 2010.
One of the columns is used to enter an ...
0
votes
0
answers
91
views
XSL does not enter the correct condition
I have the following condition (I removed some items not to let the long code):
<xsl:when test="$Rows[1]/@Style='Results-List'">
<ul>
<xsl:for-each select="$Rows">
...
0
votes
0
answers
371
views
Using Rows/Row twice in xslt
I want to use Rows/Row twice but I have no idea how to do it. So I just wrote Rows/Li but it
doesn't work.
I have two different functions but I don't know how to reference them.
How can I change ...
0
votes
1
answer
26
views
how to edit the XSl style sheets to make a heading link to a site
I have a CQWP that I am using to pull data from various sites and display the site title as a heading, and the documents underneath. The site title displays as a heading. Is there a way to make the ...
0
votes
0
answers
782
views
How to assign a java script variable to xsl variable
I have a requirement where the user enter the price in text box and i need to get the value in java script/jquery function and by using the value i need filter list data using xslt.
I have to assign ...
0
votes
1
answer
356
views
XML code for List view
I am trying to create a list view using xslt style sheet coding. I find out how write xslt with help of w3schools. But in order to write xslt coding i have to see the xml code of list view . Any one ...
0
votes
0
answers
682
views
XslLink doesn't work
I create a webpart on my page. And I give style to the webpart with xslt file. And I'm linked this xslt file in my page. But xslt file doesn't work.
This is my code:
<WebPartPages:...
0
votes
1
answer
1k
views
XSLT template conditional statement on lookup fields - Optimization help
I have a block of xslt that examines if the current node and performs some calculations using different lookup fields if a certain field matches a certain text string. It works as expected and is ...
0
votes
1
answer
159
views
Xslt file not overriden on sub sitecollection
I have modified the ContentQueryMain xsl file and want to override it when I deploy. So far it works fine, but I have multiple site collections where I also need to override the ContentQueryMain xsl ...
0
votes
0
answers
158
views
Avoid security warning in IE in Rss viewer webpart
I have a RSS viewer webpart inserted on a Sharepoint page which shows description of today's birthdays along with images. I am getting security warning in IE due to images( http://)
I wan to suppress ...
0
votes
1
answer
564
views
Create a radio button filter based on "Created Date" attribute using jquery or javascript
I’m currently loading a number of list items through a customised Content Query Web Part.
And XSLT attribute associated with each of these items is the Created Date.
An example of the mark up below....