Martin (33)
Usenet Archive
- Joined
- Sep 5, 2003
- Messages
- 5
- Reaction score
- 0
I have 5 days of experince with XSLT and I am sure my problem is pretty much as basic as they come but I cannot work it out, so I hope someone will take pity on me - please!
I have inherited an XML file format which has one header node and several child nodes :
<wi workitemid= "99999" .... etc .... />
<widata dataname="AMOUNT" datadisplay="Amount" datavalue="123.45"/> <widata dataname="ADDRESS1" datadisplay="Address" datavalue="Line 1" > <widata .... etc ....
and am processing them using XSLT to produce an HTML table, by for example :
<xsl:apply-templates select="widata[@dataname = 'AGENTNAME']" mode="left_left"/>
The template puts the value of datadisplay into one table cell, and the value of datavalue into the next cell.
So far, so good. However, how would I get the values from two widata nodes and concatenate them so that I can put them into one cell? I know about the concat function but I am having problems getting hold of the values from the nodes and storing them so that I can then use that function.
I hope I have included enough info to be helpful.
Thank-you.
Martin
I have inherited an XML file format which has one header node and several child nodes :
<wi workitemid= "99999" .... etc .... />
<widata dataname="AMOUNT" datadisplay="Amount" datavalue="123.45"/> <widata dataname="ADDRESS1" datadisplay="Address" datavalue="Line 1" > <widata .... etc ....
and am processing them using XSLT to produce an HTML table, by for example :
<xsl:apply-templates select="widata[@dataname = 'AGENTNAME']" mode="left_left"/>
The template puts the value of datadisplay into one table cell, and the value of datavalue into the next cell.
So far, so good. However, how would I get the values from two widata nodes and concatenate them so that I can put them into one cell? I know about the concat function but I am having problems getting hold of the values from the nodes and storing them so that I can then use that function.
I hope I have included enough info to be helpful.
Thank-you.
Martin