<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: uppercase code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 03:54:32 GMT</pubDate>
    <description>DZone Snippets: uppercase code</description>
    <item>
      <title>Using XSLT to convert a value to upper or lowercase</title>
      <link>http://snippets.dzone.com/posts/show/5160</link>
      <description>This code was copied from &lt;a href="http://www.topxml.com/xsl/articles/caseconvert/"&gt;XSLT Case Conversion Solution &lt;/a&gt; [topxml.com]&lt;br /&gt;&lt;br /&gt;Firstly lets place all the letters of the alphabet, lower case and upper case in variables.&lt;br /&gt;&lt;code&gt;&lt;xsl:variable name="lcletters"&gt;abcdefghijklmnopqrstuvwxyz&lt;/xsl:variable&gt;&lt;br /&gt;&lt;xsl:variable name="ucletters"&gt;ABCDEFGHIJKLMNOPQRSTUVWXYZ&lt;/xsl:variable&gt;&lt;/code&gt;&lt;br /&gt;To then convert our data to upper case we use the translate method, which replaces all the lower case characters with upper case.&lt;br /&gt;&lt;code&gt;&lt;xsl:value-of select="translate($toconvert,$lcletters,$ucletters)"/&gt;&lt;/code&gt;&lt;br /&gt;Lower Case Transformation&lt;br /&gt;&lt;br /&gt;The lower case transformation is basically the same:&lt;br /&gt;&lt;code&gt;&lt;xsl:value-of select="translate($toconvert,$ucletters,$lcletters)"/&gt;&lt;/code&gt;&lt;br /&gt;</description>
      <pubDate>Thu, 21 Feb 2008 20:20:47 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5160</guid>
      <author>jrobertson (James Robertson)</author>
    </item>
    <item>
      <title>uppercase-at function</title>
      <link>http://snippets.dzone.com/posts/show/1110</link>
      <description>&lt;code&gt;&lt;br /&gt;    uppercase-at: func [&lt;br /&gt;        "Changes the letters at the specified positions to uppercase"&lt;br /&gt;        string positions [any-block!]&lt;br /&gt;    ] [&lt;br /&gt;        foreach pos positions [uppercase/part at string pos 1]&lt;br /&gt;        head string&lt;br /&gt;    ]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 10 Jan 2006 05:57:34 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1110</guid>
      <author>gregg.irwin (Gregg Irwin)</author>
    </item>
  </channel>
</rss>
