Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Syed Shakir Hasin 6 posts 26 karma points
    Jun 22, 2011 @ 07:21
    Syed Shakir Hasin
    0

    cannot find script or external object that implements prefix umbraco.library

    cannot find script or external object that implements prefix umbraco.library

  • Syed Shakir Hasin 6 posts 26 karma points
    Jun 22, 2011 @ 07:33
    Syed Shakir Hasin
    0

    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?

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 22, 2011 @ 08:16
    Kim Andersen
    0

    Hi Sayed

    Could you try to create the XSLT-file from inside Umbraco back office? Does this help out?

    /Kim A

  • Syed Shakir Hasin 6 posts 26 karma points
    Jun 22, 2011 @ 08:34
    Syed Shakir Hasin
    0

    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.

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 22, 2011 @ 09:04
    Kim Andersen
    0

    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

  • Syed Shakir Hasin 6 posts 26 karma points
    Jun 22, 2011 @ 11:07
    Syed Shakir Hasin
    0

    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

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 22, 2011 @ 12:21
    Kim Andersen
    0

    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

  • Syed Shakir Hasin 6 posts 26 karma points
    Jun 22, 2011 @ 12:36
    Syed Shakir Hasin
    0

    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

  • Kim Andersen 1447 posts 2196 karma points MVP
    Jun 22, 2011 @ 22:59
    Kim Andersen
    0

    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

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Jun 23, 2011 @ 01:08
    Chriztian Steinmeier
    0

    Hi Syed,

    Any reason you're not just getting those values in the JavaScript?

    EX:

    document.location.host // => "our.umbraco.org"
    document.location.href // => "http://our.umbraco.org/whatever?param=value"
    

    /Chriztian

  • Syed Shakir Hasin 6 posts 26 karma points
    Jun 30, 2011 @ 13:38
    Syed Shakir Hasin
    0

    Thanx Chriztian.I just forgot to use this.It solved my problem.

     

    Thanx to everyone for there response

Please Sign in or register to post replies

Write your reply to:

Draft