How do I translate the below code into a xsl-compilable form?
What I wanted: return the element with the element name == CT AND the CT’s attribute == ‘person’.
The xsl I tried (but failed):
<xsl:if test="CT and @Name='person'">
Google keywords are not being very helpful when “And” is involved…
Thanks.
Appropriate XPath:
<xsl:value-of select="CT[@Name = 'person']" />Supposed XML:
XSLT:
Result:
Person