SharePoint DVWP: xslt limitations...

John Jansen (Microsoft Office FrontPage) confirmed in a private e-mail conversation what I did find out the hard way:

In the Xslt transformation of data view web parts the following functionality is blocked:

  • msxsl:script
  • xsl:include
  • xsl:import

I can understand that msxsl:script is blocked, otherwise you could execute any server-side script. Why xsl:include and xsl:import is not supported I really don’t understand. Could be that they scan the script code string to be executed for the msxsl:script tag, and that handling inclusion of external code was to much work, but it makes data view programming really hard. Would be great if you could create a library of useful Xslt routines and include those in your custom xslt transformations.

Another thing I have been working on is the possibility to register additional xslt extension object like the one in the ddwrt namespace (see also http://weblogs.asp.net/soever/archive/2005/01/03.aspx), but I never succeeded.

Any ideas on extending the xslt transformations functionality in data view web parts?

Published Tuesday, March 08, 2005 9:30 AM by svdoever
Filed under:

Comments

Sunday, April 10, 2005 12:48 AM by TrackBack

# re:SharePoint DVWP: xslt limitations...

^_^,Pretty Good!
Wednesday, August 01, 2007 2:17 PM by Karyn Voldstad

# re: SharePoint DVWP: xslt limitations...

Here it is, 2007...does this limitation still exist? I am able to link a css file, but not to include an xsl file. I would really like to use a code libary, since the same sections are repeated  in 26 documents. Your post is the only one I can find on this topic! (I'm using Sharepoint 2003).

thanks,

Karyn

Monday, October 29, 2007 11:17 AM by Greg Robinson

# re: SharePoint DVWP: xslt limitations...

I've also been looking into the same problem with my client.  It appears they are using MSXML 6.0 with their MOSS 2007 installation and embedded scripts are not supported:

www.tkachenko.com/.../000530.html

Saturday, December 08, 2007 12:14 PM by Ryan Ramdewar

# re: SharePoint DVWP: xslt limitations...

I think its time u change the pic.

# rousso.eu » xsl:include, xsl:import & msxml:script blocked on WSS 3 XML WebParts

Pingback from  rousso.eu » xsl:include, xsl:import & msxml:script blocked on WSS 3 XML WebParts

Wednesday, August 05, 2009 8:22 AM by Akhila

# re: SharePoint DVWP: xslt limitations...

Hi Serge ,

You can use xsl:include inside sharepoint . Only the href tag must point to an xsl sheet placed under the layouts folder.

Regards

Akhila akhilao@gmail.com

Leave a Comment

(required) 
(required) 
(optional)
(required)