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.
XSLT replace is deterministic and does string manipulation that replaces a sequence of characters defined inside a string that matches an expression. In simple terms, it does string substitution in the specified place by replacing any substrings. Fn: replace function is not available in XSLT1.
<xsl:if test="product_name='3" Magnifier'">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With