.Net2 xslt does not like the &lt; "<" - &gt; ">"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ismailc
    New Member
    • Sep 2006
    • 200

    .Net2 xslt does not like the &lt; "<" - &gt; ">"

    Hi, I need help please.

    Update system to to new version & moved on to .Net2
    But now my code that worked in my .Net1 xslt does not work.

    .Net1 fine:
    <xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:asp="remo ve" xmlns:igchart=" remove" xmlns:igsch="re move">
    &lt;td class='rowDet' id="td_<xsl:val ue-of select='@name' />"&gt;
    .Net2 don't work:
    <xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:asp="remo ve" xmlns:igchart=" remove" xmlns:igsch="re move" xmlns:igtxt="re move">
    &lt;td class='rowDet' id="td_<xsl:val ue-of select='@name' />"&gt;

    I had to change it back to: <td class='rowDet'>

    Is there a new code for the "<" ">"?

    Please Assist!

    Regards
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Use braces: {}
    <td class="rowdet" id="{@name}">

    Or, you could do it the long way:
    [code=xml]
    <td class="rowdet>
    <xsl:attribut e name="id">
    <xsl:value-of select="@name"/>
    </xsl:attribute>
    [/code]

    Comment

    Working...