<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Example alf:parseXMLDocuments using XSL and Freemarker</title>
	<atom:link href="http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/</link>
	<description></description>
	<lastBuildDate>Fri, 28 Jan 2011 15:49:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Giorgio Cardellini</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-1948</link>
		<dc:creator>Giorgio Cardellini</dc:creator>
		<pubDate>Mon, 18 May 2009 08:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-1948</guid>
		<description>Eventually I got the answer to my question, I will publish it on your blog &#039;cause I think will be useful for everybody to know.
It&#039;s a tricky way, but it works.
We will have get using Freemarker the alf.filename attribute in lower case and removing the final .xml

Here is the code:

&lt;code&gt;
  &lt;#list parsedPost.@@ as attr&gt; &lt;#-- Retrieve Filename - this made me sweat - Giorgio Cardellini --&gt;
    &lt;#if attr?node_name = &#039;file_name&#039;&gt;
    &lt;#list attr?split(&quot;.&quot;) as name&gt;
    &lt;#if name_has_next&gt;
     &lt;#assign myFilename = name?lower_case&gt;
    &lt;/#if&gt;
    &lt;/#list&gt;
   &lt;/#if&gt;
  &lt;/#list&gt;
&lt;/code&gt;
				
			
		
${myFilename} this will print out the wanted result and can be used insed URL to have a friendly navigation :)

Have a nice day !</description>
		<content:encoded><![CDATA[<p>Eventually I got the answer to my question, I will publish it on your blog &#8217;cause I think will be useful for everybody to know.<br />
It&#8217;s a tricky way, but it works.<br />
We will have get using Freemarker the alf.filename attribute in lower case and removing the final .xml</p>
<p>Here is the code:</p>
<p><code><br />
  &lt;#list parsedPost.@@ as attr&gt; &lt;#-- Retrieve Filename - this made me sweat - Giorgio Cardellini --&gt;<br />
    &lt;#if attr?node_name = &#039;file_name&#039;&gt;<br />
    &lt;#list attr?split(&quot;.&quot;) as name&gt;<br />
    &lt;#if name_has_next&gt;<br />
     &lt;#assign myFilename = name?lower_case&gt;<br />
    &lt;/#if&gt;<br />
    &lt;/#list&gt;<br />
   &lt;/#if&gt;<br />
  &lt;/#list&gt;<br />
</code></p>
<p>${myFilename} this will print out the wanted result and can be used insed URL to have a friendly navigation <img src='http://www.benh.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Have a nice day !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Cardellini</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-1763</link>
		<dc:creator>Giorgio Cardellini</dc:creator>
		<pubDate>Thu, 14 May 2009 07:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-1763</guid>
		<description>I checked once again Youngs blog.
He is not using alf:file_name (this is used to retrieve the name of the XML file. The name which users type inside the web form when they create a new document or page)

If you check part3 (http://drquyong.com/myblog/?p=96) of Youngs article you can see that he is retrieving the name of an image loaded using a file picker. This is quite easy and is not inherent with my question.</description>
		<content:encoded><![CDATA[<p>I checked once again Youngs blog.<br />
He is not using alf:file_name (this is used to retrieve the name of the XML file. The name which users type inside the web form when they create a new document or page)</p>
<p>If you check part3 (<a href="http://drquyong.com/myblog/?p=96" rel="nofollow">http://drquyong.com/myblog/?p=96</a>) of Youngs article you can see that he is retrieving the name of an image loaded using a file picker. This is quite easy and is not inherent with my question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Cardellini</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-1672</link>
		<dc:creator>Giorgio Cardellini</dc:creator>
		<pubDate>Tue, 12 May 2009 12:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-1672</guid>
		<description>Thank you Ben,
I checked Youngs blog, but he is using XSLT.
I always use XSL templates but now my output is not HTML but an RSS feed and my choice was to use Freemarker.
Is there a way to achive the some result using Freemarker too ?</description>
		<content:encoded><![CDATA[<p>Thank you Ben,<br />
I checked Youngs blog, but he is using XSLT.<br />
I always use XSL templates but now my output is not HTML but an RSS feed and my choice was to use Freemarker.<br />
Is there a way to achive the some result using Freemarker too ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-1625</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 11 May 2009 10:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-1625</guid>
		<description>Hi Giorgio,

Take a look at Yongs blog.  He is writing a series of tutorials on Alfresco Web Forms.  He has an example of alf:file_name usage - http://drquyong.com/myblog/?p=65

Best regards,
Ben.</description>
		<content:encoded><![CDATA[<p>Hi Giorgio,</p>
<p>Take a look at Yongs blog.  He is writing a series of tutorials on Alfresco Web Forms.  He has an example of alf:file_name usage &#8211; <a href="http://drquyong.com/myblog/?p=65" rel="nofollow">http://drquyong.com/myblog/?p=65</a></p>
<p>Best regards,<br />
Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Cardellini</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-1624</link>
		<dc:creator>Giorgio Cardellini</dc:creator>
		<pubDate>Mon, 11 May 2009 10:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-1624</guid>
		<description>A question to the author:
Can you add inside XSL and Freemarker templete an example of alf:file_name usage ?
Alfresco wiki, is not very exhaustive, and contains some errors. (http://wiki.alfresco.com/wiki/WCM_Forms_Rendering)

Cheers</description>
		<content:encoded><![CDATA[<p>A question to the author:<br />
Can you add inside XSL and Freemarker templete an example of alf:file_name usage ?<br />
Alfresco wiki, is not very exhaustive, and contains some errors. (<a href="http://wiki.alfresco.com/wiki/WCM_Forms_Rendering" rel="nofollow">http://wiki.alfresco.com/wiki/WCM_Forms_Rendering</a>)</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-299</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 08 Apr 2009 13:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-299</guid>
		<description>Hi Pablo,
This is kind of off topic however you need to add the web form (XSD schema) and associate the XSLT (or Freemarker) template under the &quot;Edit Web Project&quot; section.  This gives you the option to &quot;add a web form&quot; and associate a template.

For a step by step guide along with some examples, take a look at WCM 2_1 Product Evaluation Guide.pdf from the Content Community - http://www.alfresco.com/community/register/  Its a little dated but is very useful.

Ben.</description>
		<content:encoded><![CDATA[<p>Hi Pablo,<br />
This is kind of off topic however you need to add the web form (XSD schema) and associate the XSLT (or Freemarker) template under the &#8220;Edit Web Project&#8221; section.  This gives you the option to &#8220;add a web form&#8221; and associate a template.</p>
<p>For a step by step guide along with some examples, take a look at WCM 2_1 Product Evaluation Guide.pdf from the Content Community &#8211; <a href="http://www.alfresco.com/community/register/" rel="nofollow">http://www.alfresco.com/community/register/</a>  Its a little dated but is very useful.</p>
<p>Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-269</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Tue, 07 Apr 2009 18:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-269</guid>
		<description>Hi,
I have a XML file with an specific schema and I want to apply a presentation template based in XSLT (not Freemarker)
I have copied the XSLT file into Presentation Templates of Alfresco, but when I select the template it is not correctly viewed.
It&#039;s like transformation wasn&#039;t applied.

Greetings</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have a XML file with an specific schema and I want to apply a presentation template based in XSLT (not Freemarker)<br />
I have copied the XSLT file into Presentation Templates of Alfresco, but when I select the template it is not correctly viewed.<br />
It&#8217;s like transformation wasn&#8217;t applied.</p>
<p>Greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-56</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 10 Mar 2009 09:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-56</guid>
		<description>Hi Roger,
There is a form example in the post and download file.  Just install the blog-article.xsd file.  I have just created a new web project, installed the XSD and both rendition templates just giving them a default rendition path, and the files are produced as expected.
Regards, Ben.</description>
		<content:encoded><![CDATA[<p>Hi Roger,<br />
There is a form example in the post and download file.  Just install the blog-article.xsd file.  I have just created a new web project, installed the XSD and both rendition templates just giving them a default rendition path, and the files are produced as expected.<br />
Regards, Ben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-54</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Mon, 09 Mar 2009 14:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-54</guid>
		<description>The article is fantastic for giving a sample of using this technology, but I am having issues actually testing out, I keep getting XPath errors when trying to enter a sample blog.  The XPath errors come from the xsl file, I was wondering if you could give me a sample configuration of the form you build to use this through alfresco.</description>
		<content:encoded><![CDATA[<p>The article is fantastic for giving a sample of using this technology, but I am having issues actually testing out, I keep getting XPath errors when trying to enter a sample blog.  The XPath errors come from the xsl file, I was wondering if you could give me a sample configuration of the form you build to use this through alfresco.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tristan</title>
		<link>http://www.benh.co.uk/alfresco/example-alfparsexmldocuments-using-xsl-and-freemarker/comment-page-1/#comment-35</link>
		<dc:creator>Tristan</dc:creator>
		<pubDate>Fri, 20 Feb 2009 04:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.benh.co.uk/?p=83#comment-35</guid>
		<description>Fantastic!  Why can&#039;t they have information like this on the Alfresco site?  The wiki is a mess and completely useless.</description>
		<content:encoded><![CDATA[<p>Fantastic!  Why can&#8217;t they have information like this on the Alfresco site?  The wiki is a mess and completely useless.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

