|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Passing values to tags within JavaScript
Hi,
I've been lurking for a little while now and haven't found anything that might help me with this problem. Please excuse me if it's trivial, but I'm very new to XML/XSL. We use a Perl-based templating system called PHtml to process HTML pages. We are currently planning a transition to XML/XSL and I am trying to convert our current pages. They mostly consist of separate 'objects' that are pulled together using PHtml to form complete HTML pages. So far I have had success converting each object into two files - one that uses the exisiting PHtml to output XML, and the other consisting solely of XSL. Eventually I will have a large XML file that has been output by the PHtml process, against which I can run a separate XSL file that calls all the other XSL 'object' files. I have come up against a brick wall trying to work out how to convert the following code: <script language="JavaScript" type="text/javascript"> var SSheet = ""; if (navigator.platform.indexOf("Mac")!=-1){ SSheet == "Mac"; } document.write("<link href=\"<$ [.URL.CSS_ROOT]>/nndi" + SSheet + ".css\" rel=\"stylesheet\" type=\"text/css\">"); .... "<$ [.URL.CSS_ROOT]>" is a variable that is normally processed by PHtml and replaced by the correct path info. However, using the new system, I now have an XML file that contains the element: <CSSRoot>[path info]</CSSRoot> ...and I need to pass this instead. Can anybody help? -- Best regards -- Barry de la Rosa ________________________________________________ Barry de la Rosa Senior Technology Engineer NewsNow Publishing Limited Tel: +44 (0)20 7471 0400 ____________________________________ http://services.NewsNow.co.uk Receive fast updating news about your company, competitors, industry, products, clients & prospects ____________________________________ http://www.NewsNow.co.uk Possibly the world's most popular news portal web site XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








