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. XPath expression not working in xslt stylesheet

XPath expression not working in xslt stylesheet

Scheduled Pinned Locked Moved XML / XSL
xmlcsharpasp-netregexperformance
4 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.
  • S Offline
    S Offline
    suzyb
    wrote on last edited by
    #1

    I have the following expression in in my xslt stylesheet /Products/DTA[name] to match only those nodes that have a name node as a child. This works if I use the selectNodes function of the XmlDocument in ASP.NET but not when its in the xslt document. Can anyone shed any light on this? Thanks SuzyB If I had a better memory I would remember more.

    U 3 Replies Last reply
    0
    • S suzyb

      I have the following expression in in my xslt stylesheet /Products/DTA[name] to match only those nodes that have a name node as a child. This works if I use the selectNodes function of the XmlDocument in ASP.NET but not when its in the xslt document. Can anyone shed any light on this? Thanks SuzyB If I had a better memory I would remember more.

      U Offline
      U Offline
      User 956892
      wrote on last edited by
      #2

      you have to use if you want test for its existence and select

      1 Reply Last reply
      0
      • S suzyb

        I have the following expression in in my xslt stylesheet /Products/DTA[name] to match only those nodes that have a name node as a child. This works if I use the selectNodes function of the XmlDocument in ASP.NET but not when its in the xslt document. Can anyone shed any light on this? Thanks SuzyB If I had a better memory I would remember more.

        U Offline
        U Offline
        User 956892
        wrote on last edited by
        #3

        You have to use If you like test for the existence of the node Raj

        1 Reply Last reply
        0
        • S suzyb

          I have the following expression in in my xslt stylesheet /Products/DTA[name] to match only those nodes that have a name node as a child. This works if I use the selectNodes function of the XmlDocument in ASP.NET but not when its in the xslt document. Can anyone shed any light on this? Thanks SuzyB If I had a better memory I would remember more.

          U Offline
          U Offline
          User 956892
          wrote on last edited by
          #4

          You have to use If you like test for the existence of the node Raj

          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