Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Embed JavaScript into XSL

Embed JavaScript into XSL

Scheduled Pinned Locked Moved XML / XSL
javascripttoolsxml
3 Posts 2 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Julz
    wrote on last edited by
    #1

    Okay - I am fairly new to XSL and am trying to embed some JavaScript into an existing XSL stylesheet. The JS is to prevent the refresh from blinking. This is a really long post - just a warning!! This is a sample of the XSL where I need to embed the script:

    Hole

    Par

    Yardage

    Scoring Avg

    Rank

    Avg Over/Under Par

    Eagles

    Birdies

    Pars

    Bogeys

    Double Bogeys

    Other

    E 1 Reply Last reply
    0
    • J Julz

      Okay - I am fairly new to XSL and am trying to embed some JavaScript into an existing XSL stylesheet. The JS is to prevent the refresh from blinking. This is a really long post - just a warning!! This is a sample of the XSL where I need to embed the script:

      Hole

      Par

      Yardage

      Scoring Avg

      Rank

      Avg Over/Under Par

      Eagles

      Birdies

      Pars

      Bogeys

      Double Bogeys

      Other

      E Offline
      E Offline
      Erik Westermann
      wrote on last edited by
      #2

      Simple - here's how you can embed JavaScript into an XSL document... <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ... <xsl:text disable-output-escaping="yes"> <![CDATA[ <script> // your code goes here </script> ]]> </xsl:text> ... </xsl:stylesheet> HTH! Essam - Author, JScript .NET Programming
      ...and a bunch of articles around the Web

      J 1 Reply Last reply
      0
      • E Erik Westermann

        Simple - here's how you can embed JavaScript into an XSL document... <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ... <xsl:text disable-output-escaping="yes"> <![CDATA[ <script> // your code goes here </script> ]]> </xsl:text> ... </xsl:stylesheet> HTH! Essam - Author, JScript .NET Programming
        ...and a bunch of articles around the Web

        J Offline
        J Offline
        Julz
        wrote on last edited by
        #3

        Thanks - I'll give it a try. Julia

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups