I have been learning umbraco for few weeks .. so far it seems good.. but i came across default xslt with some Package installation.. even though i m using that Xslt and getting wat i need.. i cant understand it clearly.. can anyone provide some links such that i can get familiar with xslt along with using umbraco library in Xslt..
Should show us some xslt and show us what parts you don't fully understand... and we could help a bit more! Anyway, you can find more info on any of the xslt extensions in the wiki section (starting point here)
I think the best way to learn is to look at the examples in the default XSLT files, also if you are more comfortable with c# than XSLT you might want to consider Razor, if you do consider Razor then have a look at Sebastians great package here http://our.umbraco.org/projects/developer-tools/cultiv-razor-examples this has about every Razor example you should need.
get to know abt XSLT with umbraco library
Hi
I have been learning umbraco for few weeks .. so far it seems good.. but i came across default xslt with some Package installation.. even though i m using that Xslt and getting wat i need.. i cant understand it clearly.. can anyone provide some links such that i can get familiar with xslt along with using umbraco library in Xslt..
dwarakesh,
Should show us some xslt and show us what parts you don't fully understand... and we could help a bit more! Anyway, you can find more info on any of the xslt extensions in the wiki section (starting point here)
Cheers,
/Dirk
I think the best way to learn is to look at the examples in the default XSLT files, also if you are more comfortable with c# than XSLT you might want to consider Razor, if you do consider Razor then have a look at Sebastians great package here http://our.umbraco.org/projects/developer-tools/cultiv-razor-examples this has about every Razor example you should need.
Rich
Hi Dirk
This is part of Xslt which is used in multi level navigation
<xsl:if test="count(./* [@isDoc and string(umbracoNaviHide) != '1']) > 0">
<ul>
<xsl:for-each select="./* [@isDoc and string(umbracoNaviHide) != '1']">
<li>
<xsl:attribute name="class">
<xsl:if test="$currentPage/descendant::* [@level=1]">
<xsl:text>current</xsl:text>
</xsl:if>
</xsl:attribute>
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a></li>
</xsl:for-each>
</ul>
</xsl:if>
Can u clear abt the Bolded If loop in above XSLT.
is working on a reply...