- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Here what the console send to the server to get the HTML content :
<Transform xmlns='urn:ncm:publishing'>
<strPublishingId xsi:type='xsd:string'>cus:Content1</strPublishingId>
<strModelName xsi:type='xsd:string'>HTML</strModelName>
<elemContent xsi:type='ns:Element'>
<Content1 ....... xtkschema="cus:Content1"/>
</elemContent>
</Transform> So, you must be sure to have the @xtkschema on the root element of your content, containing the name of your content schema (ns:name). If not present, it throws the same error you had.
Here the same but in JS :
var result = ncm.publishing.Transform(
'cus:Content1', //ncm:publishing name
'HTML', //model name of the ncm:publishing
<Content1 title="test" xtkschema="cusContent1"/>
);
Views
Replies
0 Likes
Total Likes