Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Need help with printing out all nodes with this xml

From: naijacoder <lurowam@-----.--->
To: 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>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent