Subject: RE: [xsl] Reusing templates and params From: "Carl Radley" <Carl.Radley@xxxxxxxxxxx> Date: Wed, 14 May 2008 11:54:09 +0100 |
Apologies, for being too brief in previous email. All variables are local to their own template (my bad for giving them the same name) The problem is it appears to hang, as if running in an endless loop. No errors are thrown in regards to runtime or compile errors. Carl -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: 14 May 2008 11:39 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Reusing templates and params I think you need to give some clues as to what you did, and what went wrong. <!-- Do stuff ($anotherValue takes "bits" of $valueA) --> How did you define $anotherValue and what's it's scope if this is a local variable to template A then you wouldn't expect it to be available in template B. <!-- Do stuff ($anotherValue takes "bits" of $valueB) --> If this is in template B then this is a completely different variable which just happens to have the same name. If you want it to have the same value you need to pass it as a parameter in the call-template call. <!-- Problem area - can test that $anotherValue has many characters in it but template "A" fails the xsl:if --> fails as in fails to compile (reference to undefined variable) or compiles but gives run time error, or gives no error but does the wrong thing. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________ ---------------------------------------------------------------- This e-mail (which includes any files attached to it) is not contractually binding on its own, it is intended solely for the named recipient and may contain CONFIDENTIAL, legally privileged or trade secret information protected by law. If you have received this message in error please delete it and notify us immediately by telephoning +44(0)2476421213. If you are not the intended recipient you must not use, disclose, distribute, reproduce, retransmit, retain or rely on any information contained in this e-mail. Please note that Severn Trent Laboratories Limited reserve the right to monitor email communications in accordance with applicable law and regulations. To the extent permitted by law, neither Severn Trent Laboratories Limited or any of its subsidiaries, nor any employee, director or officer thereof, accepts any liability whatsoever in relation to this e-mail including liability arising from any external breach of security or confidentiality or for virus infection or for statements made by the sender as these are not necessarily made on behalf of Severn Trent Laboratories Limited. Severn Trent Laboratories Limited is a limited company registered in England and Wales under registered number 2148934 with its registered office at 2297 Coventry Road, Birmingham B26 3PU. -----------------------------------------------------------------------
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Reusing templates and par, David Carlisle | Thread | Re: [xsl] Reusing templates and par, David Carlisle |
Re: [xsl] Reusing templates and par, David Carlisle | Date | Re: [xsl] Reusing templates and par, David Carlisle |
Month |