Skip to main content
10-Marble
November 30, 2011
Question

Unbalanced Tag Error in FOSI Usetext

  • November 30, 2011
  • 24 replies
  • 3634 views

I'm trying to add metadata and bookmarks when publishing a document to PDF using a FOSI stylesheet. I've added a usetext to the root tag however everytime I try to apply the FOSI changes I receive a "Generated text contains unbalanced tags, i.e. begin tags without ends, or vice versa. Cannot insert."


I would appreciate any help you could offer,


FOSI Code:


<e-i-c gi="comdtinst">
<charlist>


<usetext source="!&lt;atidmd:DocumentMetaData source="atend"&gt;&lt;/atidmd:DocumentMetaData&gt;!" placemnt="before"></usetext>


<usetext source="!&lt;atidmd:DocumentMetaData"><atidmd:outline><atidmd:bookmark><atidmd:title>Book Title</atidmd:title></atidmd:bookmark></atidmd:outline></atidmd:documentmetadata>!" placemnt="after"></usetext>


</charlist>
</e-i-c>


    24 replies

    1-Visitor
    December 1, 2011
    You add the xmlns attribute to the root element of your XML document. It's nowhere in the FOSI.
    1-Visitor
    December 1, 2011
    And is the namespace declared in the document on some ancestor element (root element would cover everything, of course) of the location where the <usetext> is trying to make the insertion?

    I know this sounds very step-by-step and basic, but the devil is always in the details.

    Steve Thompson
    +1(316)977-0515
    10-Marble
    December 1, 2011
    THANK YOU STEVE!!! That did it. It all compiled as expected. Now on to more complicated endeavors.

    Sarah
    10-Marble
    December 1, 2011
    Thank you too David!!

    I appreciate all the responses and help!!