Return to doc.sitecore.com

1.  XSL Crash Course
Prev Next

XSL is an XML vocabulary intended to provide a declarative, side-effect-free processing model for XML data.  When used in the appropriate context, XSL can make XML processing tasks extremely simple, but sometimes requires an unusual approach to problem solving vs. procedural and object oriented programming, which may not always be suited to intensive logic in which cases .NET invoked by using XSL Extensions, Method or Webcontrol Renderings may be more appropriate. 

XSL transformations frequently take advantage of the context node, which indicates where in the XML data source processing is currently taking place, to shorten XPath expressions and take advantage of relationships between nodes.  The context node must always be considered, and may be affected by certain XSL expressions.

As it is neither procedural nor object-oriented, XSL is a new way of thinking for most developers.  This document does not attempt to provide best practices in XSL coding, but shows simple techniques for using XSL with Sitecore.  Sitecore XSL Extensions automatically retrieve values for the appropriate language based on the user’s context.


Prev Next