[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Passing values to tags within JavaScript

Subject: Re: Passing values to tags within JavaScript
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Mon, 30 Jul 2001 08:50:01 -0700
css passing values
You can do it that way

document.write('<link href="{$context}/nndi' + SSheet +
 '.css" rel="stylesheet" type="text/css">');

another is to set your font-size to px instead of pt - then you can use one
css cross platform

----- Original Message -----
From: "Barry de la Rosa" <baz@xxxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Cc: "techstaff" <techstaff@xxxxxxxxxxxxx>
Sent: Monday, July 30, 2001 8:28 AM
Subject:  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
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.