ఎక్స్ఎస్ఎల్టి <xsl:apply-templates> ఎలమెంట్

<xsl:apply-templates> కెలియది ఒక టెమ్ప్లేట్ ని ప్రస్తుత కెలియది లేదా ప్రస్తుత కెలియది ఉపకెలియదులకు ఆపాదించవచ్చు.

<xsl:apply-templates> కెలియది

<xsl:apply-templates> కెలియది ఒక టెమ్ప్లేట్ ని ప్రస్తుత కెలియది లేదా ప్రస్తుత కెలియది ఉపకెలియదులకు ఆపాదించవచ్చు.

మేము <xsl:apply-templates> కెలియది ఒక సెలెక్ట్ అట్రిబ్యూట్ జోడించిన పద్ధతిలో అది కేవలం అట్రిబ్యూట్ విలువకు సరిపోయే ఉపకెలియదులను ప్రాసెస్ చేస్తుంది. మేము సెలెక్ట్ అట్రిబ్యూట్ ద్వారా ఉపకెలియదులను ప్రాసెస్ చేయే క్రమాన్ని నిర్ణయించవచ్చు.

దిగువ ఆక్సెల్ స్టైల్ చూడండి:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2> 
<xsl:apply-templates/> 


</xsl:template>

<xsl:apply-templates select="title"/> <xsl:apply-templates select="artist"/> </p> </xsl:template> <xsl:template match="title"> శీర్షిక: <span style="color:#ff0000"> <xsl:value-of select="."/></span> <br /> </xsl:template> <xsl:template match="artist"> ఆర్టిస్ట్: <span style="color:#00ff00"> <xsl:value-of select="."/></span> <br /> </xsl:template> </xsl:stylesheet>

ఈ XML ఫైల్ ని చూడండిఈ XSL ఫైల్ ని చూడండిఫలితాలను చూడండి