Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 880
  • Last Modified:

hexadecimal value 0x3c is illegal in XML attribute values.

getting the error on UL tag ..error of "<"
Character '<', hexadecimal value 0x3c is illegal in XML attribute values.      

<xsl:variable name="BeginList" select="string('<ul class="accordion"><div class="expand-all">Expand All</div><div class="collapse-all">Collapse All</div></ul>')"/></xsl:variable>
 
  <xsl:variable name="EndList" select="string('</ul>')" /></xsl:variable>
0
mikechoksi
Asked:
mikechoksi
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
Yep.  &lt; and &gt; are what you want.  See here:  http://msdn.microsoft.com/en-us/library/ms145315%28v=sql.90%29.aspx
0
 
ahoffmannCommented:
after you fixed the XML entity issue (wether user &lt; or &#x3c;) you'll most like run into next problem as you incorrectly mixed markups: in particular you use nested " without properly escaping them
where "proper escaping" depends on the XML/XSL parser you use
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now