Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
how do i go about getting xml from an aspx file into xslt? :-)
GetXmlDocumentByUrl wont work with me on this ..
hmm ... how to solve the UTF-16 to UTF-8 problem on my aspx file?
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
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
Where do i set this then? :-)
Just put it somewhere in your XSLT file, which generates the XML output for you.
Its not the XSLT file that generates my XML - its my ASCX(a macro inserted on an ASPX-file) file that generates my XML .. :-)
Argh sorry did not realise that. Then I'm not sure how you can go about and change it unfortunately.
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 .. :-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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 ..
hmm ... how to solve the UTF-16 to UTF-8 problem on my aspx file?
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
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.
Hope this helps
/Jan
Where do i set this then? :-)
Just put it somewhere in your XSLT file, which generates the XML output for you.
Its not the XSLT file that generates my XML - its my ASCX(a macro inserted on an ASPX-file) file that generates my XML .. :-)
Argh sorry did not realise that. Then I'm not sure how you can go about and change it unfortunately.
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 .. :-)
is working on a reply...