<?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>Adam Trachtenberg &#187; xslt</title>
	<atom:link href="http://www.trachtenberg.com/blog/tag/xslt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.trachtenberg.com/blog</link>
	<description>Thoughts on PHP, eBay, and too many technical topics for my family's liking.</description>
	<lastBuildDate>Tue, 24 Aug 2010 21:39:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adam&#8217;s Fall Conference Schedule</title>
		<link>http://www.trachtenberg.com/blog/2005/08/23/adams-fall-conference-schedule/</link>
		<comments>http://www.trachtenberg.com/blog/2005/08/23/adams-fall-conference-schedule/#comments</comments>
		<pubDate>Tue, 23 Aug 2005 20:41:07 +0000</pubDate>
		<dc:creator>Adam Trachtenberg</dc:creator>
				<category><![CDATA[Web Services]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ebay]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[speaking]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://www.trachtenberg.com/blog/2005/08/23/adams-fall-conference-schedule/</guid>
		<description><![CDATA[Now that&#8217;s I&#8217;m back from FOO Camp, I&#8217;m checking my calendar to see what conference events I have coming up. For those of you keeping track (hi mom!), here they are:

Microsoft PDC: September 13-16 in LA. I haven&#8217;t managed to wrangle a chance to speak yet. :)
Zend/PHP Conference: October 18-21 in Silicon Valley. Speaking about [...]]]></description>
			<content:encoded><![CDATA[<p>Now that&#8217;s I&#8217;m back from FOO Camp, I&#8217;m checking my calendar to see what conference events I have coming up. For those of you keeping track (hi mom!), here they are:</p>
<ul>
<li><a href="http://msdn.microsoft.com/events/pdc/">Microsoft PDC</a>: September 13-16 in LA. I haven&#8217;t managed to wrangle a chance to speak yet. :)</li>
<li><a href="http://zend.kbconferences.com/">Zend/PHP Conference</a>: October 18-21 in Silicon Valley. Speaking about eBay Web services. Final talk TBD.</li>
<li><a href="http://www.apachecon.com/2005/US/index.html">ApacheCon US 2005</a>: December 10-14 in San Diego. Speaking on &#8220;Consuming Web Services Using PHP 5&#8243;.</li>
</ul>
<p>I may also go to <a href="http://www.web2con.com/">Web 2.0</a> and the <a href="http://www.4d.com/summit/">4D Summit</a>, but I have yet to finalize those events.</p>
<p>The ApacheCon talk should be quite cool, as I will be showing off nifty real-world web services examples. For example, sucking del.icio.us RSS bookmarks into a WordPress blog, or mashing up eBay Web services search results with the Google mapping API. Here&#8217;s the full abstract:</p>
<blockquote><p>As we move into the world of Web 2.0, PHP developers must increasing include Web services in their toolkit of skills. This session covers how to implement REST and SOAP clients using the latest PHP 5 extensions, such as ext/soap, SimpleXML, and xsl.</p>
<p>This is not an academic talk discussing theory and specifications. Examples  show applications of popular Web services, including del.icio.us, eBay, and Google Maps.</p>
<p>Don&#8217;t be left behind. Come to this session and learn how to integrate Web services into your code.</p>
</blockquote>
<p>I have most of the code already written in various places, so there&#8217;s only the problem of creating the slides. Once I know more about my other talks, I will pimp them here, so stay tuned for all the details.</p>
<img src="http://www.trachtenberg.com/blog/?ak_action=api_record_view&id=179&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.trachtenberg.com/blog/2005/08/23/adams-fall-conference-schedule/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XSLT Cookbook: Generating an RFC 822 Date</title>
		<link>http://www.trachtenberg.com/blog/2005/03/03/xslt-cookbook-generating-an-rfc-822-date/</link>
		<comments>http://www.trachtenberg.com/blog/2005/03/03/xslt-cookbook-generating-an-rfc-822-date/#comments</comments>
		<pubDate>Thu, 03 Mar 2005 19:59:00 +0000</pubDate>
		<dc:creator>Adam Trachtenberg</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://www.trachtenberg.com/wordpress/?p=2</guid>
		<description><![CDATA[ProblemYou want to generate an RFC 822-formatted date in XSLT. This is needed, for example, in RSS feeds.
SolutionUse this code:

&#60;xsl:value-of select="concat(date:day-abbreviation(), ', ',
  format-number(date:day-in-month(), '00'), ' ',
  date:month-abbreviation(), ' ', date:year(), ' ',
  format-number(date:hour-in-day(), '00'), ':',
  format-number(date:minute-in-hour(), '00'), ':',
  format-number(date:second-in-minute(), '00'), ' GMT')"/&#62;

This assumes your server is in GMT.

Discussion
XSL uses [...]]]></description>
			<content:encoded><![CDATA[<p><b>Problem</b><br />You want to generate an RFC 822-formatted date in XSLT. This is needed, for example, in RSS feeds.</p>
<p><b>Solution</b><br />Use this code:</p>
<pre><tt>
&lt;xsl:value-of select="concat(date:day-abbreviation(), ', ',
  format-number(date:day-in-month(), '00'), ' ',
  date:month-abbreviation(), ' ', date:year(), ' ',
  format-number(date:hour-in-day(), '00'), ':',
  format-number(date:minute-in-hour(), '00'), ':',
  format-number(date:second-in-minute(), '00'), ' GMT')"/&gt;
</tt></pre>
<p>This assumes your server is in GMT.
</p>
<p><b>Discussion</b><br />
XSL uses a different default date format style than RSS, so it&#8217;s a bit of a pain to generate the current date in the RFC 822 format.</p>
<p>This code requires the use of the EXSLT date functions. Add them to your stylesheet by modifying the top to look like this:</p>
<pre><tt>
&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:date="http://exslt.org/dates-and-times"
                extension-element-prefixes=date"
                version="1.0"&gt;
</tt></pre>
</p>
<p>I use the <tt>format-number()</tt> function to make sure all numbers have leading 0s. The date functions return <tt>3</tt> instead of <tt>03</tt>, for example.</p>
<img src="http://www.trachtenberg.com/blog/?ak_action=api_record_view&id=2&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.trachtenberg.com/blog/2005/03/03/xslt-cookbook-generating-an-rfc-822-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
