How can Introduce Javascript while running xslt

Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 22
Reputation: mlohokare is an unknown quantity at this point 
Solved Threads: 0
mlohokare mlohokare is offline Offline
Newbie Poster

How can Introduce Javascript while running xslt

 
0
  #1
Oct 20th, 2008
How can I Introduce Javascript(?) while running xslt on xml file?

I am trying to process 1 single xml file;
Inside that xml file there is a <image> tag;
tag not contains any information about width;
I am aplying xslt on this xml.

how can i calculate the width..

My condition on html is...

if the width is <= 300 it will dispaly as is;
if the width is > 300 then their will be a popup on html page...

is there any way in xslt or should i have to use javascript;

if i have to use javascript then how can i implement the same...

<xml> file as below--

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="123.xsl"?>
<root>
<elements>
<element>
<image href="..."></image>
</element>
</element>
</root>

**** when i click on xml file, it will open in IE6.0 in html format ****

I am very glad if anyone help me....
I am strugling a lot on this issue....

thanks in advance..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the XML, XSLT and XPATH Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC