i'm new in xslt kind of things please help me convert below code into xslt format
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@{
//get all children of type 'slide_item'
var slides = @CurrentPage.Children.Where("DocumentTypeAlias == \"slide_item\"");
}
<div class="slider">
@foreach (var slide in @slides) {
//Fallback: Ignore slide when no image was uploaded,
//else the slide would cause a server error.
if(@slide.image != null) {
var image = Umbraco.Media(@slide.image);
<div class="slide">
<img alt="@slide.name" src="@image.Url">
</div>
}
}
</div>
Convert MVC razor code into xslt code
Hi
i'm new in xslt kind of things please help me convert below code into xslt format
Hi Sahadev
Why do you need to convert this pretty code to XSLT?
Alex
Hi Alex ,
First of all thanks for your response
i want to convert it because i'm using Umbraco 6.1.6 with webforms so i think razor not supported in it that's why i want to convert in into xlst
thanks
sahadev
its working in umbraco 6 also
is working on a reply...