@Dirk: Great Dirk, thanks for the reference. Unfortinatelly, I tried this at first, but those methods cannot recognize "the references" to umbraco library methods used in my XSLT. Thats why I was sure that umbraco core took care of properly running xslt by their apis ;)
@Tim: You rock... works like a charm. Thanks a billion.
Is there umbraco API to handle XSL transformation from code behind?
Hi folks,
what I actually want to do is to use one of the XSLT files (i regularly use in macros) to apply on umbraco content xml tree, but from codebehind.
Anyone tried this before?
Nikola,
.net has pleny to api to handle xslt transformations. I suggest to perform a search on msdn on how to apply a transformation on an xml.
Here's a first reference on xslt transformation that should het you started: http://msdn.microsoft.com/en-us/library/system.xml.xsl.xslcompiledtransform.aspx
Cheers,
/Dirk
Comment author was deleted
Sure, that pretty easy, check out the sourcecode for the locator package on codeplex
http://locator4umbraco.codeplex.com/
Comment author was deleted
Should be something like:
umbraco.macro.GetXsltTransformResult(content, umbraco.macro.getXslt(ResultsXslt));
Comment author was deleted
Where content is umbraco.content.Instance.XmlContent</span>
And ResultsXslt is just the name of the xslt file in your /xslt folder
@Dirk: Great Dirk, thanks for the reference. Unfortinatelly, I tried this at first, but those methods cannot recognize "the references" to umbraco library methods used in my XSLT. Thats why I was sure that umbraco core took care of properly running xslt by their apis ;)
@Tim: You rock... works like a charm. Thanks a billion.
is working on a reply...