XSL transformation and javascript inclusion problem of external .js files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Asghar

    XSL transformation and javascript inclusion problem of external .js files

    Hi,
    Please I need help.I have a problem of client side XSL
    transformation. I sent the XML and the XSL to the client in XML data
    islands. Using the transform Node method the HTML is returned. There
    is however some script tag in the XSL file which references external
    ..js files they are like

    <SCRIPT language="Javas cript" src="abc.js" DEFER="true" />

    Now, after transformation the function from this .js file are not
    called and object required errors are thrown. This is despite the fact
    that IE has downloaded the .js file and they are visisble in the cache
    (Temporary Internet Files). This problem only occurs if the .js file
    is not present in the cache, hence it happens when the user visits
    some site for the first time.

    Any pointers about that. Thanx in advance.

    Ali Asghar Safri
    ITIM Associates (Pvt) Ltd.
  • Lasse Reichstein Nielsen

    #2
    Re: XSL transformation and javascript inclusion problem of external .js files

    "Berislav Lopac" <berislav.lopac .l@duoplus.hr> writes:
    [color=blue]
    > Just change the above to:
    >
    > <script language="Javas cript" src="abc.js" defer="true"></script>[/color]

    Out of pedantism, I sugges you try to validate that. This will validate:

    <script type="text/javascript" src="abc.js" defer="defer"></script>

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...