"Failed to get type information from xml component schema" when loading a page in SiteEdit 2009

I have enabled inline editing on SitEdit 2009 SP2 using the answer given here

How to enable inline editing of fields in SiteEdit when using XSLT TBB?

but I keep getting this error when loading the resulting page into SiteEdit:

Sys.FormatException: Failed to get type information from XML component schema. Field: cf_tcm: 20-33457-64_content_header XPath: [1]

My TBB XSLT snippet:

<xsl:if test="//*[local-name()='content_header'] != ''">
    <h1>
        <div>
            <tcdl:ComponentField name="content_header" index="0">
                <xsl:value-of select="//*[local-name()='content_header']">
            </tcdl:ComponentField>
        </div>
    </h1>
</xsl:if>

Result in the published file:

<h1>
  <div>
    <span>
      <!-- Start SiteEdit Component Field: {"ID" : "cf_tcm:20-33457-64_content_header", "XPath" : "[1]", "IsMultiValued" : false} -->
      <tcdl:ComponentField name="content_header" index="0" SiteEditProcessed="true">
        Test
      </tcdl:ComponentField>
    </span>
  </div>
</h1>

What is wrong with my code?

+3
source share
1 answer

, XPath <!-- Start SiteEdit Component Field: { ...} --> . , XPath [1], .

XPath. XSLT <tcdl:ComponentField>. TBB "Enable Inline Editing", <!-- Start SiteEdit Component Field ... -->. front-end SiteEdit XPath , tcdl:ComponentField , TBB XPath .

" " TBB SiteEdit 2009 tcdl:ComponentField, (engine.PublishingContext.ResolvedItem.Item.Id). , XPath.

Template Builder, ? content_header?

+4

All Articles