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
    November 30, 2011
    in a hushed and quiet voice: you could try making the edit with a text
    editor and then see if Arbortext notices on a re-open ....

    also, where you have text, you could try:

    blah>!,\yourtext\,!<...

    and if it is in a var, it would look like:
    blah>!,yourtextvar.txt,!<...



    1-Visitor
    November 30, 2011
    No commas, the ! marks are correct, the after text is fine, everything
    Sarah originally had is fine.



    But the namespace declaration didn't get added properly.



    It is not part of fosicite, it is its own attribute specification, so
    your outspec tag should look like:



    1-Visitor
    November 30, 2011
    Sarah,

    I have a test doc running, so I copied the code from your email and pasted it in usetexts in the FOSI, and I got no complaints, the FOSI compiled, and "Book Title" appears in the Edit window

    This is in 6.0.

    Suzanne


    1-Visitor
    November 30, 2011
    I haven't done this in a very long time. But, You had the correct syntax to start with. You shouldn't need the commas in this case. Check to make sure that there isn't another tag that should be inserted. I think until you have all the tagging in, you may find errors. Go through the entire help section and make sure that you have each piece that it says to insert. I seem to recall that when I got this error, there was another tag that needed to be inserted to make it all work together. Do you have the necessary tags on the <title> elements?

    Trudy

    10-Marble
    December 1, 2011
    So I opened up the FOSI in a text editor and added namespace as noted below.



    <outspec xmlns:atidmd="&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="http://www.arbortext.com/namespace/DocumentMetaData">">http://www.arbortext.com/namespace/DocumentMetaData">



    I receive this error message "Entered attribute name (XMLNS:ATIDMD) does not exist for the current element"



    What am I missing???



    sarah


    1-Visitor
    December 1, 2011
    Sarah,

    As the FOSI uses the Outspec DTD, is the XMLNS a valid attribute to be entered there? When I just checked, it is not.

    Keep in mind that the FOSI is an SGML file, not XML.

    Lynn
    ---- "Price wrote:
    > So I opened up the FOSI in a text editor and added namespace as noted below.
    >
    >
    >
    > <outspec xmlns:atidmd="&lt;a" style="COLOR:" blue;=" text-decoration:=" underline&quot;=" target="_BLANK" href="http://www.arbortext.com/namespace/DocumentMetaData">">http://www.arbortext.com/namespace/DocumentMetaData">
    >
    >
    >
    > I receive this error message "Entered attribute name (XMLNS:ATIDMD) does not exist for the current element"
    >
    >
    >
    > What am I missing???
    >
    >
    >
    > sarah
    >
    >
    >
    10-Marble
    December 1, 2011
    Ok. So where would you add the xmlns in the FOSI?
    1-Visitor
    December 1, 2011
    Between being very busy, and figuring someone would realize without me chiming in, I've been lurking on this topic.

    There isn't anywhere in the FOSI that I am aware the 'xmlns' attribute would be 'legal'. Namespaces are an XML feature (thus, xml and ns as the attribute name) and not used in SGML. That means your tags are not illegal in the attempted <usetext>, unless you're trying to insert them in an SGML document.

    That's the question that hasn't been asked. Is your document XML or SGML? It doesn't seem to me that Editor would allow the insertion in anything that wasn't an XML document.

    $.02 or less,

    Steve Thompson
    +1(316)977-0515
    10-Marble
    December 1, 2011
    Yes my document is XML.

    And thank you for clearing up the FOSI namespace. I haven't been able find any type of documentation on this so I was beginning to wonder. Just wanted to hear it from the experts.
    1-Visitor
    December 1, 2011
    There is one book written on FOSI (that I honestly have not looked at) that is relatively current.

    The other places where you can find FOSI help, MIL-PRF-28001C (or MIL-PRF-28001B Amendment 1) and MIL-HDBK-28001 are both pre XML.

    If you want to get hold of copies of the two MIL documents (cure for insomnia) you can get the 28001C and the handbook from the ASSIST data base.


    > Yes my document is XML.
    >
    > And thank you for clearing up the FOSI namespace. I haven't been able find any type of documentation on this so I was beginning to wonder. Just wanted to hear it from the experts.
    >