Raj
Raj

Reputation: 273

XSLT: escaping double quote

I have XSLT code like:

<xsl:if test="product_name='3" Magnifier'">
             <attribute name="Business Unit">
             Consumer
             </attribute>   
</xsl:if>

the value 3" Magnifier (has quote), I couldn't compare it with product name because of quote ambiguity. So how to escape double quote & resolve ambiguity.

Thanks.

Upvotes: 17

Views: 24016

Answers (1)

michael.hor257k
michael.hor257k

Reputation: 117175

<xsl:if test="product_name='3&quot; Magnifier'">

Upvotes: 24

Related Questions