<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saucer Blog</title>
	<atom:link href="http://www.saucer.dk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saucer.dk</link>
	<description></description>
	<lastBuildDate>Mon, 18 Oct 2010 17:54:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>ParagraphSetup with random paragraph display</title>
		<link>http://www.saucer.dk/2010/10/paragraphsetup-width-random-paragraph-display/</link>
		<comments>http://www.saucer.dk/2010/10/paragraphsetup-width-random-paragraph-display/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 17:50:25 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Dynamicweb]]></category>
		<category><![CDATA[count()]]></category>
		<category><![CDATA[ParagraphSetup]]></category>
		<category><![CDATA[position()]]></category>
		<category><![CDATA[Template]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSL]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=138</guid>
		<description><![CDATA[ParagraphSetup template in Dynamicweb is a great option to use, if you wanna make some custom paragraph setup or if you are working on making some sort of jQuery slide show effect with all your paragraphs, but sometimes you might only need to show one paragraph at the time in a random order. That option [...]]]></description>
			<content:encoded><![CDATA[<p>ParagraphSetup template in Dynamicweb is a great option to use, if you wanna make some custom paragraph setup or if you are working on making some sort of jQuery slide show effect with all your paragraphs, but sometimes you might only need to show one paragraph at the time in a random order. That option could be needed when creating a banner setup for your website.</p>
<p>The xslt nippet that I&#8217;m about to show you, can be made in many ways, and I will just show you one of them, that I personally prefer. I like to make things as dynamic as possible and with few hard-coded-static options as possible, in case I wanna to use the same code somewhere else.</p>
<p>If you ask me then, the best way to show a random paragraph on a website is only to output that single paragraph. That way you won&#8217;t need to hide ekes. 100 paragraphs and then only show one of them, using some sort of JavaScripts or CSS3. So I&#8217;ll show you how you can display a random paragraph without outputting all your paragraphs to your page.</p>
<h2>XML</h2>
<p>Before we can start writing our XSLT snippet we&#8217;ll need to know how our XML output looks like.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia1Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia1Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia2Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia2Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia3<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia3Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia3Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink3<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia4<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia4<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia4Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia4Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink4<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink4<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia5<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia5<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia5Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia5Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink5<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink5<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphColumn1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>As you can see it is one messy XML dump, and honestly I don&#8217;t understand why it is like that, but if you want, then you can read about my thought on this issue in another blog post that I wrote &#8220;<a href="http://www.saucer.dk/2010/10/dynamicwebs-xml-for-paragraphsetup-and-how-i-would-change-it/" target="_blank" title="Dynamicweb’s XML for ParagraphSetup and how I would change it">Dynamicweb’s XML for ParagraphSetup and how I would change it</a>&#8221;</p>
<p>So our paragraph templates are hidden in between all kind of ParagraphSetup nodes, and since they don&#8217;t have same node name we&#8217;ll have to make a dynamic selection that is only selecting nodes with a node name that contains word &#8220;TemplateParagraph&#8221;. But if we just do that, we&#8217;ll have a problem since it will also select following node: &#8220;TemplateParagraphHeader&#8221; meaning we&#8217;ll have to make a dynamic check for that as well.</p>
<h2>XSLT template</h2>
<p>The way I did this was to select all nodes that contains word &#8220;TemplateParagraph&#8221; and have a number right after &#8220;TemplateParagraph&#8221;, meaning everything that contains word &#8220;TemplateParagraph&#8221; but doesn&#8217;t follow up with a number won&#8217;t be selected. Now lets have a look at some XSLT.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;xsl:template match<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;*&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:apply-templates select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;child::*&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:sort select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN'&quot;</span> data-<span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;number&quot;</span> order<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;descending&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:apply-templates&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:template&gt;</span></pre></td></tr></table></div>

<p>So we match all nodes and then apply a templates with all child nodes. As you can see I&#8217;m also sending a &lt;xsl:sort&gt; that will gives us the right positions of our nodes further down. If we don&#8217;t send the &lt;xsl:sort&gt; then our nodes won&#8217;t come in the right order and our position() call will have some gabs, showing node position like : 1,12,20,21,22,25&#8230; After applying a template call we&#8217;ll have to create a template that will filter our nodes.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;xsl:template match<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;*/*</span>
<span style="color: #009900;">[descendant-or-self::*</span>
<span style="color: #009900;">[contains(name(),'TemplateParagraph')]</span>
<span style="color: #009900;">[string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN']</span>
<span style="color: #009900;">]&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">em</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!--  Layout  --&gt;</span><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">em</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:template&gt;</span></pre></td></tr></table></div>

<p>Now lets have a look at this selection. We are selecting a descendant nodes that contains &#8220;TemplateParagraph&#8221;. Then we use substring-after to select all characters after &#8220;TemplateParagraph&#8221; and check if that is a number. If our node have a node name that contains &#8220;TemplateParagraph&#8221; and follows up with a number, then we will have a hit. So far our XSLT snippet is dynamic and it doesn&#8217;t matter how many paragraphs we have under our ParagraphSetup. What we now need is some kind of function that can provide us a random number, which we can use to select a node based on its position.</p>
<h2>Random number</h2>
<p>To create a random number, I will be using JavaScript namespace in our XSLT document. So we&#8217;ll first need to apply the namespace to our document by adding the call in to our XSLT &lt;xsl:stylesheet&gt; definition.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;xsl:stylesheet <span style="color: #000066;">version</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1.0&quot;</span> xmlns:xsl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/XSL/Transform&quot;</span></span>
<span style="color: #009900;">xmlns:msxml<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;urn:schemas-microsoft-com:xslt&quot;</span></span>
<span style="color: #009900;">xmlns:random<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.microsoft.com/msxsl&quot;</span></span>
<span style="color: #009900;">exclude-result-prefixes<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;msxml random&quot;</span>&gt;</span></pre></td></tr></table></div>

<p>Now that we have access to our namespace we&#8217;ll be able to create our function.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;msxml:script implements-prefix<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;random&quot;</span>&gt;</span>
function range(min, max)
{
var dist = max - min + 1;
return Math.floor(Math.random() * dist + min);
}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>msxml:script&gt;</span></pre></td></tr></table></div>

<p>This function can now be used in our xslt templates,simply by calling it like this: select=&#8221;random:range(1, 10)&#8221;, and you will get a random number from 1 to 10.  But I want to make this call dynamic so that I don&#8217;t have to edit my XSLT snippet each and every time I add or delete a paragraph on my page. To make my total number of paragraphs dynamic I&#8217;ll simply count how many nodes I have in my XML by using count() in XSLT.</p>
<h2>Counting all nodes</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;">count(*/*
[descendant-or-self::*
[contains(name(),'TemplateParagraph')]
[string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN']
])</pre></td></tr></table></div>

<p>As you can see my counter selection is the same one as I used for my template match. Now all I need is to save this counter as a variable and to create another variable that will provide med a random number based on my count().</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;xsl:variable <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;countParagraphs&quot;</span> select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;count(*/*[descendant-or-self::*[contains(name(),'TemplateParagraph')][string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN']])&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;xsl:variable <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;randomNumber&quot;</span> select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;random:range(1, $countParagraphs - 1)&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div>

<h2>Final wrap</h2>
<p>Now lets just wrap this up into a nice xslt snippet.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?xml <span style="color: #000066;">version</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1.0&quot;</span> encoding<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span>?&gt;</span>
<span style="color: #009900;">&lt;xsl:stylesheet <span style="color: #000066;">version</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1.0&quot;</span></span>
<span style="color: #009900;">xmlns:xsl<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/XSL/Transform&quot;</span></span>
<span style="color: #009900;">xmlns:msxml<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;urn:schemas-microsoft-com:xslt&quot;</span></span>
<span style="color: #009900;">xmlns:random<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.microsoft.com/msxsl&quot;</span></span>
<span style="color: #009900;">exclude-result-prefixes<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;msxml random&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:output <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;xml&quot;</span> omit-xml-declaration<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;yes&quot;</span> indent<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;yes&quot;</span>  encoding<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;msxml:script implements-prefix<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;random&quot;</span>&gt;</span>
function range(min, max)
{
var dist = max - min + 1;
return Math.floor(Math.random() * dist + min);
}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>msxml:script&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;xsl:variable <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;countParagraphs&quot;</span> select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;count(*/*[descendant-or-self::*[contains(name(),'TemplateParagraph')][string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN']])&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:variable <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;randomNumber&quot;</span> select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;random:range(1, $countParagraphs - 1)&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;xsl:template match<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;*&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:apply-templates select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;child::*&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:sort select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN'&quot;</span> data-<span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;number&quot;</span> order<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;descending&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:apply-templates&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:template&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;xsl:template match<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;*/*[descendant-or-self::*[contains(name(),'TemplateParagraph')][string(number(substring-after(name(),'TemplateParagraph'))) != 'NaN']]&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:if test<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;position() = $randomNumber&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;xsl:value-of select<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;.&quot;</span> disable-output-escaping<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:if&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:template&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>xsl:stylesheet&gt;</span></pre></td></tr></table></div>

<p>By doing it this way, you will be able to use this XSLT snippet for all your web-solutions without changing XSLT.</p>
<p><a title="Download XSLT snippet for random paragraph display" href="/playground/dynamicweb/xslt/RandomSingleParagraph.xslt" target="_blank">You can download this XSLT snippet here.</a></p>
<p>Now this was my way of doing this. If you have somme suggestions or improvements, then feel free to contact me through this comment form or find me on twitter :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2010/10/paragraphsetup-width-random-paragraph-display/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamicweb&#8217;s XML for ParagraphSetup and how I would change it</title>
		<link>http://www.saucer.dk/2010/10/dynamicwebs-xml-for-paragraphsetup-and-how-i-would-change-it/</link>
		<comments>http://www.saucer.dk/2010/10/dynamicwebs-xml-for-paragraphsetup-and-how-i-would-change-it/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 08:50:38 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Dynamicweb]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XPath]]></category>
		<category><![CDATA[XSL]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=168</guid>
		<description><![CDATA[I was playing a bit with XSLT templates in Dynamicweb and found some things in the XML dump, that I would have made in another way, and maybe even a more dynamic way if you ask me. So I thought to my self, that I won&#8217;t just sit and bitch to my self about it. [...]]]></description>
			<content:encoded><![CDATA[<p>I was playing a bit with XSLT templates in Dynamicweb and found some things in the XML dump, that I would have made in another way, and maybe even a more dynamic way if you ask me. So I thought to my self, that I won&#8217;t just sit and bitch to my self about it. I would like to hear other peoples opinion on this and who knows, if I&#8217;m right on this one, then Dynamicweb might make the change, if I&#8217;m wrong about it, well then I will probably learn something new with in this post.</p>
<h2>XML</h2>
<p>Lets have a look at the XML dump, that Dynamicweb provides us for developing XSLT snippets.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia1Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia1Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia2Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia2Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia3<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia3Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia3Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink3<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia4<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia4<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia4Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia4Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink4<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink4<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia5<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia5<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia5Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia5Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink5<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink5<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphColumn1<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphColumn1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph2<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader3<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph3<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph3<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader4<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader4<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph4<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph4<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Server.Request.id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>540<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Server.Request.id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Server.Request.purge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>True<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Server.Request.purge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;GlobalTags<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/GlobalTags<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>The part that I&#8217;m going to focus on is the way Dynamicweb is looping paragraphs that are part of ParagraphSetup. I find it inappropriate to loop nodes with same type of content and give them unique name. That makes it harder for developers to make XPath selection that loops same type of nodes.  If you ask me how I&#8217;ll make this XML dump, my answer will be like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia</span> <span style="color: #000066;">name</span>=”TemplateMedia1”<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMediaHtml<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMediaHtml<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMediaClean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMediaClean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia</span> <span style="color: #000066;">name</span>=”TemplateMedia2”<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMediaHtml<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMediaHtml<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMediaClean<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMediaClean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph</span> <span style="color: #000066;">name</span>=”TemplateParagraph1”<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphContent<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphContent<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph</span> <span style="color: #000066;">name</span>=”TemplateParagraph2”<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphContent<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphContent<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>As you can see all I did was just to groupe my nodes and gave them names by attribute. This way we can easy make a XPath selections that loops all Paragraphs by simply making a template match=&#8221;TemplateParagraph&#8221; and then output our templates without the need to know how many we have or what number they are. And if we want to only select a specific TemplateParagrah node, well then we can just call our match like this: match=&#8221;TemplateParagraph[@name='TemplateParagraph1']&#8221; . The same goes for the media nodes.</p>
<h2>Conclusion</h2>
<p>By making the XML output the way as I suggested, I believe that it will give us developers more dynamic and flexibility to our XSLT snippet, and our XSLT snippes would be easy to rewrite and use for other solutions aswell, since we won&#8217;t need to know, how many paragraphs user have posted to be able to name our nodes correct and get access to our content.  I also believe that this is just one of many ways in how Dynamicweb could &#8220;optimize&#8221; there XML output, that will make Dynamicweb xslt snippets even more dynamic.</p>
<p>But all this will be a hard fix for Dynamicweb to make, since it will have major impact in all online Dynamicweb solutions that are using this XML output and XSLT snippets to create templates with. So if there should be another way in how to fix the current XML output then it might look like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphHeader<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/ParagraphText<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia1</span> <span style="color: #000066;">type</span>=”MediaHtml”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia1Clean</span> <span style="color: #000066;">type</span>=”MediaClean”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia1Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink1</span> <span style="color: #000066;">type</span>=”MediaLink”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia2</span> <span style="color: #000066;">type</span>=”MediaHtml”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateMedia2Clean</span> <span style="color: #000066;">type</span>=”MediaClean”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateMedia2Clean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateLink2</span> <span style="color: #000066;">type</span>=”MediaLink”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateLink2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader1</span> <span style="color: #000066;">type</span>=”TemplateParagraphHeader”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph1</span> <span style="color: #000066;">type</span>=”TemplateParagraphContent”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraphHeader2</span> <span style="color: #000066;">type</span>=”TemplateParagraphHeader”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraphHeader2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TemplateParagraph2</span> <span style="color: #000066;">type</span>=”TemplateParagraphContent”<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/TemplateParagraph2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Again it will be best if he had some kind of clean loop option. This example might be a good solution for Dynamicweb since it won&#8217;t change the XML structure but just add attributes to it, meaning websites that are online/live won&#8217;t fail because of the change in XML output. And developers will be able to make easy and dynamic loops, simply by using the attribute name to groupe nodes.</p>
<p>What do you think about all this? Do you have a better way or is the current Dynamicweb XML output perfect?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2010/10/dynamicwebs-xml-for-paragraphsetup-and-how-i-would-change-it/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Music in January 2010</title>
		<link>http://www.saucer.dk/2010/02/music-in-january-2010/</link>
		<comments>http://www.saucer.dk/2010/02/music-in-january-2010/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:40:57 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Choir of Young Belivers]]></category>
		<category><![CDATA[I Got You On Tape]]></category>
		<category><![CDATA[Kashmir]]></category>
		<category><![CDATA[Murder]]></category>
		<category><![CDATA[The Rumour Said Fire]]></category>
		<category><![CDATA[Turboweekend]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=127</guid>
		<description><![CDATA[January 2010 was a real mind opener for me. I was introduced to several great danish music bands and I just wanna to make a shout out and thank René Pjengaard for sending me info about all this great music. In between all this great music I did fall in love with one band and can&#8217;t stop [...]]]></description>
			<content:encoded><![CDATA[<p>January 2010 was a real mind opener for me. I was introduced to several great danish music bands and I just wanna to make a shout out and thank <a title="René Pjengaard on twitter" href="http://twitter.com/jagtgiraf" target="_blank">René Pjengaard</a> for sending me info about all this great music. In between all this great music I did fall in love with one band and can&#8217;t stop listening to there albums over and over again. It is just so brillant, and the band name is &#8221; <a title="I Got You On Tape" href="http://www.igotyouontape.com/" target="_blank">I Got You On Tape</a> &#8220;.</p>
<p>So here is the list of albums that I bought in January 2010</p>
<ol>
<li>I Got You On Tape &#8211; <a title="I Got You On Tape" href="http://www.igotyouontape.com/" target="_blank">I Got You On Tape</a></li>
<li>Spinning for the Cause &#8211; <a title="I Got You On Tape" href="http://www.igotyouontape.com/" target="_blank">I Got You On Tape</a></li>
<li>2 &#8211; <a title="I Got You On Tape" href="http://www.igotyouontape.com/" target="_blank">I Got You On Tape</a></li>
<li>This Is for the White In Your Eyes &#8211; <a title="choir of young believers" href="http://www.myspace.com/choirofyoungbelievers" target="_blank">Choir of Young Believers</a></li>
<li>Trespassers &#8211; <a title="Kashmir" href="http://www.kashmir.nu" target="_blank">Kashmir</a> ( Actualy I didn&#8217;t buy this one, but I got it from Kashmir with there signatures )</li>
<li>Ghost of a Chance &#8211; <a title="Turboweekend" href="http://www.turboweekend.com/" target="_blank">Turboweekend</a></li>
<li>Night Shift &#8211; <a title="Turboweekend" href="http://www.turboweekend.com/" target="_blank">Turnoweekend</a></li>
<li>The Life and Death of a Male Body &#8211; <a title="The Rumour Said Fire" href="http://www.myspace.com/therumoursaidfire" target="_blank">The Rumour Said Fire</a></li>
</ol>
<p>Well that was all for this time. Let me know what you thing about all this great music by leaving a comment or a msg on Twitter ( <a title="Saucer.dk on twitter" href="http://twitter.com/saucerdk" target="_blank">@Saucerdk</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2010/02/music-in-january-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FormHighlighter v1.2.2 is online</title>
		<link>http://www.saucer.dk/2010/02/formhighlighter-v1-2-2-is-online/</link>
		<comments>http://www.saucer.dk/2010/02/formhighlighter-v1-2-2-is-online/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 14:39:14 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[FormHighlighter]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=120</guid>
		<description><![CDATA[Bang!!! Just as you thought I was gone and forgot all about this project v1.2.2 came out :P I did some minor bug fix here and there, so there is not much to say. I&#8217;m still looking for some feedback about this plugin so that I can try to make it better or even add [...]]]></description>
			<content:encoded><![CDATA[<p>Bang!!! Just as you thought I was gone and forgot all about this project v1.2.2 came out :P</p>
<p>I did some minor bug fix here and there, so there is not much to say. I&#8217;m still looking for some feedback about this plugin so that I can try to make it better or even add some more functions.</p>
<p><a title="FormHighlighter" href="http://www.saucer.dk/formhighlighter/">Click here to get the latest version of Form Highlighter </a></p>
<p>If you want to be sure that you always get the latest updates about this plugin, then please follow me on twitter (<a title="Saucerdk on twitter" href="http://twitter.com/Saucerdk" target="_blank">@Saucerdk</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2010/02/formhighlighter-v1-2-2-is-online/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FormHighlighter v1.2.1 is online</title>
		<link>http://www.saucer.dk/2009/12/formhighlighter-v1-2-1-is-online/</link>
		<comments>http://www.saucer.dk/2009/12/formhighlighter-v1-2-1-is-online/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 08:33:42 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[FormHighlighter]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=109</guid>
		<description><![CDATA[Better late then never :) I&#8217;v been a bit bussy so didn&#8217;t get enough time to work on FormHighliger og write some crap for this blog, but as the headline says I&#8217;v maid a new release of jQuery plugin FormHighlighter with some bug fix here and there. If you are using v1.2 for a login [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Better late then never :)</strong><br />
I&#8217;v been a bit bussy so didn&#8217;t get enough time to work on <a title="Download FormHighlighter" href="http://www.saucer.dk/formhighlighter/" target="_blank">FormHighliger</a> og write some crap for this blog, but as the headline says I&#8217;v maid a new release of <a title="jQuery" href="http://www.jquery.com" target="_blank">jQuery</a> plugin FormHighlighter with some bug fix here and there. If you are using v1.2 for a login page, then this update is must have, since there have been some issues with password fields while using numlock.</p>
<p><strong>What is FormHighlighter ?</strong><br />
jQuery Plugin to attach focus,blur and keydown effect on your form fields.</p>
<p>Before I run away I&#8217;ll like to thank everyone for feedback and &#8220;<a title="Twitter user" href="http://twitter.com/usejquery">@UsejQuery</a>&#8221; from <a title="Twitter" href="http://www.twitter.com" target="_blank">Twitter</a> for spreading the word about this plugin.</p>
<p>If you want to be sure that you always get the latest updates about this plugin, then please follow me on twitter (<a title="Twitter - Srdjan Lukic-Bardak" href="http://twitter.com/Saucerdk" target="_blank">@Saucerdk</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2009/12/formhighlighter-v1-2-1-is-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Form Highlighter v1.2 is online</title>
		<link>http://www.saucer.dk/2009/10/form-highlighter-v1-2-is-online/</link>
		<comments>http://www.saucer.dk/2009/10/form-highlighter-v1-2-is-online/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 13:05:48 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[FormHighlighter]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=94</guid>
		<description><![CDATA[Here we go again :) The new version of FormHeightlighter now includes text lable for password fields how sexy is that? As you can se I&#8217;v also updated the design template since I was realy tired and bored with the last one I had, and thanks to WordPress it took me 23sec to make that [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go again :) The new version of <a title="form highlighter" href="http://www.saucer.dk/formhighlighter/">FormHeightlighter</a> now includes text lable for password fields how sexy is that?</p>
<p>As you can se I&#8217;v also updated the design template since I was realy tired and bored with the last one I had, and thanks to WordPress it took me 23sec to make that change, nice!</p>
<p>Please let me know what you think about <a title="formhighlighter" href="http://www.saucer.dk/formhighlighter/">FormHeighlighter</a> and what you think would make the plug-in even better. Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2009/10/form-highlighter-v1-2-is-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Equal Height Columns with jQuery v1.0</title>
		<link>http://www.saucer.dk/2009/10/equal-height-columns-with-jquery-v1-0/</link>
		<comments>http://www.saucer.dk/2009/10/equal-height-columns-with-jquery-v1-0/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 17:11:30 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Equal Height Columns]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=75</guid>
		<description><![CDATA[I just maid a quick but usefull plug in for all webdevelopers who need an easy way to creat &#8220;Equal Height Columns&#8221; . The EqualHeightColumns plugin for jQuery can be found here Enjoy making cool websites and let me know if I can improve my plug-in with your ideas.]]></description>
			<content:encoded><![CDATA[<p>I just maid a quick but usefull plug in for all webdevelopers who need an easy way to creat &#8220;<a title="Equal Height Columns" href="http://www.saucer.dk/equalheightcolumns/">Equal Height Columns</a>&#8221; .<br />
The EqualHeightColumns <a title="equalheightcolumns" href="http://www.saucer.dk/equalheightcolumns/" target="_blank">plugin for jQuery can be found here</a></p>
<p>Enjoy making cool websites and let me know if I can improve my plug-in with your ideas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2009/10/equal-height-columns-with-jquery-v1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FormHighlighter v1.1 is online</title>
		<link>http://www.saucer.dk/2009/10/formhighlighter-v1-1-is-online/</link>
		<comments>http://www.saucer.dk/2009/10/formhighlighter-v1-1-is-online/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 13:10:44 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[FormHighlighter]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[plug-in]]></category>

		<guid isPermaLink="false">http://www.saucer.dk/?p=64</guid>
		<description><![CDATA[Just a quick info post about my jQUery plug-in FormHighlighter. I&#8217;v maid some small improvements + added a needed function that placed the &#8220;pointer&#8221; at the beginig of the field. So much for this time. Take care and enjoy the show&#8230;]]></description>
			<content:encoded><![CDATA[<p>Just a quick info post about my jQUery plug-in <a title="formhighlighter" href="http://www.saucer.dk/formhighlighter/">FormHighlighter</a>.</p>
<p>I&#8217;v maid some small improvements + added a needed function that placed the &#8220;pointer&#8221; at the beginig of the field.</p>
<p>So much for this time. Take care and enjoy the show&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2009/10/formhighlighter-v1-1-is-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic columns without using JavaScripts</title>
		<link>http://www.saucer.dk/2009/09/dynamic-columns-without-using-javascripts/</link>
		<comments>http://www.saucer.dk/2009/09/dynamic-columns-without-using-javascripts/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 20:48:35 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS columns]]></category>
		<category><![CDATA[Dynamic]]></category>

		<guid isPermaLink="false">http://saucer.dk/?p=4</guid>
		<description><![CDATA[We all remember how easy it was to make a website with 2,3 or even more columns by using &#60;table&#62; design. The way the cells ware attached to each other in &#60;table&#62;&#8217;s maid it easy for webdevelopers to have a background color in one of the columns that was following maximum height of the heighest [...]]]></description>
			<content:encoded><![CDATA[<p>We all remember how easy it was to make a website with 2,3 or even more columns by using &lt;table&gt; design. The way the cells ware attached to each other in &lt;table&gt;&#8217;s maid it easy for webdevelopers to have a background color in one of the columns that was following maximum height of the heighest column. Today we all use &lt;table&gt; less designs since &lt;table&gt;&#8217;s are to slow and &#8220;hard&#8221; to controle when we talk about cross browser-optimation. So here I&#8217;m going to show you a small and easy fix in how you can get the same effect with your &lt;div&gt; designs without using JavaScripts or any kind of fancy CSS hacks that might not work in other browsers.</p>
<h2>Layout</h2>
<p>Lets say that you wanna make a simple website with 2 columns. One for yur navigation and the other for the content area.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;master&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navigation&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<h2>CSS</h2>
<p>Lets just make up something quick, after all it is just a demo :)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#master</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#navigation</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#content</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>So, what we have here is basicly a very simple setup, where our columns have 600px heigh.<br />
The height is static and if we make our #content heigher or lower then our #navigation then<br />
our #navigation won&#8217;t be effected, since it&#8217;s height is not dynamic and our &lt;div&gt;&#8217;s arnt linked<br />
together. Now this is the place where some webdevelopers start to use all kind of tricks with<br />
JavaScripts, but there is a very simple and easy way of making this just by using CSS as we know it.</p>
<h2>CSS step 2</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#master</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#navigation</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span>
margin-botttom<span style="color: #00AA00;">:</span><span style="color: #933;">-32000px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">32000px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#content</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">min-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
margin-botttom<span style="color: #00AA00;">:</span><span style="color: #933;">-32000px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">32000px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<h2>Explanation</h2>
<p>As you can see the code is very simple and what we basicly did was just to make the #master with overflow:hidden and maid our heights dynamic by using min-height + our two columns have a small trick with margin and padding, that makes a 32000px height &#8220;buffer&#8221; wich is hidden by the overflow:hidden on our #master. Now the reason why our #master now is dynamic is because we havent sat a static height on it. So eachtime our colums get longer the overflow will show more and more of our 32000px buffer.</p>
<p>At the end I wanna wish you all happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2009/09/dynamic-columns-without-using-javascripts/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Saucer.dk Blog version is online</title>
		<link>http://www.saucer.dk/2009/09/saucer-dk-blog-version-is-online/</link>
		<comments>http://www.saucer.dk/2009/09/saucer-dk-blog-version-is-online/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 21:15:58 +0000</pubDate>
		<dc:creator>Srdjan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Saucer.dk]]></category>

		<guid isPermaLink="false">http://saucer.dk/?p=3</guid>
		<description><![CDATA[WTF, I have no idea why I maid this blog, since I&#8217;m 100% sure that this won&#8217;t last long. I will probobly make 2-3 blog posts and uploade some of my old projects and that will basicly be it. Ohh well who cares&#8230;]]></description>
			<content:encoded><![CDATA[<p>WTF, I have no idea why I maid this blog, since I&#8217;m 100% sure that this won&#8217;t last long. I will probobly make 2-3 blog posts and uploade some of my old projects and that will basicly be it. Ohh well who cares&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saucer.dk/2009/09/saucer-dk-blog-version-is-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

