One way to do this:
<xsl:variable name="apos" select='"'"'/>
<xsl:for-each select="country[nation=concat('India', $apos, 's')]">
The problem here is twofold:
- XSLT does not specify how to escape characters in strings. Therefore,
'India\'s'it is not an option. - You must go through two different levels of assessment.
It:
- XML XML Correctness . The XML document that consists of your XSLT program must be well-formed. You cannot violate XML rules.
- XSLT: ( XML DOM) XSLT.
:
<xsl:for-each select="country[nation='India's']">
<xsl:for-each select="country[nation='India's']">
XML, XSLT, ( DOM) country[nation='India's'], XPath.
:
<xsl:for-each select="country[nation=concat('India', "'", 's')]">
<xsl:for-each select="country[nation=concat("India", "'", "s")]">
XML-. XSLT (!), ( XSLT ) country[nation=concat('India', "'", 's')], , XPath.
, 1, 2. - , . :
<xsl:for-each select="country[nation=concat('India', "'", 's')]">
XSLT country[nation=concat('India', "'", 's')].
, " " .