From: Dahlke, Laurie (Laurie.Dahlke@Den.Galileo.com)
Date: 03/11/2003 - 23:02
Bonjour,
Comment selectionner pour chaque <xsl:for-each select="GenQuoteDetails'> la
valeure de l'attribut GrandTotal du dernier element <GenQuoteDetails>. Bien
que l'attribut GrandTotal existe dans chaque iteration de <GenQuoteDetails>
la seule valeure utilisee est celle du dernier GrandTotal, dans cet exemple
la valeure est "362400".
XSL:
<xsl:template match="/">
<xsl:for-each select="//GenQuoteDetails">
...
grandTotal:
????? <xsl:value-of select=" la valeur de l'attribut GrandTotal, du
dernier "GenQuoteDetails"/>
...
</xsl:for-each>
</xsl:template>
XML:
<AgencyPNRBFDisplay_7_4 CRS="1V">
<DocProdDisplayStoredQuote ExpansionState="0" FromDocTicketing="0">
<GenQuoteDetails PaxCount="1" TotalBase="166698"
TotalTotal="181200" GrandTotal="181200" TotalTax="14502">
<GenQuoteDetails PaxCount="1" TotalBase="0" TotalTotal="0"
GrandTotal="181200" TotalTax="000">
<GenQuoteDetails PaxCount="1" TotalBase="166698"
TotalTotal="181200" GrandTotal="362400" TotalTax="14502">
</DocProdDisplayStoredQuote>
</AgencyPNRBFDisplay_7_4>
D'avance merci,
Laure
The information in this electronic mail message is sender's business
Confidential and may be legally privileged. It is intended solely for the
addressee(s). Access to this Internet electronic mail message by anyone
else is unauthorized. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|