Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old October 10th, 2008, 02:46 PM
Member
 
Join Date: Sep 2006
Posts: 80
Default .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:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:asp="remove" xmlns:igchart="remove" xmlns:igsch="remove">
&lt;td class='rowDet' id="td_<xsl:value-of select='@name' />"&gt;
.Net2 don't work:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:asp="remove" xmlns:igchart="remove" xmlns:igsch="remove" xmlns:igtxt="remove">
&lt;td class='rowDet' id="td_<xsl:value-of select='@name' />"&gt;

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

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

Please Assist!

Regards
Reply
  #2  
Old October 10th, 2008, 08:10 PM
Moderator
 
Join Date: Mar 2006
Posts: 898
Default

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

Or, you could do it the long way:
Expand|Select|Wrap|Line Numbers
  1. <td class="rowdet>
  2.    <xsl:attribute name="id">
  3.       <xsl:value-of select="@name"/>
  4.    </xsl:attribute>
  5.  
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles