Click to See Complete Forum and Search --> : Help with a transform


MartyFreshwater
September 19th, 2002, 05:57 AM
Hi,

I have the following XML and would like to write a transform that will display a link to an appropiate file viewer for the filetypeID.

<Downloads>
<Download Name= "Word doc" FileTypeID = "1"/>
<Download Name= "Word template" FileTypeID = "2"/>
<Download Name= "Word doc" FileTypeID = "1"/>
<Download Name= "Excel" FileTypeID = "3"/>
<Download Name= "Excel template" filetypeID = "4"/>
</Downloads>


For example a download with a filetypeid of 1 or 2 would require a word viewer, 3 and 4 would require and excel viewer. The problem I have is that once I have added the word viewer link to the output, in this case after the first row, I do not want to output it again for the 'word template' download. I'd appreciate any help on this.

Thanks

Marty