Subject: RE: [xsl] Problem generating default attribute values. From: "Jonathan Jenkins" <jon.jenkins@xxxxxxxxxxxxxxxxx> Date: Fri, 15 Nov 2002 12:43:31 -0000 |
Yes - broken down like that it makes a lot more sense. Thanks. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David Carlisle Sent: 15 November 2002 11:53 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Problem generating default attribute values. If I understand correctly... <xsl:template match="transaction-list"> <dest-transaction-list total="total"> <xsl:for-each select="transaction/breakdown/@account"> <xsl:attribute name="{.}"><xsl:value="."/></xsl:attribute> </xsl:for-each> <xsl:for-each select="transaction"> <dest-transaction total="@total"> <xsl:for-each select="../transaction/breakdown/@account"> <xsl:attribute name="{.}">0</xsl:attribute> </xsl:for-each> <xsl:for-each select="breakdown"> <xsl:attribute name="{@account}"><xsl:value="@ammount"/></xsl:attribute> </xsl:for-each> </dest-transaction> </xsl:for-each> </dest-transaction-list> untested.. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem generating defaul, David Carlisle | Thread | [xsl] copy-of select all attributes, "Braumuller, Hans" |
Re: [xsl] [FO]: pagination question, daniele . falloni | Date | RE: [xsl] Immediate Previous Node, Luke Ambrogio |
Month |