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. Passing a List object to an xslt file

Passing a List object to an xslt file

Scheduled Pinned Locked Moved XML / XSL
xmldatabasehelpquestion
2 Posts 2 Posters 0 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
    Ryno Burger
    wrote on last edited by
    #1

    Hi guys, If possible do any of you know how I can pass a List object to my xslt which will form part of my SQL query? This is what I'm tryin to achevive: First of all I will have a class being serialized and then deserialized using XML serialized in the case Client.cs. In the class I have a List property which will return a list of Client names: public List ClientNames Now in the next step I have an xslt that will transform my deserialized class and which will use the class properties as parameters to my SQL query. The code within the xsl are as follows: SELECT * FROM Client WHERE Client.ClientFirstName IN ('Test', 'Ben', 'Tom') Now what I'm trying to achieve is to pass the List object to my SQL IN clause using xslt... is that possible? Any help will be greatly appreciated. R

    L 1 Reply Last reply
    0
    • R Ryno Burger

      Hi guys, If possible do any of you know how I can pass a List object to my xslt which will form part of my SQL query? This is what I'm tryin to achevive: First of all I will have a class being serialized and then deserialized using XML serialized in the case Client.cs. In the class I have a List property which will return a list of Client names: public List ClientNames Now in the next step I have an xslt that will transform my deserialized class and which will use the class properties as parameters to my SQL query. The code within the xsl are as follows: SELECT * FROM Client WHERE Client.ClientFirstName IN ('Test', 'Ben', 'Tom') Now what I'm trying to achieve is to pass the List object to my SQL IN clause using xslt... is that possible? Any help will be greatly appreciated. R

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      I find your post unclear. 1) Are you trying to generate a SQL statement using XSLT? if YES then... 2) as your data source for some of the SQL values you are using XML serialized from an object defined in Client.cs?

      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