U4-2949 - use Umbraco xslt macro to generate xml, it can't be view by IE.

Created by esunxray 26 Sep 2013, 07:06:51 Updated by Sebastiaan Janssen 26 Sep 2013, 08:15:12

Normally, a xml file can be opened with IE, IE can view the the whole tree structure of the xml file. I make a xslt file, then make a template file only include the macro which refer to the xslt file. then I create a node used this template.

I use IE to view this page and saved the page as a xml file, the structure of the file can'b be listed.

]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml umbraco.library">

<xsl:output method="xml" media-type="string" standalone="yes" encoding="UTF-8" indent="yes" omit-xml-declaration="no" cdata-section-elements="CRUSER DOCTITLE DOCCONTENT DOCHTMLCON CHNLNAME"/>

<xsl:template match="/"> 961170 0 20 user 2013-09-26 11:59:01 0 0 测试信息 测试信息 测试信息 4 2013-09-26 11:58:00 </xsl:template>

1 Attachments

Download generated by umbraco.xml

Comments

Sebastiaan Janssen 26 Sep 2013, 07:25:14

This is not a bug in Umbraco, you create the XML file. Changing the encoding from utf-16 to utf-8 seems to help.


Sebastiaan Janssen 26 Sep 2013, 07:26:16

Also remove the empty line at the top of the file.


esunxray 26 Sep 2013, 07:29:55

remove the empty line at the top of the file is useless. the file still can't be viewed by IE.


Sebastiaan Janssen 26 Sep 2013, 08:15:12

Change utf-16 to utf-8 too. For further discussion use http://our.umbraco.org


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: