Mega Code Archive

 
Categories / XML Tutorial / Xpath
 

Child of title element for the second completeTrainingCourse is

File: Transform.xslt <?xml version = "1.0"?> <xsl:stylesheet version="1.0"   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">   <xsl:template match="/product">     <xsl:value-of       select="//child::completeTrainingCourse[ 2 ]/title" />   </xsl:template> </xsl:stylesheet>