Use Umbraco's XSLT transformer from custom user control macro
Hi all.
I have created a user control where I will be pulling some data from a webservice (4 different calls), working with the data, and outputting a serialized class through XSLT to output HTML onto the page.
I am trying out Umbraco, and in our previous projects we have written our own simple XSLT transformer for this issue.
But I would like to be able to run through the Umbraco XSLT functions, and use the currentNode parameter and so forth.
Because of the lack of answers, maby there is a different spin on this. Can I somehow use the umbraco librariy (like NiceUrl) when I do my own XSLT transformation?
you could create an xslt-extension for this. This way, you make a call to the extension (which does the calls to the webservices and returns xml) and then use plain xslt like you normally would in umbraco.
Use Umbraco's XSLT transformer from custom user control macro
Hi all.
I have created a user control where I will be pulling some data from a webservice (4 different calls), working with the data, and outputting a serialized class through XSLT to output HTML onto the page.
I am trying out Umbraco, and in our previous projects we have written our own simple XSLT transformer for this issue.
But I would like to be able to run through the Umbraco XSLT functions, and use the currentNode parameter and so forth.
How would I go about doing that ?
Because of the lack of answers, maby there is a different spin on this. Can I somehow use the umbraco librariy (like NiceUrl) when I do my own XSLT transformation?
Hi Arni,
you could create an xslt-extension for this. This way, you make a call to the extension (which does the calls to the webservices and returns xml) and then use plain xslt like you normally would in umbraco.
Does this help?
Peter
This set me to find out some more, and I found this forum posting: http://forum.umbraco.org/yaf_postst4901_Using-the-umbraco-library-in-an-xslt-file-loaded-into-a-component.aspx.
I changed my code a bit, added the umbraco.library to the argument list being sent into my transformer, ,and things worked :)
.ág
is working on a reply...