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. XSL Transform error/question

XSL Transform error/question

Scheduled Pinned Locked Moved XML / XSL
databasexmlquestionbeta-testinghelp
2 Posts 1 Posters 3 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
    Rhoam
    wrote on last edited by
    #1

    Greetings, Just when I thought I was getting better at XML/XSL I come across an article on MSDN with an XSL transform that has me puzzled. The basic premise is to use a DataAdapter to attach to a SQL DB, and DataSet to hold the data and and XSL to transform that data into an XML island for consumption by a control (almost exactly what I am trying to do). Here is the portion of the XSL in question: " OrderTotal=" "/> And here is the exception that is thrown by this section of XSL: <', hexadecimal value 0x3C, is an invalid attribute character. Line 22, position 19. So what exactly is this for-each statement trying to do and why is it failing? Your feedback would be greatly appreciate! Rhoam

    R 1 Reply Last reply
    0
    • R Rhoam

      Greetings, Just when I thought I was getting better at XML/XSL I come across an article on MSDN with an XSL transform that has me puzzled. The basic premise is to use a DataAdapter to attach to a SQL DB, and DataSet to hold the data and and XSL to transform that data into an XML island for consumption by a control (almost exactly what I am trying to do). Here is the portion of the XSL in question: " OrderTotal=" "/> And here is the exception that is thrown by this section of XSL: <', hexadecimal value 0x3C, is an invalid attribute character. Line 22, position 19. So what exactly is this for-each statement trying to do and why is it failing? Your feedback would be greatly appreciate! Rhoam

      R Offline
      R Offline
      Rhoam
      wrote on last edited by
      #2

      Ok, that didn't come out right. I've changed the brackets to <- and -> so the code would show. Sorry about that. <-xsl:for-each select="MyDataset/Table"-> <-xsl:text disable-output-escaping = "yes"-> <-z:row LastName="<-/xsl:text-> <-xsl:value-of select="LastName"/-> <-xsl:text->" OrderTotal="<-/xsl:text-> <-xsl:value-of select="OrderTotal"/-> <-xsl:text disable-output-escaping = "yes"->"/><-/xsl:text-> <-/xsl:for-each->

      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