Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Need help with printing out all nodes with this xml Need help with printing out all nodes with this xmlTo: NULL Date: 6/24/2009 12:47:00 AM I have my xml below and i'm trying to print out all the values in the
multi-service node.
But when i do
<xsl:value-of select="multi-service/multi-mobile/."/>
I can only get the first value in the first postion.
How can i get all the values e.g
0411777777
0411888888
I know my for each is matching the plan node but how can i break out
and match the multi-service nodes.
Thanks in Advance
See Below:
--------------------------
<report>
<report_info>
<plan>
<plan-code>BSHM0099BNAA01 </plan-code>
<plan-desc>Shared Bus Cap $99 24 Mth </plan-desc>
<ban>422222265 </ban>
<finance-amount>0</finance-amount>
<finance-duration></finance-duration>
<connection-type>Vodafone MultiServ New </connection-
type>
<multi-service>
<multi-connect-type>New</multi-connect-type>
<multi-handset-code>NOHANDSET </multi-handset-code>
<multi-handset-desc>No Handset - Service Only GSM </multi-
handset-desc>
<multi-handset-serial>TESTNOK1 </multi-handset-
serial>
<multi-
mobile>0411777777 </multi-
mobile>
<multi-simcard>SIMCARDCJPOST </multi-simcard>
<multi-simserial>TESTCJ1 </multi-simserial>
</multi-service>
<multi-service>
<multi-connect-type>Port</multi-connect-type>
<multi-handset-code>NOHANDSET </multi-handset-code>
<multi-handset-desc>No Handset - Service Only GSM </multi-
handset-desc>
<multi-handset-serial>TESTCJ1 </multi-handset-
serial>
<multi-
mobile>0411888888 </multi-
mobile>
<multi-simcard>SIMCARDCJPOST </multi-simcard>
<multi-simserial>TESTCJ2 </multi-simserial>
</multi-service>
</plan>
</report_info>
</report>
<xsl:for-each select="/report/report_info/detail/plan">
<table class="tabledetails" cellspacing="0" style="table-
layout:fixed" border="0" width="645px">
<tr>
<td width="50px"></td>
<td>
<xsl:if test="normalize-space(.)">
<b><xsl:value-of select="plan-desc"/>
</b>
</xsl:if>
</td>
</tr>
<tr>
<td width="50px"></td>
<td>
<xsl:value-of select="multi-service/multi-mobile/."/>
<xsl:value-of select="multi-service/multi-handset-code/."/>
</td>
</tr>
</table>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
