March 20, 200718 yr I have been working mainly with PHP lately and am wondering if any of you XML wizards know this - I'm trying to query the URL used to access a XSL file hosted under FMSA 8v4. I want to look at the current URL and if the 'www' is specified, then do something. The same xsl page accessed without the 'www' prefix will do something slightly different... I tried some variances of this ... but this is not working. Perhaps it is not possible to use a javascript constant (window.location...) inside xslt!? Thanks for any help!! In Kindness Stephen Knight
March 20, 200718 yr Stephen, this can't work. JavaScript is executed client-side, after the stylesheet has been processed server-side. How you can use JS server-side: See p. 76 of the FMSA CWP manual.
March 20, 200718 yr Author Hi Martin, Thank you for your answer Thank you, I was actually posting this for a friend from our forum. http://fmwebschool.com/frm/index.php?topic=906.0 I don't do a lot with XML anymore, mostly PHP work now. If you find it in your heart to do so, stop by our forum - there are plenty of people with XML questions They would be glad to hear from you! In Kindness Stephen Knight
Create an account or sign in to comment