Hi All,

I need to be able to set a variable from within one of my extension elements 
for use in other parts of the scope.  Is there any best practice way of doing 
this?  I tried to emulate ElemVariable, but it was too complex.  My element is 
quite simple, it creates a query string that later gets used in an extension 
function I have that emulates the document function.  I think below will 
describe what I"m trying to achieve.

<param name="url"/>

<http:queryString var="myQueryString">
   <param name="var" value="$somevar"/>
</http:queryString>

<xslvalue-of 
select="myFunc:htmlDocument(concat($url,$myQueryString))/html/head/title"/>

I have written custom functions and extensions before, so I'm no stranger 
there, I just need to know how to assign something to 'myQueryString' in the 
above example.  I originally looked at using org.apache.xpath.VariableStack, 
but it assigns values based on indexes not names, so I'm a bit confused how 
that works.

Anyone have any suggestions?

Cheers
Adam



Number 1 in Truck Insurance

______________________________________________________________________
CAUTION - This message is intended for the addressee named above.

It may contain privileged or confidential information. If you are 
not the intended recipient of this message you must not use, 
copy, distribute or disclose it to anyone other than the addressee.
If you have received this email in error please return the message to the 
sender by replying to it and then delete the message from your computer.

Internet e-mails are not necessarily secure. 
National Transport Insurance does not accept responsibility for changes made to 
this message after it was sent.
______________________________________________________________________

Reply via email to