xsl-list
[Top] [All Lists]

Re: [xsl] Variables

2009-10-26 07:48:44
David Galligani wrote:

<webenmr>
<calculation>
<webinfo workingdir="x_10_2009" />

 <output name="xplor">
  <iteration number="1">
   <pdb_info directory="./input_9/"
filename="ite_1_d_input_9_pdb_sa1_1.pdb">

                                   <xsl:for-each select="pdb_info">
                            <tr>
                               <th>File</th>
                               <td><a href="file_pdb/">
<xsl:value-of select="@filename"/>

I want to concatenate the "workingdir" and "filename" values in an hyperlink , something like <a href='workingdir/filename'>File</a>
but atm nothing seems to work .

Does
<a href="{/webenmr/calculation/webinfo/@workingdir}/{(_at_)filename}">
                             <xsl:value-of select="@filename}"/>
                           </a>

give you what you want?

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--