You need to sign in to do that
Don't have an account?

Extra content at the end of the document using contenetType="text/xml" on visualforce page
Hello All,
I am developed vf page for Salesforce CPQ quote template content. I have used visualforce page attribute contentType="text/xml" as per the requirement. but I am getting an error:
This page contains the following errors: error on line 76 at column 13: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Here is the code of my vf page
Error Screen:

Can anybody suggest where exactly I did wrong..!
Welcome to your suggestion!
Thanks,
Nilesh
I am developed vf page for Salesforce CPQ quote template content. I have used visualforce page attribute contentType="text/xml" as per the requirement. but I am getting an error:
This page contains the following errors: error on line 76 at column 13: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Here is the code of my vf page
<apex:page controller="vfTemplateContent1ForQLController" contentType="text/xml" showHeader="false" sidebar="false"> <block> <table table-layout="fixed" width="100%"> <!--caption>Delivery slots:</caption--> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958"> <table-cell background-color="#ffffff"><block> </block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Description</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Unit Qty</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Unit Type</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Unit Qty</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Unit Type</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Unit Price</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Tax</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>Total</block></table-cell> <table-cell background-color="#ffffff"><block> </block></table-cell> </table-row> <table-body> <apex:repeat value="{!quotLineList}" var="ql"> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#D5D8DC" style="{!IF(OR(ql.Day__c == null || ql.Day__c == '0'), 'display: none;', '')}"> <table-cell scope="row" display-align="center" border="1px solid white" rowspan="1" colspan="8" style="{!IF(OR(ql.Day__c == null || ql.Day__c == '0'), 'display: none;', '')}"><block>Day {!ql.Day__c}</block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#C4D9F5" > <table-cell scope="row" display-align="center" border="1px solid white" rowspan="1" colspan="8" ><block>{!ql.SBQQ__ProductFamily__c}</block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958"> <table-cell display-align="center" border="1px solid white" scope="row" rowspan="1"><block>{!ql.SBQQ__ProductName__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>{!ql.Number_of_Units_I__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>{!ql.Unit_Type1__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>{!ql.Number_of_Units_II__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block>{!ql.Unit_Type2__c}</block></table-cell> <table-cell display-align="center" border="1px solid white" style="{!IF(OR(ql.SBQQ__NetPrice__c == null || ql.SBQQ__NetPrice__c == 0), 'display: none;', '')}"><block>{!ql.SBQQ__NetPrice__c}</block></table-cell> <table-cell display-align="center" border="1px solid white" style="{!IF(OR(ql.SBQQ__NetPrice__c == null || ql.SBQQ__NetPrice__c == 0), 'display: none;', '')}"><block>{!ql.Sales_Tax__c}</block></table-cell> <table-cell display-align="center" border="1px solid white" style="{!IF(OR(ql.SBQQ__NetPrice__c == null || ql.SBQQ__NetPrice__c == 0), 'display: none;', '')}"><block>{!ql.SBQQ__NetTotal__c}</block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958" style="{!IF(ql.Minimum_Qty__c == null, 'display: none;', '')}"> <!--td>{!ql.SBQQ__ProductFamily__c}</td--> <table-cell display-align="center" border="1px solid white" scope="row" ><block>Minimum:</block></table-cell> <table-cell display-align="center" border="1px solid white" colspan="4"><block>{!ql.Minimum_Qty__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958" style="{!IF(ql.Maximum_Qty__c == null, 'display: none;', '')}"> <table-cell display-align="center" border="1px solid white" scope="row" ><block>Maximum:</block></table-cell> <table-cell display-align="center" border="1px solid white" colspan="4"><block>{!ql.Maximum_Qty__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958" style="{!IF(ql.Includes__c == null, 'display: none;', '')}"> <table-cell display-align="center" border="1px solid white" scope="row" ><block>Includes:</block></table-cell> <table-cell display-align="center" border="1px solid white" colspan="4"><block>{!ql.Includes__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958" style="{!IF(ql.Based_On__c == null, 'display: none;', '')}"> <table-cell display-align="center" border="1px solid white" scope="row" ><block>Based On:</block></table-cell> <table-cell display-align="center" border="1px solid white" colspan="4"><block>{!ql.Based_On__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> </table-row> <table-row font-size="0.8em" font-style="bold" text-align="center" color="#FFFFFF" background-color="#1a3958" style="{!IF(ql.Notes__c == null, 'display: none;', '')}"> <table-cell display-align="center" border="1px solid white" scope="row" ><block>Notes:</block></table-cell> <table-cell display-align="center" border="1px solid white" colspan="4"><block>{!ql.Notes__c}</block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> <table-cell display-align="center" border="1px solid white"><block></block></table-cell> </table-row> </apex:repeat> </table-body> </table> </block> </apex:page>
Error Screen:
Can anybody suggest where exactly I did wrong..!
Welcome to your suggestion!
Thanks,
Nilesh
Colspan is supported in normal HTML <td> markup as an attribute, but not in XML <table-cell> markup.
I might be wrong - but I've had a similar problem recently. I found this page trying to find a solution.