Skip to main content
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> ...
Bhaskar Dhone's user avatar
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.
Lordpascal's user avatar
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-...
Michael Kay's user avatar
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 ...
Michael Kay's user avatar
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 ...
Bob Campbell's user avatar
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 ...
Julie_MSFT's user avatar
  • 4,327
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 ...
Sander's user avatar
  • 143
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 ...
Keegatron's user avatar
  • 113
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.
Kaushal Khamar's user avatar
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')">...
JJD's user avatar
  • 493
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 ...
Michael Kay's user avatar
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(...
Michael Kay's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible