How to assing value for xsl:variable while run time..
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ethiraj_krishnan
Posted On:   Thursday, March 20, 2003 10:12 PM

I have declared xsl:varaible in one place,after that i want to assin a value accoriding to some codtion,but i don't know how to assing value to variable.

one way is we can assing value like this..


somthing like this..
but i want to assi value for above variable var in run time..

Re: How to assing value for xsl:variable while run time..

Posted By:   Roseanne_Zhang  
Posted On:   Friday, March 21, 2003 06:47 AM

Hey, Jan

That is exactly what I'm doing for our product installation process!


ethiraj krishnan

If you're using Java, then you can also use

javax.xml.transform.Transformer.setParameter(name, val);

to do the same as Jan said.

Re: How to assing value for xsl:variable while run time..

Posted By:   Anonymous  
Posted On:   Friday, March 21, 2003 06:21 AM

You have to use parameters.

XSL stylesheet

version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

DEFAULT-DATE

...

Calling via Ant





About | Sitemap | Contact