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