Showing posts with label xslt. Show all posts
Showing posts with label xslt. Show all posts

Removing html tags from xml with xslt (aka string html tags with xslt)

0 comments
The technique to remove tags from xml with xslt is very creative. If you have a xml document that is like:

Lorem ipsum dolor sit amet <b> consectetur adipiscing elit </b>. Suspendisse ac ipsum eu orci accumsan dignissim. Fusce fringilla.

The script will store in the variable the items before the "<" and send to recursion the items after the ">".


 
  
   
  
 
 
 



 
 
  
   
   
   
   
    
    
   
  
  
   
  
 

Thanks to KaushaL.NET for this xslt code

Sharepoint link in XSLT - FileRef

0 comments
For some reason SharePoint translate your FileRef links in XSLT when you use the data view web part, content query web part, or any other XSL in SharePoint. It translates to the library link. To fix it, you have to use the xsl:attribute. Example: