[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Reusing templates and params

Subject: RE: Reusing templates and params
From: "Carl Radley" <Carl.Radley@xxxxxxxxxxx>
Date: Wed, 14 May 2008 11:54:09 +0100
RE:  Reusing templates and params
Apologies, for being too brief in previous email.

All variables are local to their own template (my bad for giving them the same

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.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 14 May 2008 11:39
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Reusing templates and params

I think you need to give some clues as to what you did, and what went

    <!-- 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


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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.