Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question: adding line of text to XML template

Status
Not open for further replies.

ahuacatlan

Programmer
Apr 22, 2006
5
0
0
US
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()" />
<xsl:eek:utput 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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top