Hi,

Can any one help me. Please Explain this code.

<div id="toolMenu">
				<ul>
					<xsl:for-each select="categories/category">
						<xsl:sort select="@order" data-type="number"/>
						<xsl:apply-templates select=".">
							<xsl:with-param name="content" select="'false'"/>
						</xsl:apply-templates>
					</xsl:for-each>
					<!-- Commented to Remove help -->
					<!--<xsl:if test="//tool/@hasHelp='true'">
						<li>
							 <a accesskey="h" href="javascript:;" class="icon-sakai-help">
								<xsl:attribute name="onclick">window.open('<xsl:value-of select="config/helpUrl"/>','Help','resizable=yes,toolbar=no,scrollbars=yes, width=800,height=600')</xsl:attribute>
								<xsl:attribute name="onkeypress">window.open('<xsl:value-of select="config/helpUrl"/>','Help','resizable=yes,toolbar=no,scrollbars=yes, width=800,height=600')</xsl:attribute>Help</a>
						</li>
					</xsl:if>-->
				</ul>
			</div>

Mainly about this code

<xsl:for-each select="categories/category">
						<xsl:sort select="@order" data-type="number"/>
						<xsl:apply-templates select=".">
							<xsl:with-param name="content" select="'false'"/>
						</xsl:apply-templates>
					</xsl:for-each>

Here i this i think some group of information this printing on web page.
Why do we use
<xsl:apply-templates>
<xsl:with-param>

From for each loop I am getting some list i need on item one of those. Who do i get that? Please help me........ I appreciate your help.


Regards
Bhanu.

display the compelte xml(html)file and xsl file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.