

<?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>Jessica Ledbetter &#187; Language</title>
	<atom:link href="http://www.jessicaledbetter.com/archives/category/language/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jessicaledbetter.com</link>
	<description>Interactive media solutions for Newport News, Hampton, Yorktown, Virginia and beyond.</description>
	<lastBuildDate>Sun, 23 Nov 2008 16:40:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS Vocabulary</title>
		<link>http://www.jessicaledbetter.com/archives/2006/06/29/css-vocabulary/</link>
		<comments>http://www.jessicaledbetter.com/archives/2006/06/29/css-vocabulary/#comments</comments>
		<pubDate>Thu, 29 Jun 2006 17:06:09 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Language]]></category>

		<guid isPermaLink="false">http://www.digifoo.com/archives/2006/06/29/css-vocabulary/</guid>
		<description><![CDATA[Some CSS vocabulary. "What's the name for that thing between the things?"]]></description>
			<content:encoded><![CDATA[<p>I took a class a long time ago on CSS. The instructor kept saying &#8220;sheet styles.&#8221; I&#8217;ve said &#8220;alt tags&#8221; before I realized how wrong that was. So here I am arming myself and others with the right words.</p>
<p><strong>Attributes:</strong> properties of HTML elements.</p>
<blockquote><p>href<br />
title<br />
class</p></blockquote>
<p><strong>Rule, selector, property, value, declaration</strong>:</p>
<blockquote><p><img alt="Diagram of a CSS Rule" id="image117" style="width: 216px; height: 109px" src="http://www.jessicaledbetter.com/wp-content/uploads/2006/06/css.gif" /></p></blockquote>
<p><strong>Linked stylesheet:</strong></p>
<blockquote><p><img id="image119" alt="Linked" src="http://www.jessicaledbetter.com/wp-content/uploads/2006/06/css2.gif" /></p></blockquote>
<p>or</p>
<blockquote><p><img id="image120" alt="import" src="http://www.jessicaledbetter.com/wp-content/uploads/2006/06/css3.gif" /></p></blockquote>
<p><strong>Embedded stylesheet:</strong></p>
<blockquote><p>p { padding-top: 1em;}</p></blockquote>
<p><strong>Inline stylesheet:</strong></p>
<blockquote><p><img id="image121" alt="Inline" src="http://www.jessicaledbetter.com/wp-content/uploads/2006/06/css4.gif" /></p></blockquote>
<p><strong>Attribute selector</strong>: style based on attribute, title, href, class or value of that attribute; uses &#8220;square brackets.&#8221;</p>
<blockquote><p>h1[title] { color: #f00; }</p></blockquote>
<p><strong>Child selector</strong>: style elements that are direct descendants of another element; selectors are separated by &#8220;greater-than symbol.&#8221;</p>
<blockquote><p>h1 > span { color: #ccc; }</p></blockquote>
<p><strong>Adjacent sibling selector</strong>: style elements according to an element that precedes them; selectors are separated by &#8220;plus symbol.&#8221;</p>
<blockquote><p>h1 + p { color: #aaa; }</p></blockquote>
<p><strong>Class selector:</strong> rule(s) for an element(s) put all together and can be called with a name. Can be used more than once.</p>
<blockquote><p>p.story { padding-top:2em; color:#ddd;}</p></blockquote>
<p><strong> ID selector:</strong> rule(s) for an element put all together and given a name. Can be used only once per page.</p>
<blockquote><p>#sidebar { border:1px solid #ddd;}</p></blockquote>
<p><strong>Contextual selector:</strong> two or more simple selectors separated by space.</p>
<blockquote><p>p b { color: #f00; }<br />
would make the bolded items under paragraphs be a red color and the rest of the paragraph is a normal color.</p></blockquote>
<p><strong> Grouping:</strong> when selectors have the same declarations</p>
<blockquote><p>h1, h2, h3 { color: #f00; }</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.jessicaledbetter.com/archives/2006/06/29/css-vocabulary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Project in XSLT</title>
		<link>http://www.jessicaledbetter.com/archives/2006/06/01/xslt/</link>
		<comments>http://www.jessicaledbetter.com/archives/2006/06/01/xslt/#comments</comments>
		<pubDate>Thu, 01 Jun 2006 22:16:47 +0000</pubDate>
		<dc:creator>Jessica</dc:creator>
				<category><![CDATA[Language]]></category>

		<guid isPermaLink="false">http://www.digifoo.com/archives/2006/06/01/xslt/</guid>
		<description><![CDATA[The Extensible Stylesheet Language Family (XSL) and Extensible Markup Language (XML) brought to you by the letter X.]]></description>
			<content:encoded><![CDATA[<p><strong>Challenge</strong>:<br />
Publish a feed not using a content management system.</p>
<p><strong>Ideas</strong>:<br />
Publish a feed in XML but style it with XSL so that I don&#8217;t have to &#8220;generate&#8221; an HTML page. Sounds sexy. So far it&#8217;s working.</p>
<p>The biggest challenge was finding a nice &#8220;what can I and can&#8217;t do with XML and/or XSL&#8221; chart. There were a few manuals, but I wanted a quick glance type thing. What&#8217;s required? What&#8217;s optional?</p>
<p>Seems there  are different namespaces, which mean that more options in XSL are available. For example, Yahoo (of all folks) have a media namespace. This opens up thumbnails/images! XML+Thumbnails/images&#8230; sounds like a newsletter.</p>
<p>But wait&#8230; there&#8217;s more. I have put in an  on the XML and subscribed to it with iTunes. Sure nuff. The mp3 is coming through loud and clear. And with XSL I can say &#8220;if audio, show audio link&#8230;&#8221;</p>
<p><strong>Code:</strong></p>
<p><strong>The XML (newsletter.xml)</strong></p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;&lt;?xml-stylesheet type=&#8221;text/xsl&#8221; xhref=&#8221;newsletter.xsl&#8221; mce_href=&#8221;newsletter.xsl&#8221;      ?&gt;&lt;rss version=&#8221;2.0&#8243;</p>
<p>xmlns:media=&#8221;http://search.yahoo.com/mrss&#8221;</p>
<p>xmlns:itunes=&#8221;http://www.itunes.com/dtds/podcast-1.0.dtd&#8221;</p>
<p>xmlns:dc=&#8221;http://purl.org/dc/elements/1.1/&#8221;</p>
<p>&gt;</p>
<p>&lt;channel&gt;</p>
<p>&lt;title&gt;Test Lab Newsletter&lt;/title&gt;</p>
<p>&lt;link&gt;http://www.test.org/news/newsletter/index.html&lt;/link&gt;</p>
<p>&lt;description&gt;Test Lab description.&lt;/description&gt;</p>
<p>&lt;category&gt;Science&lt;/category&gt;</p>
<p>&lt;itunes:category text=&#8221;Science&#8221;/&gt;</p>
<p>&lt;language&gt;en-us&lt;/language&gt;</p>
<p>&lt;copyright&gt;copyright 2005-2006 Test Lab&lt;/copyright&gt;</p>
<p>&lt;lastBuildDate&gt;Mon, 15 May 2006 15:34:51 EST&lt;/lastBuildDate&gt;</p>
<p>&lt;image&gt;</p>
<p>&lt;title&gt;Test Lab Newsletter&lt;/title&gt;</p>
<p>&lt;url&gt;http://www.test.org/images/icon-pod-test-300.jpg&lt;/url&gt;</p>
<p>&lt;link&gt;http://www.test.org/news/newsletter/index.html&lt;/link&gt;</p>
<p>&lt;/image&gt;</p>
<p>&lt;itunes:explicit&gt;no&lt;/itunes:explicit&gt;</p>
<p>&lt;itunes:image xhref=&#8221;http://www.test.org/images/icon-pod-test-300.jpg&#8221; mce_href=&#8221;http://www.test.org/images/icon-pod-test-300.jpg&#8221;      /&gt;</p>
<p>&lt;item&gt;</p>
<p>&lt;title&gt;Test Lab contract newsletter title here&lt;/title&gt;</p>
<p>&lt;description&gt;Blurb for the newsletter article&lt;/description&gt;</p>
<p>&lt;link&gt;http://www.test.org/news/news_letter/2006/20060515/index.html#jsa&lt;/link&gt;</p>
<p>&lt;guid&gt;http://www.test.org/news/news_letter/2006/20060515/index.html#jsa&lt;/guid&gt;</p>
<p>&lt;author&gt;contactname@test.org (First Last)&lt;/author&gt;</p>
<p>&lt;media:thumbnail url=&#8221;http://www.test.org/news/news_letter/2006/20060515/test_tn.jpg&#8221; height=&#8221;70&#8243; width=&#8221;100&#8243; /&gt;</p>
<p>&lt;category&gt;Science&lt;/category&gt;</p>
<p>&lt;pubDate&gt;Mon, 15 May 2006 15:57:53 EST&lt;/pubDate&gt;</p>
<p>&lt;itunes:keywords&gt;keywords space entered here&lt;/itunes:keywords&gt;</p>
<p>&lt;itunes:duration&gt;00:00:00&lt;/itunes:duration&gt;</p>
<p>&lt;itunes:explicit&gt;no&lt;/itunes:explicit&gt;</p>
<p>&lt;/item&gt;</p>
<p>&lt;/channel&gt;</p>
<p>&lt;/rss&gt;</p>
</blockquote>
<p><strong>The XML (newsletter.xml)</strong><br />
First part goes above the html tag to say &#8220;Hey! I&#8217;m a stylesheet for XML.&#8221;</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&gt;</p>
<p>&lt;xsl:stylesheet version=&#8221;1.0&#8243;<br />
xmlns:xsl=&#8221;http://www.w3.org/1999/XSL/Transform&#8221;<br />
xmlns:media=&#8221;http://search.yahoo.com/mrss&#8221;<br />
&gt;<br />
&lt;xsl:output method=&#8221;html&#8221;/&gt;<br />
&lt;xsl:template match=&#8221;/&#8221;&gt;</p>
</blockquote>
<p>Now this part goes in where you want the channel items to show. All around this I have the normal web site template in plain ol&#8217; HTML. I have some inline CSS but that&#8217;s to show what it&#8217;s doing. I put the layout in a table because it copies/pastes better in an email for emailing the newsletter. I&#8217;m hoping to get rid of that table &#8220;soon.&#8221; But for now, it&#8217;s a necessary evil.</p>
<blockquote><p>&lt;xsl:for-each select=&#8221;/rss/channel/item&#8221;&gt;<br />
&lt;tr valign=&#8221;top&#8221;&gt;&lt;td&gt;</p>
<p>&lt;xsl:if test=&#8221;media:thumbnail/@url&#8221;&gt;<br />
&lt;img&gt;<br />
&lt;xsl:attribute name=&#8221;src&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;media:thumbnail/@url&#8221; /&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;xsl:attribute name=&#8221;width&#8221;&gt;<br />
&lt;xsl:value-of select=&#8221;media:thumbnail/@width&#8221; /&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;xsl:attribute name=&#8221;height&#8221;&gt;</p>
</blockquote>
<blockquote><p>&lt;xsl:value-of select=&#8221;media:thumbnail/@height&#8221; /&gt;<br />
&lt;/xsl:attribute&gt;<br />
&lt;/img&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;/td&gt;&lt;td class=&#8221;news_item&#8221;&gt;&lt;p style=&#8221;padding-left:0;font-size:80%;&#8221;&gt;<br />
&lt;a&gt;&lt;xsl:attribute name=&#8221;href&#8221;&gt;&lt;xsl:value-of select=&#8221;link&#8221;/&gt;&lt;/xsl:attribute&gt;&lt;b style=&#8221;font-size:120%;&#8221;&gt;&lt;xsl:value-of select=&#8221;title&#8221;/&gt; &lt;/b&gt;&lt;/a&gt;&lt;br/&gt;<br />
&lt;xsl:value-of disable-output-escaping=&#8221;yes&#8221; select=&#8221;description&#8221; /&gt;</p>
</blockquote>
<p>If we have a podcast, there will be text in the url field that points to the podcast&#8217;s location.</p>
<blockquote><p>&lt;xsl:if test=&#8221;enclosure/@url&#8221;&gt;<br />
&lt;a&gt;</p>
<p>&lt;xsl:attribute name=&#8221;href&#8221;&gt;&lt;xsl:value-of select=&#8221;enclosure/@url&#8221;/&gt;&lt;/xsl:attribute&gt;&lt;img xsrc=&#8221;/images/icon-mp3.gif&#8221; mce_src=&#8221;/images/icon-mp3.gif&#8221;      alt=&#8221;Listen MP3&#8243; border=&#8221;0&#8243; /&gt;<br />
&lt;/a&gt;<br />
&lt;/xsl:if&gt;<br />
&lt;/p&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/xsl:for-each&gt;</p>
</blockquote>
<p>I will post more on this project if/when it continues. Right now everything&#8217;s working fine and dandy. We haven&#8217;t had any podcasts to go with the newsletter stories yet but when I test it out, it was fine. The generator is still fine and only needs a little more tweaking to be (hopefully) safe enough for others to use in the office.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jessicaledbetter.com/archives/2006/06/01/xslt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
