<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[Content with Style - Comments on XML as intermediate application layer]]></title>
    <link>http://www.contentwithstyle.co.uk/feeds/rss/comments/29</link>
    <description><![CDATA[]]></description>
    <pubDate>Tue, 06 Jan 2009 07:32:30 +0000</pubDate>
    <generator>Zend_Feed</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[Content with Style - Comment #1 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-44</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-44</guid>
      <description><![CDATA[Interesting concept. <br />
<br />
Perhaps I&#8217;m being obtuse, but what would be the advantage of this approach over a template system like Smarty for example?]]></description>
      <content:encoded><![CDATA[Interesting concept. <br />
<br />
Perhaps I&#8217;m being obtuse, but what would be the advantage of this approach over a template system like Smarty for example?]]></content:encoded>
      <pubDate>Mon, 23 May 2005 18:35:04 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #2 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-46</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-46</guid>
      <description><![CDATA[Nice article. I use a similar approach for my developments and I love how everything is neatly compartmented. <br />
When appropriate, I even move XML and XSLT to the client. It trims down on server access and allows for more responsive and faster apps.  Of course it&#8217;s not supported by all browsers.<br />
<br />
Adam: I don&#8217;t know Smarty, but XSLT is a W3C standard.. That count for something.<br />
<br />
NB: Your comment form is stressing me out&#8230; I thought my caps-lock was broken or something.]]></description>
      <content:encoded><![CDATA[Nice article. I use a similar approach for my developments and I love how everything is neatly compartmented. <br />
When appropriate, I even move XML and XSLT to the client. It trims down on server access and allows for more responsive and faster apps.  Of course it&#8217;s not supported by all browsers.<br />
<br />
Adam: I don&#8217;t know Smarty, but XSLT is a W3C standard.. That count for something.<br />
<br />
NB: Your comment form is stressing me out&#8230; I thought my caps-lock was broken or something.]]></content:encoded>
      <pubDate>Mon, 23 May 2005 19:49:05 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #3 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-48</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-48</guid>
      <description><![CDATA[@Adam:<br />
I&#8217;m not sure about Smarty, since I never bothered to use it, but XML leaves definetly more and as Cedric pointed out, standard compliant opportunies.<br />
For example could the XML directly be used as feed for web services.<br />
Also, with developing the frontend using a dummy XML and writing the XSL by testing it on the client, the swap is incredibly easy afterwards. No need to take HTML-templates apart and put in smarty placeholders &#8230;  Point?<br />
<br />
@Cedric:<br />
Thanks, yeah, I see your point and I wish I could go for that, but since especially accessible applications demand markup that screenreaders and lynx can digest I&#8217;ll do it on the server &#8230; ... If I know it&#8217;ll be IE 6 with MSXML I do stuff like my <a href="http://pascal.soulshine.de/projects/">XML Editor</a> in pure JS &#8230;<br />
<br />
forms:<br />
think that&#8217;s better now]]></description>
      <content:encoded><![CDATA[@Adam:<br />
I&#8217;m not sure about Smarty, since I never bothered to use it, but XML leaves definetly more and as Cedric pointed out, standard compliant opportunies.<br />
For example could the XML directly be used as feed for web services.<br />
Also, with developing the frontend using a dummy XML and writing the XSL by testing it on the client, the swap is incredibly easy afterwards. No need to take HTML-templates apart and put in smarty placeholders &#8230;  Point?<br />
<br />
@Cedric:<br />
Thanks, yeah, I see your point and I wish I could go for that, but since especially accessible applications demand markup that screenreaders and lynx can digest I&#8217;ll do it on the server &#8230; ... If I know it&#8217;ll be IE 6 with MSXML I do stuff like my <a href="http://pascal.soulshine.de/projects/">XML Editor</a> in pure JS &#8230;<br />
<br />
forms:<br />
think that&#8217;s better now]]></content:encoded>
      <pubDate>Mon, 23 May 2005 22:28:30 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #4 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-67</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-67</guid>
      <description><![CDATA[From what little I&#8217;ve seen of Smarty, there&#8217;s an awful lot in there that you&#8217;re never going to use. I was looking to use it quite recently but decided that the added overhead (mental, as much as processor) was just too great and sacked it off in favour of a custom, lightweight approach. That said, I know people who swear by it so I guess it&#8217;s whatever suits you and your project best&#8230;]]></description>
      <content:encoded><![CDATA[From what little I&#8217;ve seen of Smarty, there&#8217;s an awful lot in there that you&#8217;re never going to use. I was looking to use it quite recently but decided that the added overhead (mental, as much as processor) was just too great and sacked it off in favour of a custom, lightweight approach. That said, I know people who swear by it so I guess it&#8217;s whatever suits you and your project best&#8230;]]></content:encoded>
      <pubDate>Wed, 25 May 2005 00:27:53 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #5 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-93</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-93</guid>
      <description><![CDATA[Smarty is the worst. Not only do I have to learn a templating format, I am forced to use a propriety standard and that is something I am not ok with.<br />
<br />
In addition, XML and XSLT can be used to provide accessibility for other devices with little to no code changes, so it extremely flexible, unlike Smarty.<br />
<br />
Plus, as someone mentioned above Smarty is terribily bloated and you probably won&#8217;t even use half of its &#8220;features&#8221;.]]></description>
      <content:encoded><![CDATA[Smarty is the worst. Not only do I have to learn a templating format, I am forced to use a propriety standard and that is something I am not ok with.<br />
<br />
In addition, XML and XSLT can be used to provide accessibility for other devices with little to no code changes, so it extremely flexible, unlike Smarty.<br />
<br />
Plus, as someone mentioned above Smarty is terribily bloated and you probably won&#8217;t even use half of its &#8220;features&#8221;.]]></content:encoded>
      <pubDate>Thu, 26 May 2005 23:11:08 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #6 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-114</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-114</guid>
      <description><![CDATA[All this sounds fine and dandy but unless you can run the xslt transformations on the client then arent you adding processing overheads? <br />
<br />
Surely PHP based templates are the most effective methods. I&#8217;ve followed the arguements on templating engines and come to the conclusion that they are mostly pointless (since php makes a fine template language). <br />
<br />
The one advantage of systems like smarty over php is they enforce discipline so nasty php code that shouldn&#8217;t be in the template can&#8217;t be in the template.<br />
<br />
Also adding smarty/xslt/xml to the mix adds further complexly and the requirement to know additional markup/code. <br />
<br />
My final issue is 5 layers adds to the number of files to think about when trying to nail down an problem. I already find this an anoyance with the MVC system I have in place and 5 layers sound like they will increase the problem.<br />
<br />
Phew thats a large post but I am interested to see what you think of my view and to learn of any possible improvements I can make to my MVC code]]></description>
      <content:encoded><![CDATA[All this sounds fine and dandy but unless you can run the xslt transformations on the client then arent you adding processing overheads? <br />
<br />
Surely PHP based templates are the most effective methods. I&#8217;ve followed the arguements on templating engines and come to the conclusion that they are mostly pointless (since php makes a fine template language). <br />
<br />
The one advantage of systems like smarty over php is they enforce discipline so nasty php code that shouldn&#8217;t be in the template can&#8217;t be in the template.<br />
<br />
Also adding smarty/xslt/xml to the mix adds further complexly and the requirement to know additional markup/code. <br />
<br />
My final issue is 5 layers adds to the number of files to think about when trying to nail down an problem. I already find this an anoyance with the MVC system I have in place and 5 layers sound like they will increase the problem.<br />
<br />
Phew thats a large post but I am interested to see what you think of my view and to learn of any possible improvements I can make to my MVC code]]></content:encoded>
      <pubDate>Fri, 03 Jun 2005 03:49:03 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #7 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-121</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-121</guid>
      <description><![CDATA[Hey Ben. I don&#8217;t really know if and how much XSLT with e.g. <a href="http://www.gingerall.com/charlie/ga/xml/p_sab.xml">Sablotron</a><br />
increases the processing load on the server. But even if it increases it, I&#8217;d trade that against a flexible layer that afterwards can be processed into anything. <br />
If it became a serious issue for the server to handle it i&#8217;d say just cache the XML or even better, the whole page :)<br />
Also let me point out that with XML as application layer you can use one XML output and transform it for each targeted platform.<br />
<br />
It would be interesting to get a Benchmark on how much the processign load and execution time are increased by stuff like that. Anyone got some links?]]></description>
      <content:encoded><![CDATA[Hey Ben. I don&#8217;t really know if and how much XSLT with e.g. <a href="http://www.gingerall.com/charlie/ga/xml/p_sab.xml">Sablotron</a><br />
increases the processing load on the server. But even if it increases it, I&#8217;d trade that against a flexible layer that afterwards can be processed into anything. <br />
If it became a serious issue for the server to handle it i&#8217;d say just cache the XML or even better, the whole page :)<br />
Also let me point out that with XML as application layer you can use one XML output and transform it for each targeted platform.<br />
<br />
It would be interesting to get a Benchmark on how much the processign load and execution time are increased by stuff like that. Anyone got some links?]]></content:encoded>
      <pubDate>Fri, 03 Jun 2005 17:42:36 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #8 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-127</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-127</guid>
      <description><![CDATA[Hi, I totaly agree with you, and if my host supported XSLT conversions(server-side) I would be far on my way. Though, this also have it&#8217;s problem, as you would have to come up with a standardized way of making your XML, as making new XSLT for every project you do might be a little tedious and I&#8217;ve never had a project where I had time to do this.]]></description>
      <content:encoded><![CDATA[Hi, I totaly agree with you, and if my host supported XSLT conversions(server-side) I would be far on my way. Though, this also have it&#8217;s problem, as you would have to come up with a standardized way of making your XML, as making new XSLT for every project you do might be a little tedious and I&#8217;ve never had a project where I had time to do this.]]></content:encoded>
      <pubDate>Sun, 05 Jun 2005 01:04:53 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #9 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-154</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-154</guid>
      <description><![CDATA[With MSXML and .NET&#8217;s XSLT implementations (don&#8217;t know about other ones unfortunately) you can cache a compiled version of the XSLT.<br />
<br />
In ASP you use the XSLTProcessor and you can put the compiled version into an Application variable, for example. With .NET&#8217;s version you have much more power e.g. putting it into the Cache object and setting a dependency on itself so if you update the XSL you don&#8217;t have to reset the web server or invalidate the cache manually through admin scripts like you would with ASP.<br />
<br />
This helps with performance. (The idea is similar to using Stored Procedures or parameterized SQL queries, so the compiled statements can be cached internally, etc.)]]></description>
      <content:encoded><![CDATA[With MSXML and .NET&#8217;s XSLT implementations (don&#8217;t know about other ones unfortunately) you can cache a compiled version of the XSLT.<br />
<br />
In ASP you use the XSLTProcessor and you can put the compiled version into an Application variable, for example. With .NET&#8217;s version you have much more power e.g. putting it into the Cache object and setting a dependency on itself so if you update the XSL you don&#8217;t have to reset the web server or invalidate the cache manually through admin scripts like you would with ASP.<br />
<br />
This helps with performance. (The idea is similar to using Stored Procedures or parameterized SQL queries, so the compiled statements can be cached internally, etc.)]]></content:encoded>
      <pubDate>Thu, 16 Jun 2005 13:32:41 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #10 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-156</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-156</guid>
      <description><![CDATA[Thanks Anup for flagging that up.<br />
<br />
Also I had a chat with Matthias who spotted that there is a little discussion going on on a couple of sites that goes like &#8220;XSLT vs Smarty&#8221;.<br />
I already made my point on that earlier, but one thing I forgot to mention: Smarty or any PHP templating language is PHP only, XSLT is multi-platform and nearly every up-to-date language offers an XSLT processor.<br />
<br />
Means that, if you&#8217;re forced to port your project, you can still keep the XSLs &#8230;<br />
Also your skills (I guess it&#8217;s more than a five minute job to &#8220;learn&#8221; Smarty) are presistant troughout all platforms and languages. That&#8217;s where I see a major benefit in using w3c techniques.]]></description>
      <content:encoded><![CDATA[Thanks Anup for flagging that up.<br />
<br />
Also I had a chat with Matthias who spotted that there is a little discussion going on on a couple of sites that goes like &#8220;XSLT vs Smarty&#8221;.<br />
I already made my point on that earlier, but one thing I forgot to mention: Smarty or any PHP templating language is PHP only, XSLT is multi-platform and nearly every up-to-date language offers an XSLT processor.<br />
<br />
Means that, if you&#8217;re forced to port your project, you can still keep the XSLs &#8230;<br />
Also your skills (I guess it&#8217;s more than a five minute job to &#8220;learn&#8221; Smarty) are presistant troughout all platforms and languages. That&#8217;s where I see a major benefit in using w3c techniques.]]></content:encoded>
      <pubDate>Thu, 16 Jun 2005 16:40:17 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #11 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-1167</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-1167</guid>
      <description><![CDATA[Pascal,<br />
<br />
I forgot I posted to this some time ago, and never saw your reply, but your point about keeping the XSL skills when you port is very important, I think.<br />
<br />
In fact, my personal site for 8 years has been ASP (glueing a 99% XML/XSL driven content). I have finally decided to port to PHP, and you are right (and that is what I hoped too!) that it is not as much work as needed.<br />
<br />
Not finished porting yet, but my XSLs hardly changed at all (the main problem being with ASP (and ASP.NET) you can pass XML Nodes as XSLT parameters, but with PHP 5 it seems you cannot. But that was not a major issue for me anyway, as I simply inserted the nodes into the XML anyway.]]></description>
      <content:encoded><![CDATA[Pascal,<br />
<br />
I forgot I posted to this some time ago, and never saw your reply, but your point about keeping the XSL skills when you port is very important, I think.<br />
<br />
In fact, my personal site for 8 years has been ASP (glueing a 99% XML/XSL driven content). I have finally decided to port to PHP, and you are right (and that is what I hoped too!) that it is not as much work as needed.<br />
<br />
Not finished porting yet, but my XSLs hardly changed at all (the main problem being with ASP (and ASP.NET) you can pass XML Nodes as XSLT parameters, but with PHP 5 it seems you cannot. But that was not a major issue for me anyway, as I simply inserted the nodes into the XML anyway.]]></content:encoded>
      <pubDate>Fri, 28 Jul 2006 07:51:27 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #12 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-2551</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-2551</guid>
      <description><![CDATA[As far as I know, a problem with XSLT approach is the designing part&#8212;I haven&#8217;t seen a WYSIWYG editor that would let you see a rendered HTML/CSS result before you run the transformation. However, using a template such as PHPTAL does.<br />
<br />
If there&#8217;s an editor that would do that, I&#8217;d like to know what it is.<br />
<br />
P.S. It would be good to see in which year posts were made.]]></description>
      <content:encoded><![CDATA[As far as I know, a problem with XSLT approach is the designing part&#8212;I haven&#8217;t seen a WYSIWYG editor that would let you see a rendered HTML/CSS result before you run the transformation. However, using a template such as PHPTAL does.<br />
<br />
If there&#8217;s an editor that would do that, I&#8217;d like to know what it is.<br />
<br />
P.S. It would be good to see in which year posts were made.]]></content:encoded>
      <pubDate>Mon, 10 Mar 2008 19:58:16 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Content with Style - Comment #13 on XML as intermediate application layer]]></title>
      <link>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-4944</link>
      <guid>http://www.contentwithstyle.co.uk/content/xml-as-intermediate-application-layer/#comment-4944</guid>
      <description><![CDATA[<p>
I just read this again, after a long long time. It's coming to my 6th year in London soon, and even for me "Why bothering" is a funny funny headline. I can understand why my partner accuses me of overusing the progressive.
</p>

]]></description>
      <content:encoded><![CDATA[<p>
I just read this again, after a long long time. It's coming to my 6th year in London soon, and even for me "Why bothering" is a funny funny headline. I can understand why my partner accuses me of overusing the progressive.
</p>

]]></content:encoded>
      <pubDate>Sat, 13 Dec 2008 17:44:50 +0000</pubDate>
    </item>
  </channel>
</rss>
