re; xslt help

  • Thread starter timothy ma and constance lee
  • Start date
T

timothy ma and constance lee

Sir

I encounter the problem:

<td width="80%" class="body_nls">
<select
name="{following-sibling::docTp[1]}"
OnChange="javascript:generateURL('{$COUNTRYCODE}','{$ACCTTP}','{$INSTCODE}','{ACCTNBR}','{following-sibling::refrID[1]}',this.options[this.selectedIndex].value),'{CUSTID}','{SERVTP}'">

<!-- calling a template to
generate <option> tags
-->
<xsl:call-template
name="generateDropdown">
<xsl:with-param
name="length"
select="preceding-sibling::totPage[1]"
/>
</xsl:call-template>
</select>
</td>
</tr>

where the generatDropdown template will give out the drop list box


function
generateURL(acctCtry,acctType,acctInst,acctNumu,imageCursor,index,custid,servid)
{
var servername =
'http://gp1007X9.gib-ivs.hsbc.com.gibivs/ViewImage?';
while(index.length()<4){
index="0"+index;
}

window.open(window.location.href=servername+'acctCtry=' + acctType +
'acctType=' + acctType + 'acctInst=' + acctInst + 'acctNumu=' + acctNumu +
'imageCursor=' + imageCursor + '#' + index +'custid=' + custid + 'service='
+ servid);
}

however, i cannot get the value at '{following-sibling::refrID[1]}'. Is
there any syntax especially handling for following-sibling?


Timothy Ma
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top