Skip to main content
13-Aquamarine
March 10, 2016
Question

atidmd markups doesn't work with an SGML document

  • March 10, 2016
  • 1 reply
  • 1144 views

I try to use the atidmd markup in a FOSI for an SGML document to generate metadata and genenerate PDF bookmarks, but no metadata and no bookmark is generated.

Example of code used :

<usetext

source='!<atidmd:DocumentMetaData source="atend"><atidmd:DocView mode="bookmarks" fit="fitPage" destination="1"></atidmd:DocView><atidmd:DocInfo><atidmd:Entry><atidmd:Key>Title</atidmd:Key><atidmd:Value>Title value</atidmd:Value></atidmd:Entry><atidmd:Entry><atidmd:Key>Author</atidmd:Key><atidmd:Value>Author value</atidmd:Value></atidmd:Entry><atidmd:Entry><atidmd:Key>Subject</atidmd:Key><atidmd:Value>Subject value</atidmd:Value></atidmd:Entry></atidmd:DocInfo></atidmd:DocumentMetaData>!'

placemnt="after"></usetext>

Do you know why atidmd markups doesn't work ?

I have tried this code with an XML document and It works.

1 reply

12-Amethyst
March 16, 2016


I believe that SGML is case sensitive. Did you try this using all lowercase element names?

<usetext source='!<atidmd:documentmetadata source="atend">

<atidmd:docview mode="bookmarks" fit="fitPage" destination="">

</atidmd:docview>

</atidmd:documentmetadata>!' placemnt="before"></usetext>

<usetext source="!<atidmd:documentmetadata>

<atidmd:docinfo>

<atidmd:entry>

<atidmd:key>Title</atidmd:key>

<atidmd:value>!,doc-title-bookmark.txt,!</atidmd:value>

</atidmd:entry>

</atidmd:docinfo>

<atidmd:outline><atidmd:bookmark><atidmd:title>!,doc-title-bookmark.txt,!</atidmd:title>

</atidmd:bookmark>

</atidmd:outline>

</atidmd:documentmetadata>!" placemnt="after"></usetext>

dgopois13-AquamarineAuthor
13-Aquamarine
March 18, 2016

Hi Tim,

Thank you for your help but the result is the same, nothing is displayed.