But I can not recreate the xslt-file due to some project limitation.And frankly speaking I dont know what is Umbraco back office and very much new to xslt also.
Ohh sorry I didn't explain what Umbraco office is. I just mean when you log into Umbraco. In the backend of your site where you manage your content, media, templates, macros, xslt's etc.
In the developer section you should be able to create new XSLT-files by right-clicking the XSLT folder. But if you haven't got the rights to do this, this of course isn't a solution to your problem.
Thing is like that the XSLT pages are already created and there is nothing integrated with them called "Umbraco".While searchnig for my requirement I came through this umbraco library.In my application which is already developed I have to get the URL and SERVER_NAME in javascript which is inside an XSLT page.I can not use <% Request.ServerVariables["URL"]%> for this as in XSLT it is not allowed to use <%%>.So I found the above line of code that I copied and pested in my xslt and got that error.If any one have Idea then plz help me.
When you say that there's nothing integrated called "Umbraco" - Does that mean that you are not using Umbraco as the CMS? Are you trying to do this in your own web application outside of Umbraco?
First of All thanx for ur reply.Yes I am trying to do it in my own web application.While searchnig for my requirement I came through this umbraco library.In my application which is already developed I have to get the URL and SERVER_NAME in javascript which is inside an XSLT page.I can not use <% Request.ServerVariables["URL"]%> for this, as in XSLT it is not allowed to use <%%>.So I found the above line of code that I copied and pested in my xslt and got that error.Is there any dll that I can copy in my bin folder.PLease NOTE I have only my xslt in which I can code.Even I can not use my c# files.whatever I have to do I have to in my xslt.
I'm not sure that you can use the umbraco.library XSLT extensions outside of a Umbraco project. Well, maybe you can, but I haven't tried this before so I do't know how you can make it work (if it's possible at all). Sorry...
cannot find script or external object that implements prefix umbraco.library
cannot find script or external object that implements prefix umbraco.library
cannot find script or external object that implements prefix umbraco.library
I am getting the above error
I have added>
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="umbraco.library">
and then trying to get the serverVariable in an xsl variable
<xsl:variable name="SerName" select="umbraco.library:RequestServerVariable('SERVER_NAME')"></xsl:variable>
do I need to add any dll or something?
Hi Sayed
Could you try to create the XSLT-file from inside Umbraco back office? Does this help out?
/Kim A
Hi Kim,
Thanx for ur reply.
But I can not recreate the xslt-file due to some project limitation.And frankly speaking I dont know what is Umbraco back office and very much new to xslt also.
Ohh sorry I didn't explain what Umbraco office is. I just mean when you log into Umbraco. In the backend of your site where you manage your content, media, templates, macros, xslt's etc.
In the developer section you should be able to create new XSLT-files by right-clicking the XSLT folder. But if you haven't got the rights to do this, this of course isn't a solution to your problem.
/Kim A
Hi Kim,
Thing is like that the XSLT pages are already created and there is nothing integrated with them called "Umbraco".While searchnig for my requirement I came through this umbraco library.In my application which is already developed I have to get the URL and SERVER_NAME in javascript which is inside an XSLT page.I can not use <% Request.ServerVariables["URL"]%> for this as in XSLT it is not allowed to use <%%>.So I found the above line of code that I copied and pested in my xslt and got that error.If any one have Idea then plz help me.
Thanx In Advance
Hi again Sayed
When you say that there's nothing integrated called "Umbraco" - Does that mean that you are not using Umbraco as the CMS? Are you trying to do this in your own web application outside of Umbraco?
/Kim A
Hi Kim,
First of All thanx for ur reply.Yes I am trying to do it in my own web application.While searchnig for my requirement I came through this umbraco library.In my application which is already developed I have to get the URL and SERVER_NAME in javascript which is inside an XSLT page.I can not use <% Request.ServerVariables["URL"]%> for this, as in XSLT it is not allowed to use <%%>.So I found the above line of code that I copied and pested in my xslt and got that error.Is there any dll that I can copy in my bin folder.PLease NOTE I have only my xslt in which I can code.Even I can not use my c# files.whatever I have to do I have to in my xslt.
Thanx
Hmm... okay.
I'm not sure that you can use the umbraco.library XSLT extensions outside of a Umbraco project. Well, maybe you can, but I haven't tried this before so I do't know how you can make it work (if it's possible at all). Sorry...
/Kim A
Hi Syed,
Any reason you're not just getting those values in the JavaScript?
EX:
/Chriztian
Thanx Chriztian.I just forgot to use this.It solved my problem.
Thanx to everyone for there response
is working on a reply...