Stump the Panel Topic: XSL Formating http://www.endusersharepoint.com/STP/ Paul Grenier, Lead Moderator en Sun, 15 Feb 2009 01:40:36 +0000 AutoSponge on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2827 Wed, 03 Dec 2008 15:17:41 +0000 AutoSponge 2827@http://www.endusersharepoint.com/STP/ <p>Skip the blog, I don't have enough time to make it pretty right now. To get presence, you need the sid (a parameter passed in Person data referring to the field in AD/SPUser. In most cases, it's probably email so you can try to substitute that as well. I have some code below that grabs the SID from @Author but you can use @AssignedTo or anything that's Person data. In a CQWP I think you need to make sure it's Person and not string--but I don't have time to test atm...</p> <p> <a href=""><br /> &lt;img id="imn1,type=smtp" title="" height="12" alt="No presence information" src="/_layouts/images/blank.gif" width="12" border="0" name="imnmark" valign="middle" sip="{normalize-space(translate(substring-before(substring-after(@Author,'sip='),'id='),$dvt_apos,''))}" /&gt;<br /> </a> </p> AutoSponge on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2825 Wed, 03 Dec 2008 13:36:54 +0000 AutoSponge 2825@http://www.endusersharepoint.com/STP/ <p>I'm blogging the answer to this, I'll try to post it by the end of the day. </p> AutoSponge on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2784 Mon, 01 Dec 2008 21:43:17 +0000 AutoSponge 2784@http://www.endusersharepoint.com/STP/ <p>I'll try to get to this soon. I know at least part of the presence sensing is JavaScript related but I have yet to dig into the source code to find it. I added this to my favorites and I'll try to research it. </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2708 Thu, 27 Nov 2008 00:27:29 +0000 baldcat 2708@http://www.endusersharepoint.com/STP/ <p>is there a way to get presence sensing ???</p> <p>I have a pretty good working template now.. if I could get prense sensing it would be awesome.. :) </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2704 Wed, 26 Nov 2008 23:38:21 +0000 baldcat 2704@http://www.endusersharepoint.com/STP/ <p>hey guys.. well have been battleing it out over this bad boy.. and I have really got somewhere :) Now I'm trying to get all trick and stuff.. How do we go about presence sensing ?? We have the full communicator suite installed and the OOTB apps have it..</p> <p>Here is my little xsl stuff</p> <p>&lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"&gt;<br /> &lt;xsl:output method="html" /&gt;<br /> &lt;xsl:template match="rs_data"&gt;<br /> &lt;xsl:for-each select="z_row"&gt;<br /> &lt;TABLE height="100%" cellpadding="0" cellspacing="0" class="cssTable" width="200px"&gt;<br /> &lt;TR&gt;<br /> &lt;TD class="cssBamboo1" &gt;<br /> <a href="http://aquanet/SearchCenter/Lists/Noticeboard/DispForm.aspx?ID={@ows_ID}"><br /> &lt;xsl:value-of select="@ows_LinkTitle"/&gt;<br /> </a><br /> &lt;/TD&gt;<br /> &lt;TD class="user" &gt;<br /> <a href="http://aquanet/searchcenter/Pages/peopleresults.aspx?k={@ows_Author}"><br /> &lt;xsl:value-of select="@ows_Author"/&gt;<br /> </a><br /> &lt;/TD&gt;<br /> &lt;/TR&gt;<br /> &lt;TR&gt;<br /> &lt;TD class="ad" &gt;<br /> &lt;xsl:if test="@ows_Picture"&gt;<br /> &lt;xsl:if test="@ows_Picture!=''"&gt;<br /> &lt;img src="{@ows_Picture}" width="100px" border="0" class="floatLeft" alt="{@ows_Picture}" /&gt;<br /> &lt;/xsl:if&gt;<br /> &lt;/xsl:if&gt;<br /> &lt;xsl:value-of select="@ows_Advertisement"/&gt;<br /> &lt;/TD&gt;<br /> &lt;/TR&gt;<br /> &lt;TR&gt;<br /> &lt;TD class="ad" &gt;<br /> <a href="http://aquanet/SearchCenter/Lists/Noticeboard/classifieds.aspx"><br /> Click here to view all items</a>&lt;/TD&gt;<br /> &lt;/TR&gt;<br /> &lt;/TABLE&gt;<br /> &lt;/xsl:for-each&gt;<br /> &lt;/xsl:template&gt;<br /> &lt;/xsl:stylesheet&gt; </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2537 Tue, 18 Nov 2008 21:04:47 +0000 baldcat 2537@http://www.endusersharepoint.com/STP/ <p>nice one... it pays to know..</p> <p>If there is one weak link in MOSS.. it is the use of XSL... For the layman admin,, it makes no sense at all.. And normally you only need to use once maybe twice.. and thats it.. If you were able to design XSL in SPD, connected to the lists you wanted to display.. it would be so good... </p> EndUserSharePoint on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2534 Tue, 18 Nov 2008 20:52:07 +0000 EndUserSharePoint 2534@http://www.endusersharepoint.com/STP/ <p>Hold on a bit. I've got one of the guys from Bamboo support looking in on this. -- Mark </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2532 Tue, 18 Nov 2008 19:38:16 +0000 baldcat 2532@http://www.endusersharepoint.com/STP/ <p>thats the thing.. I can't find their styles... ANyway,, and no one over there has answered any support calls , when I've tried to ask... Hmmm</p> <p>you can get a trial if your up to it :) </p> AutoSponge on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2511 Tue, 18 Nov 2008 09:20:45 +0000 AutoSponge 2511@http://www.endusersharepoint.com/STP/ <p>Baldcat,</p> <p>Assuming the variables and data source are named the same, you should be able to copy what's between the &lt;XSL&gt; tags. I'm not familiar with Bamboo's web part but I would assume it is easier to modify their style than to perform a complete transplant. </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2502 Tue, 18 Nov 2008 00:37:52 +0000 baldcat 2502@http://www.endusersharepoint.com/STP/ <p>Ah, but I need the XSL to use in the Bamboo list rotator.. Their default styles don't cut the mustard :) </p> AutoSponge on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2501 Mon, 17 Nov 2008 21:54:34 +0000 AutoSponge 2501@http://www.endusersharepoint.com/STP/ <p>Looking at the template you sent:</p> <pre><code>&lt;xsl:template match=&quot;rs_data&quot;&gt; &lt;xsl:for-each select=&quot;z_row&quot;&gt; &lt;TABLE height=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;cssTable&quot; style=&quot;width: 397px&quot;&gt; &lt;TR&gt; &lt;TD class=&quot;cssBamboo1&quot; &gt; &lt;xsl:value-of select=&quot;@ows_LinkTitle&quot;/&gt; &lt;/TD&gt; &lt;TD class=&quot;user&quot; &gt; &lt;xsl:attribute name=&quot;href&quot;&gt; <a href="http://server/searchcenter/Pages/peopleresults.aspx?k=&lt;xsl:value-of" rel="nofollow">http://server/searchcenter/Pages/peopleresults.aspx?k=&lt;xsl:value-of</a> select=&quot;@ows_Author&quot;&gt;&lt;/xsl:value-of&gt; &lt;/xsl:attribute&gt; &lt;xsl:value-of select=&quot;@ows_Author&quot;&gt; &lt;/xsl:value-of&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD class=&quot;ad&quot; &gt; &lt;img src=&quot;{imageurl}&quot; border=&quot;0&quot; alt=&quot;{imageurl/@ows_Picture}&quot; /&gt; &lt;xsl:value-of select=&quot;@ows_Advertisement&quot;/&gt; &lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;/xsl:for-each&gt; &lt;/xsl:template&gt;</code></pre> <p>Without seeing the data source, I think you might want to try something like this instead:</p> <pre><code>&lt;TD class=&quot;user&quot; &gt; &lt;a href=&quot;/searchcenter/Pages/peopleresults.aspx?k={@ows_Author}&quot;&gt; &lt;xsl:value-of select=&quot;@ows_Author&quot;/&gt; &lt;/a&gt; &lt;/TD&gt;</code></pre> <p>For your second question about the DVWP, you can put the web part on a page, load the page in your site and use the web part's context menu to export the web part. Then, you can put the web part on any page. </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2496 Mon, 17 Nov 2008 19:23:43 +0000 baldcat 2496@http://www.endusersharepoint.com/STP/ <p>ok something screwy going on here... is there an email address I can send what I'm posting ?? Basiccly I have some basic XSL and a SPD webpart</p> <p>Have put both between the (`) and the code markup... when every I do it.. it deletes the post..</p> <p>If I do it as a new topic, on submit BBpress comes back with error, stating topic cannot be found.. dah.. I'm creating it :) </p> baldcat on "XSL Formating" http://www.endusersharepoint.com/STP/topic/xxx#post-2487 Mon, 17 Nov 2008 19:14:46 +0000 baldcat 2487@http://www.endusersharepoint.com/STP/ <p>oh this is S!@# nothing will display... </p>