Copied to clipboard

Flag this post as spam?

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


  • Jonas Høiby 62 posts 53 karma points
    Sep 24, 2009 @ 08:37
    Jonas Høiby
    0

    xml from aspx-file in xslt ?

    how do i go about getting xml from an aspx file into xslt? :-)

    GetXmlDocumentByUrl wont work with me on this ..

  • Jonas Høiby 62 posts 53 karma points
    Sep 24, 2009 @ 09:18
    Jonas Høiby
    0

    hmm ... how to solve the UTF-16 to UTF-8 problem on my aspx file?

  • Jonas Høiby 62 posts 53 karma points
    Sep 24, 2009 @ 09:30
    Jonas Høiby
    0

    correction ..

    when i look in my RTE where i have placed my maco with my usercontrol (which is giving me my XML) - it says UTF-8 ....

     

    but when i look at the page in my browser - it says UTF-16 ...

     

    how to solve this? :-s

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 24, 2009 @ 11:03
    Jan Skovgaard
    0

    Hi

    Maybe it has to do with your page not having the correct mime-type.

    Try using this http://our.umbraco.org/wiki/reference/umbracolibrary/changecontenttype and set your mime-type to actually be XML on you document.

    <xsl:value-of select="umbraco.library:ChangeContentType('text/xml')"/>

    Hope this helps

    /Jan

  • Jonas Høiby 62 posts 53 karma points
    Sep 24, 2009 @ 12:14
    Jonas Høiby
    0

    Where do i set this then? :-)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 24, 2009 @ 12:43
    Jan Skovgaard
    0

    Just put it somewhere in your XSLT file, which generates the XML output for you.

  • Jonas Høiby 62 posts 53 karma points
    Sep 24, 2009 @ 12:58
    Jonas Høiby
    0

    Its not the XSLT file that generates my XML - its my ASCX(a macro inserted on an ASPX-file) file that generates my XML .. :-)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Sep 24, 2009 @ 13:28
    Jan Skovgaard
    0

    Argh sorry did not realise that. Then I'm not sure how you can go about and change it unfortunately.

  • Jonas Høiby 62 posts 53 karma points
    Sep 24, 2009 @ 13:43
    Jonas Høiby
    0

    darn it ..

    hmm .. might be looking into other ways of getting the data into the xslt ..

    xslt extensions might be a reasonable answer to this .. just wished i would have realized this a little sooner .. :-)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies