ahuacatlan
Programmer
Hi,
I'm not familiar with XML, but need to add a simple line of text i.e. a <p> to an existing XML template:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:sw=" extension-element-prefixes="sw">
<sw:settings>
<sw:general>
<sw:context>order</sw:context>
</sw:general>
</sw:settings>
<!-- Use the base Standard Template -->
<xsl:import href="System\Standard Order Template" />
<!-- Specify the template properties -->
<xsl:variable name="templateType" select="'invoice'" />
<xsl:variable name="showThumbnails" select="false()" />
<xslutput method="html" encoding="utf-8" />
</xsl:stylesheet>
The problem is that when I add a line of text -- anywhere within this template -- it returns the error: The data at the root level is invalid
with the line number where I added my <p>text</p>
I'm not familiar with XML, but need to add a simple line of text i.e. a <p> to an existing XML template:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:sw=" extension-element-prefixes="sw">
<sw:settings>
<sw:general>
<sw:context>order</sw:context>
</sw:general>
</sw:settings>
<!-- Use the base Standard Template -->
<xsl:import href="System\Standard Order Template" />
<!-- Specify the template properties -->
<xsl:variable name="templateType" select="'invoice'" />
<xsl:variable name="showThumbnails" select="false()" />
<xslutput method="html" encoding="utf-8" />
</xsl:stylesheet>
The problem is that when I add a line of text -- anywhere within this template -- it returns the error: The data at the root level is invalid
with the line number where I added my <p>text</p>