Skip to main content
10-Marble
Nov 30, 2011 8:19 PM UTC
Question

Unbalanced Tag Error in FOSI Usetext

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
    Dec 1, 2011 3:50 PM UTC
    You add the xmlns attribute to the root element of your XML document. It's nowhere in the FOSI.
    Translate
    1-Visitor
    Dec 1, 2011 3:50 PM UTC
    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
    Translate
    10-Marble
    Dec 1, 2011 4:22 PM UTC
    THANK YOU STEVE!!! That did it. It all compiled as expected. Now on to more complicated endeavors.

    Sarah
    Translate
    10-Marble
    Dec 1, 2011 4:23 PM UTC
    Thank you too David!!

    I appreciate all the responses and help!!
    Translate