Comments on: Unlocking the Mysteries of Data View Web Part XSL Tags – Part 20: xsl:import http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/ No GeekSpeak on SharePoint 2007 WSS and MOSS Wed, 21 Jul 2010 15:30:49 -0400 http://wordpress.org/?v=2.8.6 hourly 1 By: Marc S http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-66104 Marc S Wed, 12 May 2010 13:45:22 +0000 http://www.endusersharepoint.com/?p=7077#comment-66104 Looks like the previous post removed the code snippet. So for clearity the xsl:value-of tag included the disable-output-escaping="yes" and the select contained the function "ddwrt:AutoNewLine(string(@Description))" Cheers, Marc S Looks like the previous post removed the code snippet. So for clearity the xsl:value-of tag included the disable-output-escaping=”yes” and the select contained the function “ddwrt:AutoNewLine(string(@Description))”

Cheers,
Marc S

]]>
By: Marc S http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-66102 Marc S Wed, 12 May 2010 13:39:39 +0000 http://www.endusersharepoint.com/?p=7077#comment-66102 Hi Marc It looks like I've determined the cause of the original problem, the formatting of the text. When I converted the list view to XSLT Data View, the dvt_1.rowview template formatted the xsl:value-of element as follows: After going through your xsl series, it looks to me like this xsl is converting a plain text string twice and running into issues. After removing the ddwrt function from the xsl:value-of statement the output is formatted correctly. I haven't solved the 'Access is denied' error with the import function, but at least for now my users can read the columns correctly. Thanks for your help and this informative series. Marc Hi Marc

It looks like I’ve determined the cause of the original problem, the formatting of the text. When I converted the list view to XSLT Data View, the dvt_1.rowview template formatted the xsl:value-of element as follows:

After going through your xsl series, it looks to me like this xsl is converting a plain text string twice and running into issues. After removing the ddwrt function from the xsl:value-of statement the output is formatted correctly.

I haven’t solved the ‘Access is denied’ error with the import function, but at least for now my users can read the columns correctly.
Thanks for your help and this informative series.
Marc

]]>
By: Marc Anderson http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-65602 Marc Anderson Mon, 10 May 2010 14:21:44 +0000 http://www.endusersharepoint.com/?p=7077#comment-65602 By wrapper, I just meant the enclosing tags I go over in the above article. M. By wrapper, I just meant the enclosing tags I go over in the above article.

M.

]]>
By: Marc S http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-64971 Marc S Sat, 08 May 2010 14:50:30 +0000 http://www.endusersharepoint.com/?p=7077#comment-64971 Hi Marc, Thanks for your response. I forgot to mention in my post that the funny thing was that the disable-output-escaping=”yes” attribute didn't completely fix up the data. It changed the "' " into "'" and """ into """. That's why I figured that the xsl template would help. (Also, I noticed that in the original post that even it renders the data correctly! Irony. Not sure if this post will do the same so just to clarify &_amp;#39; goes to &_#39; with the disable-output-escaping="yes", without the underscores.) I'm pretty sure the permissions are good, as there are a few jquery scripts located in the same centre I'm using that work well. It must be something to do with the wrapper. Seeing that i'm not sure what the wrapper should contain? I must read your entire series before continuing to troubleshoot on monday. Thanks again, Marc Hi Marc,

Thanks for your response.

I forgot to mention in my post that the funny thing was that the disable-output-escaping=”yes” attribute didn’t completely fix up the data. It changed the “' ” into “'” and “"” into “"”. That’s why I figured that the xsl template would help.

(Also, I noticed that in the original post that even it renders the data correctly! Irony. Not sure if this post will do the same so just to clarify &_amp;#39; goes to &_#39; with the disable-output-escaping=”yes”, without the underscores.)

I’m pretty sure the permissions are good, as there are a few jquery scripts located in the same centre I’m using that work well. It must be something to do with the wrapper. Seeing that i’m not sure what the wrapper should contain? I must read your entire series before continuing to troubleshoot on monday.

Thanks again, Marc

]]>
By: Marc Anderson http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-64750 Marc Anderson Sat, 08 May 2010 04:36:59 +0000 http://www.endusersharepoint.com/?p=7077#comment-64750 Hey, Marc. Great name. Well, it sounds like a permissions error. Are you able to access other files in the Scripting Resource Centre from the same DVWP? Do you have the appropriate "wrapper" around the template(s) in the CleanUp_EscapeChars.xsl file? Those questions aside, the solution may be just to add the disable-output-escaping="yes" attribute to the xsl:select. Check the <a href="http://www.endusersharepoint.com/2010/02/25/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-part-11-xslvalue-of/" rel="nofollow">Unlocking the Mysteries of Data View Web Part XSL Tags – Part 11: xsl:value-of</a> installment in this series for details. M. Hey, Marc. Great name.

Well, it sounds like a permissions error. Are you able to access other files in the Scripting Resource Centre from the same DVWP? Do you have the appropriate “wrapper” around the template(s) in the CleanUp_EscapeChars.xsl file?

Those questions aside, the solution may be just to add the disable-output-escaping=”yes” attribute to the xsl:select. Check the Unlocking the Mysteries of Data View Web Part XSL Tags – Part 11: xsl:value-of installment in this series for details.

M.

]]>
By: Marc S http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-64622 Marc S Fri, 07 May 2010 20:19:30 +0000 http://www.endusersharepoint.com/?p=7077#comment-64622 Hi Marc, I've come across your post and think it might be able to help me out. I've converted a list view into its xslt data view to apply some conditional formatting, etc. and now some of the list data is not displaying correctly. I'm getting some ' and " elements in my data instead of the proper apostrophes and quotes. I've tried importing your xsl FixEscapedChars template into my page but I'm getting the following error: Failed setting processor stylesheet : 0x80004005 : Access is denied. Error occurred during compilation of included or imported stylesheet 'http://mysite/SSRC/CleanUp_EscapeChars.xsl I've put the template in my Scripting Resource Centre, so I think the permissions there should be alright. Any Ideas? Thanks, Marc Hi Marc,

I’ve come across your post and think it might be able to help me out. I’ve converted a list view into its xslt data view to apply some conditional formatting, etc. and now some of the list data is not displaying correctly. I’m getting some ' and &quot; elements in my data instead of the proper apostrophes and quotes.

I’ve tried importing your xsl FixEscapedChars template into my page but I’m getting the following error:

Failed setting processor stylesheet : 0×80004005 : Access is denied. Error occurred during compilation of included or imported stylesheet ‘http://mysite/SSRC/CleanUp_EscapeChars.xsl

I’ve put the template in my Scripting Resource Centre, so I think the permissions there should be alright. Any Ideas?

Thanks,
Marc

]]>
By: Marc Anderson http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-61963 Marc Anderson Fri, 30 Apr 2010 13:54:19 +0000 http://www.endusersharepoint.com/?p=7077#comment-61963 KK, can you post this question in <a href="http://www.endusersharepoint.com/STP" rel="nofollow">Stump the Panel</a>? (The Stump the Panel link is in the top navigation on this site as well.) Since it doesn't really apply to this post, it would be best to plant it there. You'll also have more people looking at it who can help. Thanks, M. KK, can you post this question in Stump the Panel? (The Stump the Panel link is in the top navigation on this site as well.) Since it doesn’t really apply to this post, it would be best to plant it there. You’ll also have more people looking at it who can help.

Thanks,
M.

]]>
By: KK http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-61839 KK Fri, 30 Apr 2010 06:35:50 +0000 http://www.endusersharepoint.com/?p=7077#comment-61839 Hi Marc, I am facing an issue with DataViewWebPart when i customize the XSLT of the webpart , i am not able to export all the cloumns of the webpart. I just get two columns in the excel namely ItemType and Path. I have ten columns. Is there a solution for the same. Thanks, KK Hi Marc,

I am facing an issue with DataViewWebPart when i customize the XSLT of the webpart , i am not able to export all the cloumns of the webpart. I just get two columns in the excel namely ItemType and Path. I have ten columns. Is there a solution for the same.

Thanks,
KK

]]>
By: Marc Anderson http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-53040 Marc Anderson Wed, 07 Apr 2010 12:10:56 +0000 http://www.endusersharepoint.com/?p=7077#comment-53040 Steve: Yes, I'm winding down on this. Given the title of the series (Unlocking the Mysteries of Data View Web Part XSL Tags), I've covered most of what I can about the XSL tags, plus quite a few other things. Of course there's lots more fun with DVWPs that I can talk about, as you suggest. M. Steve:

Yes, I’m winding down on this. Given the title of the series (Unlocking the Mysteries of Data View Web Part XSL Tags), I’ve covered most of what I can about the XSL tags, plus quite a few other things. Of course there’s lots more fun with DVWPs that I can talk about, as you suggest.

M.

]]>
By: Steve D http://www.endusersharepoint.com/2010/04/01/unlocking-the-mysteries-of-data-view-web-part-xsl-tags-%e2%80%93-part-20-miscellaneous-%e2%80%93-xslimport/comment-page-1/#comment-53039 Steve D Wed, 07 Apr 2010 12:01:19 +0000 http://www.endusersharepoint.com/?p=7077#comment-53039 Great series of articles! I hope that more are coming but it feels like you may be winding down. Can we maybe see some advanced topics like aggregate data sources and how to reference them in the XSL. You touched on it a tiny bit but it would be great to know in detail how to do it. Also, it may not strictly fit into the XSL category but a detailed article on CAML query would be great. Just some thoughts. Great series of articles! I hope that more are coming but it feels like you may be winding down.

Can we maybe see some advanced topics like aggregate data sources and how to reference them in the XSL. You touched on it a tiny bit but it would be great to know in detail how to do it.

Also, it may not strictly fit into the XSL category but a detailed article on CAML query would be great.

Just some thoughts.

]]>