I need to pass parameter from a java program to XSL stylesheet.
StreamSource stylesheet = new StreamSource(f) ;
Transformer transformer = factory.newTran sformer(stylesh eet);
transformer.set Parameter("para m","abc");
I tried the above following but the parameter is not passed to the xsl.
Any ideas on this will be great
User Profile
Collapse
-
Passing Parameters To Xsl File From Java Program
-
This is my requirement..
I have one string like this
jr:rul=TISRecom mendedRecommend ed
Sometimes the string will have only TISRecommended and some othertimes only Recommended.So when I search for Recommended within TISRecommended it will say Recommended is present.But TISRecommended and Recommended are two different strings. I need to find exactly which one of the string is present exactly??
... -
Suppose if I am searching for AdamSachin which is not in the list ,the contains function will return true since AdamSachin which contains the string Adam in it...Got it??If you need more info that also I will give
thanks for the quick reply...Leave a comment:
-
Finding an exact string in xsl
I have string like this
jr:name=AdamAda mParoreAdamGilC hrist
I want to find the exact string here.Say for e.g If I want Adam it should give me only that string.
If I use contains(jr:nam e,'Adam')
It will give true for all the three strings i.e AdamAdamParoreA damGilchrist.I want to do a exact string match.Is there any way to do like that?
No activity results to display
Show More
Leave a comment: