Xml – XSLT Newbie and XML Array

xmlxsltxslt-1.0

I have some very basic XML:

<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>One</string>
<string>Two</string>
</ArrayOfString>

How can I translate this into:

<ul>
 <li>One</li>
 <li>Two</li>
</ul>

Using XSLT?

Previously I've worked with a:value but these are just strings?

Best Solution

I'd do:

<xsl:stylesheet 
  version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
>
  <xsl:template match="ArrayOfString">
    <ul>
      <xsl:apply-templates select="string" />
    </ul>
  </xsl:template>

  <xsl:template match="string">
    <li>
      <xsl:value-of select="." />
    </li>
  </xsl:template>
</xsl:stylesheet>
Related Question