KitWest Posted September 20, 2010 Share Posted September 20, 2010 Hi, I saw this example on http://www.w3schools.com/xsl/xsl_if.asp, where the greater-than symbol was URL-encoded to ampersand-gt-semicolon:<xsl:if test="price > 10">I found that both forms work in the Try-It page.Is there a preferred/recommended way to code a greater-than or less-than symbol in the xslt syntax?Thanks! Link to comment Share on other sites More sharing options...
Martin Honnen Posted September 20, 2010 Share Posted September 20, 2010 An XSLT stylesheet is an XML document and thus needs to adhere to XML syntax. With XML you need to escape the less than sign '<' as '<' and the ampersand '&' as '&'. The greater than sign does not need to be escaped but often is. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.