i want to print each "string" node as a li item from the following xml:
<soapenv:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.url.org/url/envelope/"
>
<soapenv:Header>
<MultiSpeakMsgHeader
Version="" UserID=""
Pwd="" AppName="xx" AppVersion="x"
Company="xxx" xmlns="http://www.url.org/Version_3.0"
/>
</soapenv:Header>
<soapenv:Body>
<GetMethodsResponse xmlns="http://www.url.org/Version_3.0">
<GetMethods>
<string>GetDomainMembers</string>
<string>GetDomainNames</string>
<string>GetMethods</string>
<string>pingURL</string>
<string>GetAllMeters</string>
<string>GetAllServiceLocations</string>
<string>GetAllCustomers</string>
<string>GetCustomerByCustId</string>
<string>GetServiceLocationByAccountNo</string>
<string>GetServiceLocationByMeterNo</string>
<string>ReadingChangedNotification</string>
</GetMethods>
</GetMethodsResponse>
</soapenv:Body>
</soapenv:Envelope>
i currently have the following xsl code -
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
>
<xsl:output method="html" />
<xsl:template match="/GetMethods">
<ul>
<xsl:for-each select="GetMethods/string">
<li>
<xsl:value-of select="string"/><br/>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>
but all this does is prints each string node as a long line with no list formatting. any help would be appreciated.
i want this simple output:
<ul>
<li>GetDomainMembers</li>
<li>GetDomainNames</li>
<li>GetMethods</li>
<li>pingURL</li>
<li>GetAllMeters</li>
<li>GetAllServiceLocations</li>
<li>GetAllCustomers</li>
<li>GetCustomerByCustId</li>
<li>GetServiceLocationByAccountNo</li>
<li>GetServiceLocationByMeterNo</li>
<li>ReadingChangedNotification</li>
</ul>
i'm currently getting this output (there is no formatting):
GetDomainMembers GetDomainNames GetMethods pingURL GetAllMeters GetAllServiceLocations GetAllCustomers GetCustomerByCustId GetServiceLocationByAccountNo GetServiceLocationByMeterNo ReadingChangedNotification