2
votes
Accepted
CQWP ItemStyle: how to display background of description with conditional formatting
If you do not wish to add style sheet as explain by @JJD then just update your item style sheet as below :
<div class="description">
<xsl:attribute name="style">
<xsl:choose>
...
2
votes
How can I put an external link using xml/xslt
I fixed it. I put:
<xsl:attribute name="href">http://<xsl:value-of select="marca/@pagina"/><xsl:attribute> and it worked.
2
votes
I need XSLT to filter XML by passing node values with pipe symbol
In XSLT 3.0 this would simply be:
<xsl:param name="allowed-elements" as="xs:string" required="yes"/>
<xsl:variable name="filter" as="xs:string*"
select="tokenize($allowed-...
2
votes
Set xsl variable using javascript function
If this is XSLT code running natively in the browser, then the XSLT code is executed to generate an HTML page which in this case contains a script element which contains some Javascript. That ...
1
vote
PDF document Icons missing in XSLT webpart
I have found that when I am using a .JPG file for the icon, it will display properly in Chrome and Edge, but not in IE. If I change it to a .GIF, then it will display in IE (11). In other words, if I ...
1
vote
Accepted
PDF document Icons missing in XSLT webpart
In SharePoint server 2016, Document Icons should be stored in hive 16: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\IMAGES .
Try to browse the following address to ...
1
vote
XSLT or JSLink (which one to use?)
I know this is an old question but I want to share my experience. I just started learning XSL and already know Javascript (JSLink). While I start liking XSL more and more I still prefer JSLink ...
1
vote
Accepted
XSL Item Style in Content Query gets replaced by 'default' for visitors
Do you need to checkin and/or publish the ItemStyle.xsl file?
Are there any non-standard permissions on the Style Library?
Is the CQWP instance linking to a custom XSL file for ItemStyles?
Has anyone ...
1
vote
Accepted
Is there a way to force the sharepoint RSS viewer web part to get the latest 5 RSS feed items
There is no way to get latest 5 RSS items in RSS viewer webpart. But from RSS feeds source should return latest feeds in XML.
1
vote
CQWP ItemStyle: how to display background of description with conditional formatting
Are you using an xsl file? In that case it would be something like
<div>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="(@RAG = 'red')">...
1
vote
How to add 1 day in Date using XSLT
In XSLT 2.0, xs:date(pubDate) + xs:dayTimeDuration('P1D')
If you're stuck with XSLT 1.0, find out if your processor supports the EXSLT dates+times library module.
If not, you'll probably have to ...
1
vote
Accepted
remove ;# characters and number from xsl value (person /People group)- itemsyle.xsl
You need to specify XSLT 1.0 or 2.0: 2.0 makes this kind of thing much easier with the replace() function, which uses regular expressions.
If you're stuck with XSLT 1.0, then try:
normalize-space(...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xslt × 495content-query-web-part × 101
sharepoint-designer × 88
2010 × 71
xslt-list-view-web-part × 56
data-view-web-part × 54
2013 × 48
web-part × 37
sharepoint-enterprise × 32
list-view × 30
javascript × 23
list × 21
search-results × 21
item-styles × 21
xml × 16
sharepoint-foundation × 15
2007 × 15
custom-field-types × 13
jquery × 12
search × 11
sharepoint-online × 10
development × 10
filter × 9
data-form-web-part × 9
sharepoint-server × 8