Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Call javascript function to specify "bottom:" in style [Thread Next] Re: Call javascript function to specify "bottom:" in styleTo: NULL Date: 10/11/2005 1:43:00 PM
David Perez wrote:
> function setBottomStyle(obj,numItems)
> {
> if (numItems > 3) this.style.bottom = '0px';
> }
>
> Is it possible to do this?
You can include script in HTML documents which is then executed by some
browsers when/while the document is rendered in the browser.
Thus if your XSLT generates HTML you can also generate script code in
the HTML document but that script will be executed (if at all) after the
XSLT transformation when the result of the transformation is rendered in
a browser. So that way the script can't help during the XSLT
transformation as it is not availabe there.
Some XSLT processors also allow you to write extension functions for
XPath/XSLT in a script language. That is the usually highly processor
specific.
For your XSLT problem you can simply write a named template probably
that takes parameters and that can then be called with xsl:call-template.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
