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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Can Javascript be used to alter XSL ?

Can Javascript be used to alter XSL ?

Scheduled Pinned Locked Moved Web Development
xmljavascripttutorialquestion
3 Posts 3 Posters 4 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.
  • R Offline
    R Offline
    Red_Wizard_Shot_The_Food
    wrote on last edited by
    #1

    If i have an XML document transformed by XSL to show a table. Can i use javascript so that when a value is selected from a drop down list the XSL changes to filter the table? so for example changing a drop down list value from 10 to 20 changes this: <xsl:for-each select="catalog/cd"> <xsl:if test="price > 10"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:if> </xsl:for-each> into this <xsl:for-each select="catalog/cd"> <xsl:if test="price > 20"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:if> </xsl:for-each> My Javascript is very rusty (I use it so rarley of late).. could any one point me towards links on doing somthim like this please? Thanks.

    S 1 Reply Last reply
    0
    • R Red_Wizard_Shot_The_Food

      If i have an XML document transformed by XSL to show a table. Can i use javascript so that when a value is selected from a drop down list the XSL changes to filter the table? so for example changing a drop down list value from 10 to 20 changes this: <xsl:for-each select="catalog/cd"> <xsl:if test="price > 10"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:if> </xsl:for-each> into this <xsl:for-each select="catalog/cd"> <xsl:if test="price > 20"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:if> </xsl:for-each> My Javascript is very rusty (I use it so rarley of late).. could any one point me towards links on doing somthim like this please? Thanks.

      S Offline
      S Offline
      Shajeel
      wrote on last edited by
      #2

      check this article http://www.webdotdev.com/nvd/client-side/javascript/xslt-and-javascript.html[^]

      Regards Shajeel

      D 1 Reply Last reply
      0
      • S Shajeel

        check this article http://www.webdotdev.com/nvd/client-side/javascript/xslt-and-javascript.html[^]

        Regards Shajeel

        D Offline
        D Offline
        David Domingues
        wrote on last edited by
        #3

        could you rewrite the link please. this page doesn't seem to exist.

        Contact me! Please feel free to visit my site

        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